mpictor/StepClassLibrary — Issue #136: stricmp/strcasecmp imcompatibility for embarcadero
Author: davyw
Created: 2012-02-10 20:59:10+00:00
State: open

On embarcadero builds (I think all versions, or at least all version I have available) stricmp (case insensitive string compare)
first converts string to uppercase, then compares. For msvc (_stricmp) and gcc (strcasecmp) conversion is done to
lowercase and then compared.
This raises some odd behavious while parsing.

Consider following two strings: "bounded_surface" and "b_spline_surface", on msvc/gcc when comparing those strings it returns
a positive result (str1 > str2), while on embarcadero it returns a negative result (str1 < str2).
This happens because '_' characters is in between capital and small letters in the ascii table.

Don't really know what would be the best way to fix this, implement a stricmp with lowercase for borland builds or some other solution.

Comments are welcome...