summaryrefslogtreecommitdiff
path: root/tools/source/stream
AgeCommit message (Collapse)Author
2012-07-11re-base on ALv2 code. Includes:Michael Meeks
Avoid some uses of non portable #!/bin/bash in shell scripts. Patch contributed by Pedro Giffuni http://svn.apache.org/viewvc?view=revision&revision=1235297 remove redundant namespace, patch contributed Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1162610 removal of OS/2 port changes, and preferring our similiar tools/inc/tools/solar.h DLLPOSTFIX cleanup. i118595 - Removal of the use of getopt() from rscdep. Patch contributed by Andre Fische http://svn.apache.org/viewvc?view=revision&revision=1202270
2012-06-29Remove some unused defines and controlsThomas Arnhold
Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-05-03Related: fdo#47644 compound storage backend is poor at knowing stream sizeCaolán McNamara
Change-Id: Ie4aa6939f9f37e04fda5425a6e28c5d846a9cb62
2012-05-02!= instead of < for comparison with end iteratorJulien Nabet
Change-Id: I7baa34c1cf7161fb55914d41b451b842ad4ab0c8
2012-04-10resolved fdo#48501 enable line size >64k in SvStream::Read*Line()Eike Rathke
CSV and other text formats may come with line sizes >64k that so far were truncated due to limitations in ByteString/UniString/String, even if one line consists of several fields that each are <64k. Introduced additional SvStream methods that read into rtl::OString and rtl::OUString and let SvStream::ReadUniOrByteStringLine() fill solely an rtl::OUString. Made Calc CSV import use those.
2012-04-05convert (ugly) WriteUniOrByteString to rtl::OUStringCaolán McNamara
2012-03-09Let osl::FileStatus getters assert programming errorsStephan Bergmann
...instead of arbitrarily returning certain values when the requested information is not available. This reveals a problem in strmunx.cxx that is apparently a regression introduced with 4a086fca7b0a77c20bc9f1c97507966e2861f3da "fix SvStream to not require a custom open or lstat method."
2012-03-01now restore and use reduced UnlockFile and UnlockRange implsCaolán McNamara
because its super ugly to have unbalanced lock/unlocks and with the removal of STAR_ENABLE_FILE_LOCKING we can call those methods and now get unchanged behaviour
2012-03-01STAR_ENABLE_FILE_LOCKING was a secretCaolán McNamara
2012-02-29callcatcher: update listCaolán McNamara
2012-02-28convert some low hanging fruitCaolán McNamara
2012-02-27Removed dead codeMarc-André Laverdière-Papineau
Deleted: SvFileStream::UnlockFile()
2012-02-21fdo#44993: Remove obsolete FSysRedirectorElton Chung
2012-02-13callcatcher: regenerate listCaolán McNamara
2012-01-30fdo#44981 - remove obsolete SWAPLONG macrosNoel Grandin
2012-01-30refactor ConvertLineEndCaolán McNamara
2012-01-25refresh unused code listCaolán McNamara
2012-01-25move ugly WriteLines out of SvStream to beside sole userCaolán McNamara
2012-01-24use write_uInt16s_FromOUString patternCaolán McNamara
2012-01-24all direct OUString readers are current little endian streamsCaolán McNamara
2012-01-23ByteString->rtl::OStringCaolán McNamara
2012-01-23fdo#44988: Remove obsolete BOOTSTRAP defines.Thomas Collerton
2012-01-19sal: expose a public API for comparing directory itemsMichael Meeks
Windows impl. still pending.
2012-01-19Don't use too modern C++Tor Lillqvist
2012-01-19fix SvStream to not require a custom open or lstat method.Michael Meeks
2012-01-19C++ is a nicely standardized languageTor Lillqvist
2012-01-19fix SvStream to not disagree with sal on sizeof struct statMichael Meeks
A temporary tweak to restore build-ability; the oslDirectory change needs a little more thought & public exposure, but rsc no longer crashes during compile ...
2012-01-19Fix int/sal_Int32 mismatch.Stephan Bergmann
2012-01-18fdo#39428 Remove/audit SvStream operator>>/<<(long)Keith McRae
Removed declarations & definitions for operator<<(long),(int)&(short) Removed declarations & definitions for operator>>(long),(int)&(short) Added (where necessary) operator<< for sal_Int & sal_uInt types Added (where necessary) operator>> for sal_Int & sal_uInt types Added SwapInt64 function, basically a copy of SwapUInt64
2012-01-18Use osl API to access files in the SvFileStream codeTor Lillqvist
In general it's good to have file opening in just one place. In particular, this means SvFileStream can now open files located in the app package (.apk Zip archive) on Android, we don't need to unpack them into separate files.
2012-01-16drop strange embedded null handling behaviourCaolán McNamara
2012-01-16convert some old-school ByteStringsCaolán McNamara
2012-01-13here calc, take ownership of this foul monstrosity only you useCaolán McNamara
SvStream::ReadCsvLine doesn't need to be a member of Stream and the subcomment about what's wrong with the method is longer than the body of the method. Only used by calc, so can go into calc. foul monstrosity back
2012-01-13noone checks the return value of ReadCsvLineCaolán McNamara
2012-01-10force users of horrific ReadUniOrByteStringLine to provide the charsetCaolán McNamara
2012-01-06Removed unnecessary tools/debug.hxx includes.Marcel Metz
2012-01-06make ReadUniOrByteString return a stringCaolán McNamara
2012-01-05convert SvStream::WriteLine to rtl::OStringCaolán McNamara
2012-01-03Fix import of multi-line cell contents during csv import.Kohei Yoshida
Regression from 3.3.x. Import of tab-delimited csv documents containing multi-line cells were unfortunately broken with my fix for handling malformed csv documents. The intent was to break out of the loop only when a tab character is encountered before the closing quote is encountered, but the old code would break out whenever a tab character is encountered even outside the quotes. This commit fixes it.
2011-12-22Revert "callcatcher: Remove unused code"August Sodora
This reverts commit bbad7057b2bdb614a5e97a945039323efe39c4ee.
2011-12-22callcatcher: Remove unused codeAugust Sodora
2011-12-21I hate you poxy msvcCaolán McNamara
2011-12-21tweak for pre language-defect #77Caolán McNamara
2011-12-21disentangle Read/WriteByteString OUString variantsCaolán McNamara
The ones which use a definite 8-bit encoding read/write pascal-style strings with a 16bit length prefix. The ones which use a definite 16-bit encoding read/write pascal-style UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending on the charset. Rename to ReadUniOrByteString like the other similar horrors to flag this misery
2011-12-21convert ReadByteString/WriteByteString from ByteString to OStringCaolán McNamara
Nobody ever used the return values anyway, so for reading just return the string and for writing the number of bytes written Doesn't need to be members, make standalone functions Rename to read_lenPrefixed_uInt8s_ToO[U]String and write_lenPrefixed_uInt8s_FromO[U]String, lengthy, but much less unambiguous, seeing as a lot of users of it don't seem to be aware that they read/write pascal-style length prefixed strings, which isn't surprising given the apparent simplicity of their original name. added a unit test
2011-12-21needs more work firstCaolán McNamara
This reverts commit 92f396733ebc518bcb7a9eae2dd3169d333b82b9.
2011-12-21bah, need to tweak for pre c++0xCaolán McNamara
This reverts commit d00fc0e293852cfc019ffaffa65bee327397677b.
2011-12-21disentangle Read/WriteByteString OUString variantsCaolán McNamara
The ones which use a definite 8-bit encoding read/write pascal-style strings with a 16bit length prefix. The ones which use a definite 16-bit encoding read/write pascal-style UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending on the charset. Rename to ReadUniOrByteString like the other similar horrors to flag this misery
2011-12-21convert ReadByteString/WriteByteString from ByteString to OStringCaolán McNamara
Nobody ever used the return values anyway, so for reading just return the string and for writing the number of bytes written Doesn't need to be members, make standalone functions Rename to read_lenPrefixed_uInt8s_ToO[U]String and write_lenPrefixed_uInt8s_FromO[U]String, lengthy, but much less unambiguous, seeing as a lot of users of it don't seem to be aware that they read/write pascal-style length prefixed strings, which isn't surprising given the apparent simplicity of their original name. added a unit test