Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator | Szabolcs Dezsi | 2012-04-06 | 5 | -30/+14 |
| | |||||
* | Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator | Szabolcs Dezsi | 2012-04-06 | 1 | -7/+7 |
| | | | | | | Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *) *{$/\1\2 ( \3 == \4 ) {/' \{\} \; | ||||
* | reset the flag before checking it it will be set again | Luboš Luňák | 2012-04-06 | 1 | -0/+1 |
| | |||||
* | fix gcc-4.0.1 and/or 32bit build for string literals | Luboš Luňák | 2012-04-06 | 2 | -3/+3 |
| | | | | | | | Plain 0 is ambiguous to convert to either long or const char*, and just adding an overload next to sal_Int32 would be a dupe if they actually are the same type, so just go with plain int, which is the sensible thing to do anyway. | ||||
* | Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator | Szabolcs Dezsi | 2012-04-06 | 2 | -7/+7 |
| | | | | | | Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \; | ||||
* | string literal O(U)StringBuffer ctors too, after all | Luboš Luňák | 2012-04-06 | 9 | -33/+162 |
| | |||||
* | Catch attempts to open /assets files read-write. Improve debugging output | Tor Lillqvist | 2012-04-05 | 1 | -15/+63 |
| | |||||
* | Translated German comments to English in folder 'sal'. | Mark Wolf | 2012-04-05 | 7 | -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 | ||||
* | Minor tweakings | Stephan Bergmann | 2012-04-04 | 3 | -16/+15 |
| | |||||
* | SAL_REINTERPRET_CAST returns, for API stability (for 3rd-party extensions) | Tor Lillqvist | 2012-04-03 | 1 | -0/+1 |
| | |||||
* | try including the ostream<<OUString operator directly with OUString | Luboš Luňák | 2012-04-03 | 3 | -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. | ||||
* | SAL_DEBUG(), instead of those temporary debug printf's | Luboš Luňák | 2012-04-03 | 3 | -6/+29 |
| | |||||
* | Simplify SAL_CONST_CAST and SAL_STATIC_CAST defns, mention they are obsolete | Tor Lillqvist | 2012-04-03 | 1 | -12/+2 |
| | |||||
* | don't skip first cmdline argument | Luboš Luňák | 2012-04-03 | 1 | -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. | ||||
* | I'm dumb, fromAscii() stops at \0. | Luboš Luňák | 2012-04-03 | 2 | -3/+2 |
| | |||||
* | fix crude command line arguments handling | Luboš Luňák | 2012-04-02 | 1 | -35/+45 |
| | |||||
* | fix very ... uhm ... inventive and confusing use of empty string | Luboš Luňák | 2012-04-02 | 2 | -24/+11 |
| | |||||
* | warn on \0 embedded in string literals, after all | Luboš Luňák | 2012-04-02 | 3 | -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. | ||||
* | sal: reduce allocation thrash in URI encode / decode | Michael Meeks | 2012-04-02 | 1 | -4/+4 |
| | | | | This saves 1% of string allocation / destruction on startup. | ||||
* | sal: expose more stringbuffer related instrumentation points | Michael Meeks | 2012-04-02 | 9 | -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. | ||||
* | Refactor where patch_libgnustl_shared() and extract_files() are called | Tor Lillqvist | 2012-04-02 | 1 | -5/+14 |
| | |||||
* | Add a JNI_OnLoad() to store the JavaVM* also from non-NativeActivity apps | Tor Lillqvist | 2012-04-02 | 1 | -5/+25 |
| | |||||
* | sal: rtlbootstrap.mk was empty on cygwin | Matúš Kukan | 2012-04-01 | 1 | -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. | ||||
* | sal: use CustomTarget makefile | Matúš Kukan | 2012-03-31 | 3 | -15/+19 |
| | |||||
* | Use correct JNI name mangling of underscores | Tor Lillqvist | 2012-03-30 | 1 | -2/+2 |
| | |||||
* | do not just warn on allocation failure, simply abort | Luboš Luňák | 2012-03-30 | 2 | -4/+4 |
| | |||||
* | no bad_alloc throwing in string literal O(U)String functions | Luboš Luňák | 2012-03-30 | 2 | -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. | ||||
* | sal: add a more permanant set of annotations for lifetime tracking. | Michael Meeks | 2012-03-30 | 2 | -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. | ||||
* | (const) char[] (i.e. size unknown) cannot be used with O(U)String | Luboš Luňák | 2012-03-29 | 2 | -3/+25 |
| | | | | | msvc can't handle the necessary template overload (and maybe it's right, I'm not sure) | ||||
* | No CppunitTest_sal_osl_process for iOS either | Tor Lillqvist | 2012-03-29 | 1 | -1/+2 |
| | |||||
* | (const) char[] is a plain C string type too | Luboš Luňák | 2012-03-29 | 1 | -1/+12 |
| | | | | and it's size is not known, so it cannot be taken as a string literal | ||||
* | fix SFINAE detection of const char[N] for msvc | Luboš Luňák | 2012-03-29 | 1 | -0/+6 |
| | |||||
* | CPPUNIT_ASSERT_EQUAL() takes expected as the first argument | Luboš Luňák | 2012-03-28 | 2 | -12/+12 |
| | |||||
* | gcc-4.0.1 SFINAE workarounds | Luboš Luňák | 2012-03-28 | 2 | -0/+18 |
| | |||||
* | string literal overloads for OStringBuffer | Luboš Luňák | 2012-03-28 | 2 | -2/+73 |
| | |||||
* | make unittest check also for invalid conversions with OUStringBuffer | Luboš Luňák | 2012-03-28 | 1 | -0/+3 |
| | |||||
* | string literal overload for OUStringBuffer::insert() | Luboš Luňák | 2012-03-28 | 2 | -0/+15 |
| | |||||
* | string literal overload in the right place | Luboš Luňák | 2012-03-28 | 1 | -13/+13 |
| | |||||
* | clean up string literal overloads in OUStringBuffer | Luboš Luňák | 2012-03-28 | 1 | -15/+4 |
| | |||||
* | OUString does not have any non-const char functions, no need to check for it | Luboš Luňák | 2012-03-28 | 1 | -5/+0 |
| | |||||
* | use SFINAE to remove non-const char[N] OUString overloads | Luboš Luňák | 2012-03-28 | 4 | -244/+143 |
| | |||||
* | move string helper types to stringutils.hxx | Luboš Luňák | 2012-03-28 | 7 | -70/+227 |
| | |||||
* | SFINAE workarounds for gcc-4.0.1 | Luboš Luňák | 2012-03-28 | 2 | -0/+9 |
| | |||||
* | Add JNI wrapper for InitUCBHelper() and call it | Tor Lillqvist | 2012-03-28 | 1 | -0/+21 |
| | |||||
* | stray debugging line | Caolán McNamara | 2012-03-28 | 1 | -1/+0 |
| | |||||
* | when run under memcheck allow SIGUSR2 to dump current memory allocations | Caolán McNamara | 2012-03-28 | 1 | -3/+42 |
| | |||||
* | these VALGRIND allocator annotations never worked for me, just busted memcheck | Caolán McNamara | 2012-03-28 | 3 | -83/+0 |
| | |||||
* | remove (non-const) char[N] overloads introduced because of string literals | Luboš Luňák | 2012-03-28 | 1 | -196/+113 |
| | | | | Cleaned up SFINAE helper classes and added even more comments. | ||||
* | sal: add dependency for unit test, fix typo in comment | Matúš Kukan | 2012-03-28 | 2 | -2/+6 |
| | |||||
* | more SFINAE to distinguish between const char* and const char[] | Luboš Luňák | 2012-03-28 | 2 | -14/+56 |
| |