Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

k32s kStrCompare | ( | const kChar * | a,
|  | const kChar * | b
| ) |  |

Compares one string to another.

The result is negative if the string a is lexically less than string b, positive if string a is lexically greater than string b, and zero if they are equal.

This function performs comparison of UTF-8 encoded characters by Unicode code point.

Parameters

  a | First string.
  b | Second string.

Returns
  Positive if a is greater than b, negative if b is greater than a; otherwise zero.