Files
odfstudio/codemaker
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
..
2012-04-14 06:58:00 -05:00
2013-04-11 09:29:44 +02:00

Generators for language-binding--specific representations of UNOIDL entities:
- cppumaker generates header (.hdl and .hpp) files for the C++ UNO language
  binding
- javamaker generates class files for the JVM language binding
- the codemaker for .Net is in module cli_ure

Some of the code is re-used by the skeletonmakers in module unodevtools.


Note the different terminology used by cppumaker vs. gbuild for the three
variants that can be generated by cppumaker for some of the inline functions:

  cppumaker switch: -L;    cpputype.cxx: light;          gbuild: normal;
  cppumaker switch: none;  cpputype.cxx: normal;         gbuild: bootstrap;
  cppumaker switch: -C;    cpputype.cxx: comprehensive;  gbuild: comprehensive;

...a recipe for confusion.