summaryrefslogtreecommitdiffstats
path: root/sal
Commit message (Collapse)AuthorAgeFilesLines
* API CHANGE: drop obsolete rtl/oustringostreaminserter.hxxStephan Bergmann2012-12-062-22/+0
| | | | | | ...its functionality moved directly into rtl/ustring.hxx Change-Id: I5a1af63a4fd61c71e6594f1fab0c17f503fdd1c5
* Put stubs for removed functionality into compat.cxxStephan Bergmann2012-12-062-21/+20
| | | | Change-Id: I634c6c699f8573113cdf0763c2cc83dcc04b0b0e
* LIBO_UDK_3.7 -> LIBO_UDK_4.0Luboš Luňák2012-12-041-1/+1
| | | | | | There will be no 3.7. Change-Id: Ib2808aa259baaa7eac42c7ec7a640105fc8c07a1
* replace #pragma weak with __attribute__((weak))Luboš Luňák2012-12-041-6/+3
| | | | | | They do the same in this case, but clang doesn't know the former and warns. Change-Id: I4895f80d4b25c147e073f3fea7db6fd2acfb84a4
* remove unused variables and codeLuboš Luňák2012-12-042-25/+3
| | | | Change-Id: I4cd76fb5bb3187a9a25e9a73556c8ee3be1a5361
* sal: warning C4267: return: conversion from 'size_t' to 'int'...Michael Stahl2012-12-045-8/+14
| | | | | | | | | ... possible loss of data. Minimal fix that inserts casts when calling strlen; other option would be to change all length() to return size_t... Change-Id: I5d1e0b0c7175a1957aad3acd89884fcd37089454
* Fixup: putting back dummy methods for removed semaphoreThorsten Behrens2012-12-043-0/+49
| | | | | | We don't want to change sal SONAME just yet. Change-Id: I3a9de9a53a4ba845c00a26450e281534ca5d97f6
* API CHANGE: remove long-deprecated Semaphore & related stuff.Thorsten Behrens2012-12-0412-550/+0
| | | | | | | osl::semaphore was not portable & thusly long-deprecated. Also killing further unused clients of that code in salhelper. Change-Id: Ie1c1924e06e8ce3be33fd1dc2c6933f2de8b5217
* fix non-fast string operator+ debug buildLuboš Luňák2012-12-044-0/+4
| | | | | | the asserts I've added need string.h , which was not available in that case Change-Id: If8dbedcb48400e5edd0bde0214640c2c392fde2b
* Fix fast concat of empty stringsStephan Bergmann2012-12-044-5/+13
| | | | Change-Id: Ice9c6974f44be3bc4c9b3533de2a9beb5b146ca5
* mac gcc 4.0.1 does not support __attribute((warn_unused_result)) very wellNorbert Thiebaud2012-12-041-1/+1
| | | | Change-Id: Ie8a6a06cd923192891453c9291f37709dfc15079
* fix capacity in stringbuffersLuboš Luňák2012-12-032-4/+6
| | | | | | | rtl_stringbuffer_* functions silently allocate +16 extra for capacity, but rtl_string_* functions do not. As intuitive and obvious as ever. Change-Id: Ia0bb63dedf31f6ad5c687187221d7385043b5456
* avoid unused warning in non-debug modeLuboš Luňák2012-12-031-1/+1
| | | | Change-Id: I9687f5388a8c01075ee6e359ff9350edff296f4d
* assert on strange lengths of string literalsLuboš Luňák2012-12-038-9/+54
| | | | | | | | 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
* make sure fast string operator+ is used only by LO codeLuboš Luňák2012-12-031-1/+3
| | | | Change-Id: Iaa8fc379e4d032931c0f60a3e3525783d8d28964
* fixes for where fast string operator+ is not perfectly source compatibleLuboš Luňák2012-12-031-0/+1
| | | | Change-Id: I80af0399037e4f68113338139e7f2ad2400e65ab
* support for fast O(U)String concatenation using operator+Luboš Luňák2012-12-0310-0/+632
| | | | | | | | | 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
* Improve English commentsNaser Sharifi2012-12-031-62/+61
| | | | | | Corrected types and grammer errors in comments Change-Id: I47ce77a8d36d71677720be6dd80594ec76970376
* VS2012 knows that std::abort() does what it says on the tin (WaE: ↵Tor Lillqvist2012-12-031-4/+4
| | | | unreachable code)
* Remove useless getpid implementation on Linux.Arnaud Versini2012-12-011-34/+0
| | | | | | | | | The new minimal target have a proper getpid implementation. Change-Id: I1cf209d8b4cb651866287c3a682ebd0806ab35b9 Reviewed-on: https://gerrit.libreoffice.org/1219 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* unused variablesLuboš Luňák2012-12-011-2/+0
| | | | Change-Id: Ia8b2ac25d3949508b132d1b0b05e5384633d935f
* but back a unittest check about invalid char[] -> OUString(Buffer) conversionLuboš Luňák2012-12-011-0/+2
| | | | | | | 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
* OUStringBuffer constructor from OUStringBuffer should use const argNorbert Thiebaud2012-12-012-2/+1
| | | | | | | 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>
* eradicate all traces of OLocale and rtl/locale.hxxMichael Stahl2012-11-301-13/+0
| | | | | | ... damn language tags breaking builds left and right ... Change-Id: I73224cb3fb2bb98779fdcace700cad2a4fb7cd0e
* ditched rtl::OLocaleEike Rathke2012-11-304-283/+30
| | | | Change-Id: I3f4a09c82df1bc71759331705c502320f973d4bb
* Find a more sensible place for cssStephan Bergmann2012-11-301-12/+11
| | | | Change-Id: I33fe83c47954f62d8b678430e97cf711a98568d1
* c++ API: use css alias in generated headers, adds global css declThorsten Behrens2012-11-301-0/+8
| | | | | | | | | | | | This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
* We only support MSVC 2008 (_MSC_VER 1500) or laterTor Lillqvist2012-11-286-20/+6
| | | | | | We can drop or simplify many conditionals. Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
* add SAL_WARN_UNUSED_RESULT in OString and OUString where appropriateNorbert Thiebaud2012-11-282-18/+18
| | | | | | | | | | | | | | | | | | | | | | | String used to do some operation by modifying itself whereas OUString never does that and when a modificaiton is needed it create a new copy. so it is very easy when one convert String code to OUString code to miss stuff like sString.ToUpperCase() which need to be converted into sString = sString.toAsciiUpperCase() and not sString.toAsciiUpperCase() This patch make the compiler generate a warning in that later _wrong_ case Change-Id: I4a9c0b4c7d0b75ad8850ac23b86e8508a334f5fe Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Clean up previous rtl::OUStringBuffer changesStephan Bergmann2012-11-281-9/+4
| | | | | | | | | | The OUString assignment operator is less transactional than it could be, but is also not necessasry, as OUStringBuffer has a non-explicit conversion constructor from OUString. Added some missing @since tags. Change-Id: I830be93fde78422c5a7eff9437b53e2d2d70933a
* Fix rtl::OUString::compareToIgnoreAsciiCaseStephan Bergmann2012-11-282-6/+19
| | | | Change-Id: I40005ef4fad4d44314ec2fb2881fec82e926970e
* OUString has a matchIgnoreAsciiCase but no compareTo version of itNorbert Thiebaud2012-11-271-0/+24
| | | | Change-Id: Ie02dc3511e262a3b13df38ddbe0b3136f291ac9e
* add API to OUStringBuffer to make assignment/copy more versatileNorbert Thiebaud2012-11-271-1/+29
| | | | Change-Id: I95cd8e97044cd5a65500d3a674995f417c4f2e29
* android folds libsal_textenc into libsalCaolán McNamara2012-11-271-0/+1
| | | | Change-Id: I749238e38b64abde9b601fcee99bdd1f753cdcff
* add dependency on sal_textenc dlopened libCaolán McNamara2012-11-271-0/+7
| | | | Change-Id: I527536083d546afbb5673a16bc5527915ea9d3f7
* warning C4309: '=' : truncation of constant valueStephan Bergmann2012-11-271-19/+19
| | | | | | plus warning C4701: potentially uninitialized local variable 'cChar' used Change-Id: I41df38d0fe8e915cc2a366e0be509c4a0205b105
* Make python3 work with custom VALGRIND_CFLAGSStephan Bergmann2012-11-273-8/+8
| | | | Change-Id: Ia4b08a1b20bf46af4d06c0478ed8e795ee543703
* implement a new iscii (devangari) <-> unicode converterCaolán McNamara2012-11-277-43/+611
| | | | | | | this time with support for the multi-byte encodings possible in ISCII Change-Id: I1dc09e8836676ab614b531e8dc10f91a90b7c4fd
* get textencoding tests working againCaolán McNamara2012-11-264-1251/+1135
| | | | Change-Id: Ia3e0b7be14800e1d50c3e785153b45d2b4a7dd6d
* fix unicode to dingbats conversionCaolán McNamara2012-11-261-5/+5
| | | | | | | | | | enabling the text encoding tests show that the unicode to dingbats conversion is wrong in two places. a) 0x27CF should be 0x25CF b) The unicode range starting at 0x2460 should map to 0xAB not 0xAC Change-Id: I3899e1bbfc3f20ef67eb75c703ad7f23abe81509
* removal of ISCII code left a bogus hole in tableCaolán McNamara2012-11-261-0/+8
| | | | Change-Id: I341e36a59172116c9f90c67c6ab23d9e4f2c5847
* Add an $APP_DATA_DIR predefiend thingie in bootstrap ("rc") files for AndroidTor Lillqvist2012-11-221-0/+12
| | | | | | | | | | It expands to what lo_get_app_data_dir() returns, i.e. the activity's getApplicationInfo().dataDir. Use it in the LibreOffice4Android app's rc files instead of a hardcoded (possibly device- and/or OS version dependent) path. Change-Id: I8145f2c86eeded39232fb251a79fa64f31f77f55
* Add lo_get_app_data_dir()Tor Lillqvist2012-11-222-0/+9
| | | | Change-Id: I13ab54ce5c6d67f1623b7f1923678091660d202d
* create SAL_DEPRECATED_INTERNAL for annotating APIMichael Meeks2012-11-221-0/+15
| | | | | | | It flags methods that we don't want used externally, but havn't finished removing internally. Change-Id: I818ee0ea2bf5294be816256a0e7f1868f26806b8
* Fail fastStephan Bergmann2012-11-221-4/+2
| | | | Change-Id: I17d6ab71ec7bcf40dccb2c9ffe3d9f2e6b10f01c
* Clean up remains of NativeActivity-based Android app supportTor Lillqvist2012-11-219-971/+20
| | | | | | | | | | | | | | | We haven't been able to build NativeActivity-based apps (like the android/qa/sc and anroid/qa/desktop thingies) since we switched to DISABLE_DYNLOADING and a single DSO liblo-native-code.so anyway. No lo_main() any more. <sal/main.h> should not be included ever when compiling for Android of iOS now. Lots of stuff binned from vcl's androidinst.cxx, in the (vain?) hope that it will reduce the amount of never invoked GUI code that gets linked in. Change-Id: I25f584864c40110774c728a23151e089620442d9
* android: fix cppunit testingMichael Meeks2012-11-211-1/+2
|
* Use correct variable in the iOS and Android casesTor Lillqvist2012-11-211-4/+4
| | | | Change-Id: I759ea062c6a0cc1d9a2aafba502057f53596459c
* This function should obviously be exported for it to be callableTor Lillqvist2012-11-211-1/+1
| | | | Change-Id: Ia63e27ec40a66c52b52292549ea03899c1b3801e
* a replace() to OUStringBufferNorbert Thiebaud2012-11-211-0/+20
| | | | | | | Change-Id: I2cbfeea9800ad656c49ce1cae7ff1f4b830f1442 Reviewed-on: https://gerrit.libreoffice.org/1139 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>