summaryrefslogtreecommitdiffstats
path: root/svx/source/gallery2/galini.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin2013-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
* getFallbackStrings() with bIncludeFullBcp47 parameterEike Rathke2013-09-051-1/+2
| | | | | | | so the various places that check the full tag first do not have to get it just to delete it again. Change-Id: Ib4e3cf1b16988464db875f1b6ac5cf4a0ab60fe5
* gallery: allow comments in .str files.Michael Meeks2013-05-151-0/+6
| | | | Change-Id: I150dee5d9c3b8f2dc656c292d7e9ef56f05cff84
* gallery: add auxiliary .desktop style translation files.Michael Meeks2013-05-151-0/+88
Change-Id: I2f2f0d5d30fbcab83343f94fd16d9371baa380e5