Commit graph

538 commits

Author SHA1 Message Date
Caolán McNamara
bd4f553ef0 remove some UniString ctors
Change-Id: Ic2e712f4447b733b79d980e178d9d6d9d8bf0e40
2012-06-19 09:13:23 +01:00
Takeshi Abe
eb0497307b nuke dead code
Change-Id: Id9920ea7b82ea178e904f78bbd41ffc434813e0b
2012-06-07 23:03:11 +09:00
Caolán McNamara
cf9b0830c5 WaE: return value of fwrite unchecked
Change-Id: Ib3713290a7dcd4bbbb58232d144e35694653a4a5
2012-05-25 09:26:14 +01:00
Caolán McNamara
c77110b486 WaE: ignoring return value of fwrite
Change-Id: I289564b8f41bbae976853aa3994751d3092ff44d
2012-05-03 21:11:42 +01:00
Bjoern Michaelsen
b1c3e8ae28 make gbuild the default assumption of build.pl
this removes dmake completely out of the build for migrated modules
build.pl now assumes modules to be gbuild, unless there is a
prj/dmake file

Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-29 03:50:46 +02:00
Caolán McNamara
791f276833 Resolves: fdo#48129 maLangStr can have trailing nulls 2012-04-02 14:53:50 +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
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
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
Caolán McNamara
697415eb4e WaE and build errors with OSL_DEBUG_LEVEL == 2 2012-01-05 09:18:15 +00:00
Marcel Metz
89a8d75c12 Remove unused tools function.
this patch removes the unused (according to OpenGrok) GetIsoFallback
function from the tools module.
2012-01-03 16:40:24 +01:00
Olivier Hallot
85d1ce27ad Fix for fdo43460 Part XXVII getLength() to isEmpty()
Please find attached a partial fix for Easy Hack FDO43460

Part XXVII
Modules
padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
2012-01-02 19:17:17 +01:00
Caolán McNamara
b103bb2ab3 ditch some ByteStrings 2011-12-12 14:11:24 +00:00
Caolán McNamara
1b1f0bbb28 ByteString->rtl::OString 2011-12-12 09:39:00 +00:00
Caolán McNamara
54747f3087 aPathName unused 2011-12-12 09:38:59 +00:00
Caolán McNamara
9e4028b4fc aString unused 2011-12-12 09:38:59 +00:00
Caolán McNamara
8a418586ea ByteString->rtl::OString 2011-12-12 09:38:59 +00:00
Marcel Metz
4c2dcaf130 Removed unnessecary tools/table.hxx includes 2011-12-06 17:16:57 +01:00
Caolán McNamara
cd676159ca ByteString->rtl::OString[Buffer] 2011-12-06 10:33:04 +00:00
Caolán McNamara
829ebac9b4 no need for OrderCtrl anymore 2011-11-29 10:35:13 +00:00
Caolán McNamara
963fd1696c callcatcher: remove unused methods 2011-11-28 09:55:03 +00:00
Caolán McNamara
3fd28200f1 ByteString->rtl::OString[Buffer] 2011-11-28 09:55:02 +00:00
Norbert Thiebaud
c43122a9b2 remove include of pch header from rsc 2011-11-27 13:17:36 -06:00
François Tigeot
a5cabdbc74 BIG_ENDIAN was never set
Remove its conditional code
2011-11-25 14:42:10 +01:00
Caolán McNamara
20153742d2 add a stripStart, can replace EraseLeadingChars 2011-11-23 10:10:08 +00:00
Caolán McNamara
ca02d72808 remove [Byte]String::EraseAllChars 2011-11-19 21:11:02 +00:00
Stephan Bergmann
bf1f0183d5 Some fixes for "clang version 3.1 (trunk 142234)" (with --enable-werror, on Linux x86_64). 2011-10-18 23:10:56 +02:00
Tor Lillqvist
88b265f102 Revert "cppcheck reduce scope of var in rsc/...cpp3.c/cpp4.c/cpp6.c"
As long as we want to be buildable with MSVC 2008, we can't use C99
features in our C source files. (Yeah, horrible, M$ suxors, etc,
complain to your mother.) Please relax the cppcheck enthusiasm, or at
least, tune cppcheck to follow C89 for C files.

This reverts commit 0921457488.
2011-10-08 16:43:23 +03:00
Pierre-André Jacquod
0921457488 cppcheck reduce scope of var in rsc/...cpp3.c/cpp4.c/cpp6.c 2011-10-07 15:57:47 +02:00
Pierre-André Jacquod
fb2fe60773 cppcheck reduce scope of var in rsc/...rscclass.cxx 2011-10-07 15:57:47 +02:00
Tor Lillqvist
d455410a3d Look at GCC version, not whether MacOSX or not 2011-09-28 13:21:36 +03:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Pierre-André Jacquod
1f1607a5e6 cppcheck: reduce scope of var in rsc rscflag.cxx 2011-09-26 22:02:43 +02:00
Stephan Bergmann
9da0b9d70d Fix broken implicit string conversion 2011-09-23 12:19:50 +03:00
Andras Timar
687240f4b5 GetBuffer() -> getStr() 2011-09-22 07:51:12 +02:00
Caolán McNamara
0577f19870 ByteString->rtl::OString[Buffer] 2011-09-21 09:47:37 +01:00
Thomas Arnhold
dfbf66ded4 Adding a file where the previous patch was not applying cleanly 2011-09-21 09:31:17 +02:00
Caolán McNamara
0344e07dd7 ByteString->rtl::OString[Buffer] 2011-09-20 16:54:55 +01:00
Caolán McNamara
70e2e12154 ByteString->rtl::OStringBuffer 2011-09-20 10:11:43 +01:00
Caolán McNamara
512c562b86 ByteString->rtl::OString[Buffer] 2011-09-20 10:11:41 +01:00
Caolán McNamara
8004d2d6f5 ByteString->rtl::OString[Buffer] 2011-09-19 09:59:24 +01:00
Caolán McNamara
6934db93b6 and none of this stuff is actually used anywhere now 2011-08-31 10:43:24 +01:00
Caolán McNamara
de396b336a so nothing left that calls InsertList 2011-08-31 10:43:24 +01:00
Caolán McNamara
922b8a498e only thing left that calls FillSubList is itself 2011-08-31 10:43:24 +01:00
Caolán McNamara
bbf17fad47 only thing left that calls FillListObj is itself 2011-08-31 10:43:23 +01:00
Caolán McNamara
47a81f3de5 only thing that calls FillList is itself 2011-08-31 10:43:23 +01:00
Caolán McNamara
8de61c9fb6 grabbag of unused code 2011-08-31 10:43:23 +01:00
Caolán McNamara
98f246d83d ByteString->rtl::OString 2011-08-30 09:32:23 +01:00
Caolán McNamara
14d2a60053 remove ByteString::IsAlphaNumericAscii and refactor a bit 2011-08-29 09:56:06 +01:00