Commit graph

406 commits

Author SHA1 Message Date
Stephan Bergmann
9ab0b38e95 Various string function clean up
Added:
* rtl::OString::matchL
* rtl::OString::endsWith
* rtl::OString::endsWithL
* rtl::OString::indexOfL
* rtl::OString::replaceFirst
* rtl::OString::replaceAll
* rtl::OString::getToken
* rtl::OUString::endsWith
* rtl::OUString::replaceFirst
* rtl::OUString::replaceFirstAsciiL
* rtl::OUString::replaceFirstAsciiLAsciiL
* rtl::OUString::replaceAll
* rtl::OUString::replaceAllAsciiL
* rtl::OUString::replaceAllAsciiLAsciiL
* rtl::OUString::getToken
plus underlying C functions where necessary

Deprecated:
* comphelper::string::remove
* comphelper::string::getToken

Removed:
* comphelper::string::searchAndReplaceAsciiL
* comphelper::string::searchAndReplaceAllAsciiWithAscii
* comphelper::string::searchAndReplaceAsciiI
* comphelper::string::replace
* comphelper::string::matchL
* comphelper::string::matchIgnoreAsciiCaseL
* comphelper::string::indexOfL

Also fixed some apparent misuses of RTL_CONSTASCII_USTRINGPARAM ->
RTL_CONSTASCII_STRINGPARAM.
2012-02-15 15:41:09 +01:00
Stephan Bergmann
2fce337212 l10ntools now only depends on sal and externals
Still room for further improvement.
Includes some fixes for regressions introduced with previous commits.
2012-02-13 21:47:25 +01:00
Caolán McNamara
f7b2d16b01 WaE: keep msvc happy 2012-02-13 14:04:42 +00:00
Alexander Bergmann
8f1270db7d unusedcode.easy: Removed unused code 2012-02-13 13:17:19 +00:00
Caolán McNamara
3b4786b6b7 callcatcher: regenerate list 2012-02-13 11:02:46 +00:00
Thomas Arnhold
00b070ff14 l10ntools: use correct string literal for ssize_t 2012-02-11 21:44:03 +01:00
Stephan Bergmann
b57f88ce67 Various more l10ntools clean up 2012-02-10 21:53:49 +01:00
Stephan Bergmann
718ce84a06 Various more l10ntools clean up
"localize" is now directly a C++ program w/o wrapper script.  Also,
its command line has changed slightly, taking the source root as
explicit argument (instead of implicitly as cwd).
2012-02-10 10:45:58 +01:00
Stephan Bergmann
f07a22ff6f gsicheck now only depends on sal 2012-02-09 15:26:03 +01:00
Caolán McNamara
80ba5e7aa6 convert system path to url
otherwise seg faults in building nlpsolver
2012-02-09 09:08:30 +00:00
Stephan Bergmann
1d3124675a New file was missing from previous commit 2012-02-08 22:28:53 +01:00
Stephan Bergmann
e960410674 Various more l10ntools clean up 2012-02-08 22:07:23 +01:00
Stephan Bergmann
344ebc8033 Freed l10ntools from tools/stream.hxx
Removed completely cases of convoluted code to remove UTF-8 BOM from files
or translate line endings.  Hopefully none of this was actually necessary
(on Windows?).
2012-02-08 14:40:08 +01:00
Caolán McNamara
849a2471bd update unused list 2012-02-08 09:12:27 +00:00
Stephan Bergmann
b20c766ff6 Freed l10ntools from tools/string; Windows redux 2012-02-07 14:41:13 +01:00
Stephan Bergmann
cc3cabd5fd Freed l10ntools from tools/string 2012-02-07 11:19:48 +01:00
Christina Rossmanith
e747a4e87e Reduced duplicate code (simian) / l10ntools 2012-02-06 21:17:54 +04:00
Josh Heidenreich
c1a3961b45 Single-line bugfix in l10n tools to fix compile on GCC 4.4.3 (Ubuntu) 2012-02-06 09:53:52 +01:00
Stephan Bergmann
a4cbcf2fc5 Reduced tools/string usage further 2012-02-02 21:37:56 +01:00
Stephan Bergmann
e521a24060 Reduced tools/string usage
plus some preliminary cfgex clean up.
2012-02-02 09:22:07 +01:00
Andras Timar
d9adc4342c tweak help text of gsicheck tool 2012-02-01 18:46:03 +01:00
Andras Timar
7dfd1c4023 remove this KeyID check from gsicheck, unused 2012-02-01 18:46:03 +01:00
Andras Timar
20bb21fc42 remove support of obsolete ($$) delimited GSI file format 2012-02-01 18:46:02 +01:00
Jesús Corrius
7be0cc289d A few safe replacements of pathes->paths 2012-02-01 14:43:37 +01:00
Caolán McNamara
b8b1b1d683 ByteString->rtl::OString 2012-01-31 11:37:24 +00:00
Caolán McNamara
ea6900d405 ByteString->rtl::OString 2012-01-30 13:18:37 +00:00
Caolán McNamara
ecb2ce035a unused test string 2012-01-30 13:18:36 +00:00
Caolán McNamara
7045e4e15c ByteString->rtl::OString 2012-01-27 12:59:47 +00:00
Caolán McNamara
0143300979 convert vectors to OString 2012-01-26 11:10:41 +00:00
Caolán McNamara
1f26095e9c convert maps and sets to OString 2012-01-26 11:10:40 +00:00
Caolán McNamara
901b6f587d ByteString->rtl::OString 2012-01-26 11:10:40 +00:00
Caolán McNamara
905b84557d refresh unused code list 2012-01-25 15:37:20 +00:00
Caolán McNamara
b1f74de031 ByteString->rtl::OString 2012-01-23 11:37:06 +00:00
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
Loiseleur Michel
2994b7b983 fix build error in l10ntools
On gcc-4.4.3, it fixes this error : l10ntools/source/helpex.cxx:82: error: parameter may not have variably modified type 'rtl::OString [(((long unsigned int)(((long int)i) + -0x00000000000000001)) + 1)]'
2012-01-12 14:45:02 +01:00
David Tardon
0df9d7c05d close opened file 2012-01-12 06:15:23 +01:00
David Tardon
196885980b fix writing of strings from the first module 2012-01-12 06:11:19 +01:00
David Tardon
4ce9896c6a Revert "fast_merge: fix mis-merge of first module's strings"
This is not enough, because the file is still wrong.

