summaryrefslogtreecommitdiff
path: root/sal/qa
AgeCommit message (Collapse)Author
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-22Revert "fdo#62096: Replaced some compareTo with =="Fridrich Štrba
This reverts commit dd47994722eaead16099145e593fbf878072d52b.
2013-04-22fdo#62096: Replaced some compareTo with ==Sameer Deshmukh
Change-Id: I1151dafcef91abdb2ce08abe3547a49fe3f4a67c Reviewed-on: https://gerrit.libreoffice.org/3509 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-09no mkdtemp on AIX eitherCaolán McNamara
Change-Id: I9103f86a5b8414c9cdf5fd3a2d662725343f0ed8
2013-04-04remove HAVE_SFINAE_ANONYMOUS_BROKENLuboš Luňák
Since we no longer support the old Apple SDK using gcc-4.0.1, we can remove the cruft to work around its problems. Woohoo. Change-Id: Idf275e76449443f1f0314e75dab993f213a77eb7
2013-03-25remove external include guardsThomas Arnhold
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-25Add test case for toInt overflow detectionStephan Bergmann
Change-Id: I1c5b66888baac8aa1bc99c06579e0ef3638a4877
2013-03-20Deprecate confusing rtl::OUString::compareToAscii(asciiStr, maxLength)Stephan Bergmann
Change-Id: I3a41036ec03cdaefea94b19dbedf59e5a5e37dc8
2013-03-20use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-19further OUString cleanupThomas Arnhold
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-09fdo#43460: use isEmpty()Thomas Arnhold
Change-Id: I47b35af71277fdda19767a553c960bf12164b92f
2013-03-09fdo#43460: use isEmpty()Thomas Arnhold
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-04doubled includesThomas Arnhold
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-02-23Fix typo accessable/accessibleJulien Nabet
Change-Id: I2f6d00a6361243a52a593acaaf2bf624d8a2730e
2013-02-22silence warning.Michael Meeks
Change-Id: Ibf82038c15c9ecf6de502bae1dd21e2393cafe09
2013-02-22Fix misspellings detected by https://github.com/lyda/misspell-checkTor Lillqvist
Just as a test to check the usefulness of that tool. It needs some improvement before really usable. Change-Id: I875e79c1992ed5f3b695736b0d49938ad0ba2d55
2013-02-21Fix type unkown -> unknownJulien Nabet
Change-Id: I8d55d5ae5ae38ae2b252859b5400e36301f19ef0
2013-02-05testOUBoolean should test with OUString, not OStringLionel Elie Mamane
Change-Id: I103ca7d72e6bae6c20605719451579dd156504ce
2013-02-04OK for boolean() to take true bool argumentStephan Bergmann
...instead of sal_Bool; this would cause C4800 performance warnings with MSVC, but we disable them anyway. Also, added unit tests that are actually executed. Change-Id: Ib405132565918be72d93b3fc24180edcb6e565c7
2013-02-04Strings: boolean() as a replacement for valueOf(sal_Bool)David Ostrovsky
valueOf(?) has been superseded by number(?). O(U)String::valueOf(sal_Bool) has been deprecated without providing an alternative method. Use boolean() method as a replacement for it. Change-Id: I7eb74574fa8f1a3cf007cb0cbc32e681007ffb92 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-01-28consolidate the float number testsLuboš Luňák
And remove some unneeded ones (the float actually didn't have the necessary precision on 32bit anyway). Change-Id: I52dd387fd319dd6a5b44333a71d012ebaaecbf18
2013-01-26Remove redundant braces around for loopsStephan Bergmann
...that had once been workarounds for compilers that did not yet support the C++98 scoping rules for declarations in for-init-statements. Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
2013-01-18long and long long can be the same size (and thus also sal_Int64)Luboš Luňák
Change-Id: I3961ec27d23915b038c3a803dc71e7d937ca331c
2013-01-18Create OUString and OString number(*) methods.Noel Grandin
API CHANGE: Adds new methods (several overloads) OString::number() OUString::number() and marks all of the existing fromValue() methods as deprecated. The purpose of this change is to clean up call sites by hiding the necessary casts. The casts are necessary because of overload resolution rules which are somewhat vague about which methods to choose when using integer types. See mailing list discussion here: http://nabble.documentfoundation.org/replacing-OUString-valueOf-static-cast-lt-sal-Int32-gt-td4027989.html Subject: "replacing OUString::valueOf(static_cast<sal_Int32>) ??" Change-Id: Id3d150a6525eb0334e41e2ec6640bb06cd790b43 Reviewed-on: https://gerrit.libreoffice.org/1625 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-09hack for apple's gcc-4.0.1 bugLuboš Luňák
My self-built 4.0.1 on Linux handles this fine, but 4.0.1 is not used for LO building except for MacOSX. This specific operand combination is rather unlikely, so this shouldn't actually cause any problem in practice, hopefully, but I'd still like to check this where possible.
2013-01-06WaE: format specifies type 'int' but the argument has type 'sal_Int32' (aka ↵Tor Lillqvist
'long')
2012-12-25Get rid of (most uses of) GUITor Lillqvist
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-17OUString::reverseCompareTo() string literal overload to match the AsciiL oneLuboš Luňák
Change-Id: Id5ca706aa3fd1831990db2310933c6b94ca376cb
2012-12-13NOMINMAX on Windows is defined globallyLuboš Luňák
2012-12-06int vs oslInterlockedCount ambiguityLuboš Luňák
Change-Id: I096b1232427ad6996e0b2cfafc9ba38386e19208
2012-12-06unittest for fast string operator+ not allowing unwanted combinationsLuboš Luňák
Change-Id: I5891efcec7db373407a661636108fd979839db52
2012-12-06support for fast string operator+ in operator+=/appendLuboš Luňák
Not much point in building a string instance that will be copied elsewhere immediatelly. Change-Id: I38b7d3696f2c619e6424eb3959b00cd2c7738c47
2012-12-06rtl_(u)String_ensureCapacityLuboš Luňák
Ensure there will be enough extra space in a string, to be used for string appending. A bit like rtl_(u)String_newConcat(), but without the function actually appending anything. Unlike the stringbuffer variant this does not allocate any extra. Change-Id: Ic6f84bf014a713f9912c81d8f1405c593978822d
2012-12-06ostream/OString operator<< no longer neededLuboš Luňák
Change-Id: I223a9088a3465a51ea44ef28ac604f3d864f933c
2012-12-06committed by mistakeLuboš Luňák
Change-Id: I40a4aa2239736a081a94b04c2f510866be5ac54c
2012-12-04remove unused variables and codeLuboš Luňák
Change-Id: I4cd76fb5bb3187a9a25e9a73556c8ee3be1a5361
2012-12-04API CHANGE: remove long-deprecated Semaphore & related stuff.Thorsten Behrens
osl::semaphore was not portable & thusly long-deprecated. Also killing further unused clients of that code in salhelper. Change-Id: Ie1c1924e06e8ce3be33fd1dc2c6933f2de8b5217
2012-12-04Fix fast concat of empty stringsStephan Bergmann
Change-Id: Ice9c6974f44be3bc4c9b3533de2a9beb5b146ca5
2012-12-03assert on strange lengths of string literalsLuboš Luňák
It's better to detect corner cases this way rather than get possibly incorrect results. And strlen() should be easy to optimize out for string literals. Change-Id: Id762e256207668a0cbefe4e13d5f2067f373e783
2012-12-03support for fast O(U)String concatenation using operator+Luboš Luňák
Operator+ now, instead of requiring O(U)String operands and returning another O(U)String object, keeps a track of the whole concatenation operation using temporary O(U)StringConcat objects and performs the whole operation only at the very end. Change-Id: I94b3348300a137498514d26e96459c1698328520
2012-12-01unused variablesLuboš Luňák
Change-Id: Ia8b2ac25d3949508b132d1b0b05e5384633d935f
2012-12-01but back a unittest check about invalid char[] -> OUString(Buffer) conversionLuboš Luňák
It's invalid, so the additional ambiguity here doesn't matter, but I'd still prefer to check that it remains invalid. Change-Id: Ie05d393ad7f51738383bb98b911938506abd64fc
2012-12-01OUStringBuffer constructor from OUStringBuffer should use const argNorbert Thiebaud
Change-Id: I9f9e072c0a7ebde2de9be811f2378143b2b7abc6 Reviewed-on: https://gerrit.libreoffice.org/1209 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2012-11-30eradicate all traces of OLocale and rtl/locale.hxxMichael Stahl
... damn language tags breaking builds left and right ... Change-Id: I73224cb3fb2bb98779fdcace700cad2a4fb7cd0e
2012-11-30ditched rtl::OLocaleEike Rathke
Change-Id: I3f4a09c82df1bc71759331705c502320f973d4bb
2012-11-28Fix rtl::OUString::compareToIgnoreAsciiCaseStephan Bergmann
Change-Id: I40005ef4fad4d44314ec2fb2881fec82e926970e
2012-11-27implement a new iscii (devangari) <-> unicode converterCaolán McNamara
this time with support for the multi-byte encodings possible in ISCII Change-Id: I1dc09e8836676ab614b531e8dc10f91a90b7c4fd