Files
odfstudio/dbaccess
Noel Grandin e2451bd729 Convert indexOf->startsWith and lastIndexOf->endsWith
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
2013-10-31 08:34:21 +02:00
..
2013-09-08 20:44:27 +01:00
2013-06-24 11:25:34 +01:00
2013-05-13 09:48:12 +02:00
2013-09-10 19:52:00 +01:00
2013-05-07 01:41:23 +02:00
2013-05-07 01:41:23 +02:00
2012-10-01 13:55:41 +02:00
…

Database access tools, for "base" database application