This reverts commit 47a8454f5f.
2012-01-12 05:58:44 +01:00
Marcel Metz
869cf02e7c advertise license in help output 2012-01-09 11:32:47 +00:00
Andras Timar
82558fc4ea remove a printf 2012-01-06 16:33:18 +01:00
Marcel Metz
53d27eb207 Removed unnecessary tools includes. 2012-01-05 15:38:51 +01:00
Marcel Metz
79646372a0 Removed unnecessary tools includes.
Hello lo-devs,

this patch series removes a lot of unnecessary includes for the various
tools header. The patches without suffix should be applied to the core
repository, the .binfilter.patch suffix should be applied to the
binfilter repository. I've tested the build with the configuration
--enable-binfilter --enable-dbgutil --enable-debug, is this sufficient
or did I miss another important configuration, that enables some
conditional compiled code? I've only build this on linux-x86_64, but the
patch also touches some of the mac specific code like
fpicker/source/aqua/SalAquaFilePicker.mm so it would be maybe a good
idea to test this patch.

regards Marcel Metz
2012-01-05 15:31:29 +01:00
Gustavo Buzzatti Pacheco
c47f352333 Fix for fdo43460 Part XXII getLength() to isEmpty()
Part XXII
modules
jvmfwk, l10ntools, lingucomponent
2012-01-05 15:07:34 +01:00
Caolán McNamara
bacfd2dc4c add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
2012-01-05 09:18:19 +00:00
Andras Timar
8f21e3b66c help compiler: less verbose output to console 2012-01-04 17:41:00 +01:00
Andras Timar
297502d232 use '_' instead of '-' in file names of .properties files 2012-01-03 19:45:53 +01:00
Andras Timar
59f3098eec fix KeyID generation for a corner case 2012-01-02 12:36:41 +01:00
Marcel Metz
ba5edb1404 reduce noise from FCFGMerge tool 2011-12-23 11:27:39 -06:00
Stephan Bergmann
c9bc4a0406 rtl::OString::copy with count too large raises assert. 2011-12-21 21:22:31 +01:00
Caolán McNamara
4eb4514ee1 This just can't be right, WriteByteString writes a pascal-style string
WriteLine just writes a line of text, WriteByteString writes
a 16bit length of following content. It can't make sense to
suddenly stick a pascal-style string in at the end of a file
that's otherwise plain text.

original git id that introduced the use of WriteByteString here
was ea76474a back in 2002

Perhaps this worked because partial strings never ended up
as trailing content, so only ever had an empty string as
the final partial string, so a 0x0000 got appended, as
opposed to a newline, so it appeared to do the right thing.
2011-12-21 10:10:56 +00:00