summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06string literal O(U)StringBuffer ctors too, after allLuboš Luňák9-33/+162
2012-04-05Catch attempts to open /assets files read-write. Improve debugging outputTor Lillqvist1-15/+63
2012-04-05Translated German comments to English in folder 'sal'.Mark Wolf7-131/+121
sal/qa/rtl_strings/rtl_old_testostring.cxx contains some German comments still but the code itself uses test strings in German. When the test strings appear in the comments, they were left unchanged to maintain consistency. Mark Wolf
2012-04-04Minor tweakingsStephan Bergmann3-16/+15
2012-04-03SAL_REINTERPRET_CAST returns, for API stability (for 3rd-party extensions)Tor Lillqvist1-0/+1
2012-04-03try including the ostream<<OUString operator directly with OUStringLuboš Luňák3-14/+15
The theory is that - the operator is suboptimal, because it always uses utf-8 as the encoding, which might possibly lead to some encoding problem somewhere but - the SAL_LOG macros need it anyway, or they are otherwise cumbersome with OUString - as people learn to use the macros more, rtl/oustringostreaminserter.hxx will be included in more and more places, eventually possibly triggering the above problem anyway - people probably should not just blindly do ostream << oustring if they have special encoding requirements So let's try to simply always have the operator available and see how it works out.
2012-04-03SAL_DEBUG(), instead of those temporary debug printf'sLuboš Luňák3-6/+29
2012-04-03Simplify SAL_CONST_CAST and SAL_STATIC_CAST defns, mention they are obsoleteTor Lillqvist1-12/+2
2012-04-03don't skip first cmdline argumentLuboš Luňák1-2/+1
It looks like this one is also meant to be called manually or something, and the original version didn't skip the first argument either.
2012-04-03I'm dumb, fromAscii() stops at \0.Luboš Luňák2-3/+2
2012-04-02fix crude command line arguments handlingLuboš Luňák1-35/+45
2012-04-02fix very ... uhm ... inventive and confusing use of empty stringLuboš Luňák2-24/+11
2012-04-02warn on \0 embedded in string literals, after allLuboš Luňák3-1/+8
Seeing 791f27683311e487947b0464a0cb132b19fd0e12 I've changed my mind, some embedded \0 can be actually well hidden: struct foo { const char txt[3]; }; const foos[] = { { "a" }, { "bb" }}; If somebody wants an embedded \0 in a string literal, they need to say it explicitly by specifying the size.
2012-04-02sal: reduce allocation thrash in URI encode / decodeMichael Meeks1-4/+4
This saves 1% of string allocation / destruction on startup.
2012-04-02sal: expose more stringbuffer related instrumentation pointsMichael Meeks9-49/+86
Avoid ref/unref pair in makeStringAndClear, hook into the stringbuffer-like 'String' class to expose it's conversion to immutable strings, and fixup misc. missing instrumentation.
2012-04-02Refactor where patch_libgnustl_shared() and extract_files() are calledTor Lillqvist1-5/+14
2012-04-02Add a JNI_OnLoad() to store the JavaVM* also from non-NativeActivity appsTor Lillqvist1-5/+25
2012-04-01sal: rtlbootstrap.mk was empty on cygwinMatúš Kukan1-1/+7
This needs proper fix. It wasn't noticed because it was created by pipe before afd5eb1f04971edb083e47a2f9c2e9d77c9737c9 and last command succeeded, so make continued even if compilation failed.
2012-03-31sal: use CustomTarget makefileMatúš Kukan3-15/+19
2012-03-30Use correct JNI name mangling of underscoresTor Lillqvist1-2/+2
2012-03-30do not just warn on allocation failure, simply abortLuboš Luňák2-4/+4
2012-03-30no bad_alloc throwing in string literal O(U)String functionsLuboš Luňák2-24/+1
String literals should be reasonably short, and if memory is so low that they trigger allocation failure, something else would would trip over very soon anyway.
2012-03-30sal: add a more permanant set of annotations for lifetime tracking.Michael Meeks2-13/+51
Having done this on a temporary basis a couple of times before, it'd be good to avoid having to do the instrumentation again.
2012-03-29(const) char[] (i.e. size unknown) cannot be used with O(U)StringLuboš Luňák2-3/+25
msvc can't handle the necessary template overload (and maybe it's right, I'm not sure)
2012-03-29No CppunitTest_sal_osl_process for iOS eitherTor Lillqvist1-1/+2
2012-03-29(const) char[] is a plain C string type tooLuboš Luňák1-1/+12
and it's size is not known, so it cannot be taken as a string literal
2012-03-29fix SFINAE detection of const char[N] for msvcLuboš Luňák1-0/+6
2012-03-28CPPUNIT_ASSERT_EQUAL() takes expected as the first argumentLuboš Luňák2-12/+12
2012-03-28gcc-4.0.1 SFINAE workaroundsLuboš Luňák2-0/+18
2012-03-28string literal overloads for OStringBufferLuboš Luňák2-2/+73
2012-03-28make unittest check also for invalid conversions with OUStringBufferLuboš Luňák1-0/+3
2012-03-28string literal overload for OUStringBuffer::insert()Luboš Luňák2-0/+15
2012-03-28string literal overload in the right placeLuboš Luňák1-13/+13
2012-03-28clean up string literal overloads in OUStringBufferLuboš Luňák1-15/+4
2012-03-28OUString does not have any non-const char functions, no need to check for itLuboš Luňák1-5/+0
2012-03-28use SFINAE to remove non-const char[N] OUString overloadsLuboš Luňák4-244/+143
2012-03-28move string helper types to stringutils.hxxLuboš Luňák7-70/+227
2012-03-28SFINAE workarounds for gcc-4.0.1Luboš Luňák2-0/+9
2012-03-28Add JNI wrapper for InitUCBHelper() and call itTor Lillqvist1-0/+21
2012-03-28stray debugging lineCaolán McNamara1-1/+0
2012-03-28when run under memcheck allow SIGUSR2 to dump current memory allocationsCaolán McNamara1-3/+42
2012-03-28these VALGRIND allocator annotations never worked for me, just busted memcheckCaolán McNamara3-83/+0
2012-03-28remove (non-const) char[N] overloads introduced because of string literalsLuboš Luňák1-196/+113
Cleaned up SFINAE helper classes and added even more comments.
2012-03-28sal: add dependency for unit test, fix typo in commentMatúš Kukan2-2/+6
2012-03-28more SFINAE to distinguish between const char* and const char[]Luboš Luňák2-14/+56
2012-03-28hopefully only OString ctors do not work with SFINAE brokenLuboš Luňák1-2/+0
2012-03-28string literal overloads for rest of OString methodsLuboš Luňák2-13/+317
2012-03-28CPPUNIT_ASSERT_MESSAGE -> CPPUNIT_ASSERT_EQUAL_MESSAGELuboš Luňák1-36/+36
2012-03-26finish work-in-progress testLuboš Luňák1-2/+1
2012-03-26string literal overload for OString::operator=()Luboš Luňák3-0/+87