Michael Meeks
2005a34318
re-base on ALv2 code.
2012-06-29 15:51:49 +01:00
Michael Meeks
328e2263fb
targetted re-work of cppunit pieces.
2012-06-27 19:13:11 +01:00
Caolán McNamara
8e01e88145
add a route to compare a O[U]String to one code unit
...
Seems very awkward to create an entire temporary O[U]String just to compare it
to another when we want to know if that other contains just one char of a given
value
Change-Id: Iacd4e0d87dc5c5211fa06c61c55e1ed85b1e91f3
2012-06-18 15:13:51 +01:00
Caolán McNamara
e2cd6a77ea
drop String::Reverse
...
Change-Id: Ie06635dc1f242241d48f9d6de4f592898e605bf2
2012-06-06 14:38:42 +01:00
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
Caolán McNamara
740cf4a590
bah, we don't need these after all
2012-02-10 14:20:52 +00:00
Caolán McNamara
9c19e79f19
extend unit test to islower
2012-02-10 11:09:08 +00: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
Norbert Thiebaud
b8ee1f9b5f
remove include of pch header in comphelper
2011-11-27 13:00:14 -06:00
Caolán McNamara
0dbc4fa3ef
add string::strip, can replace EraseLeadingAndTrailingChars
2011-11-23 23:16:44 +00:00
Caolán McNamara
b7ea361014
add stripStart, can replace EraseTrailingChars
2011-11-23 10:10:09 +00:00
Caolán McNamara
20153742d2
add a stripStart, can replace EraseLeadingChars
2011-11-23 10:10:08 +00:00
Caolán McNamara
4a06a42de4
want to match here, not check for equality
2011-11-22 12:50:14 +00:00
Caolán McNamara
dca04e2361
add a StringUtils-alike remove (can replace EraseAllChars)
2011-11-17 23:04:10 +00:00
Caolán McNamara
2401f2aa1c
reported compile failure, possible sal_Int32 is long on 32bit vs int
2011-11-10 11:17:10 +00:00
Caolán McNamara
8e482e60c5
an indexOfL would be useful
2011-11-10 09:28:39 +00:00
Stephan Bergmann
d996328cd5
sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed out a6913c9677c2
...
For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-09-12 22:47:50 +02:00
Caolán McNamara
313332e76b
various centralized isFOOAsciiStrings
2011-08-29 09:56:08 +01:00
Caolán McNamara
14d2a60053
remove ByteString::IsAlphaNumericAscii and refactor a bit
2011-08-29 09:56:06 +01:00
Caolán McNamara
eba1f976ce
rename test
2011-08-15 09:21:49 +01:00
Caolán McNamara
061ebc3446
add a getToken wrapper for extracting a single token painlessly
2011-08-15 09:21:49 +01:00
Caolán McNamara
90fe8dadaa
add a jdk 1.5-alike string replace to comphelper::string
2011-08-15 09:21:49 +01:00
Caolán McNamara
a04d91ea3b
restore cppunit test (yet again)
2011-08-15 09:21:48 +01:00
Caolán McNamara
66584aa981
WaE: remove some warnings
2011-03-16 10:13:09 +00:00
Caolán McNamara
926be1c961
tidy this up and be consistent
2011-02-18 21:26:40 +00:00
Sébastien Le Ray
a6ba342ade
Added comphelper::string::decimalStringToNumber
2011-02-18 10:20:15 +00:00
Sébastien Le Ray
ba00e8f403
Cleanup in comphelper unit tests.
2011-02-16 11:06:20 +00:00