stepCompare function
PIComposer APIPIComposer API

stepCompare#

int stepCompare(String first, String second)

ISO 10303 compliant string ordering comparison function.

Performs lexicographical comparison following STEP (ISO 10303) conventions:

  • Underscore characters (_) are treated as spaces for comparison
  • Standard Unicode code point ordering is used otherwise

first: The first string to compare second: The second string to compare Returns:

  • -1 if first is less than second
  • 0 if first is equal to second
  • 1 if first is greater than second