Signature
native strncmp(const string1[], const string2[], num, bool:ignorecase = false);
Description
Compares two strings parts lexographically.
Notes
- Only available in 1.8.3 and above.
- This supports multi-byte characters (UTF-8) on case insensitive comparison.
Parameters
- string1 — First string (left).
- string2 — Second string (right).
- num — Number of characters to compare.
-
ignorecase
—
If true, comparison is case insensitive.
If false (default), comparison is case sensitive.
Returns
-1 if string1 < string2
0 if string1 == string2
1 if string1 > string2