Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
k32s kStrCompareN ( const kChar a,
const kChar b,
kSize  maxCount 
)

Compares one string to another, only up to a maximum number of characters.

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
aFirst string.
bSecond string.
maxCountMaximum number of characters to compare.
Returns
Positive if a is greater than b, negative if b is greater than a; otherwise zero.