Compares substrings of two specified string objects and returns an integer that indicates their relative position in the sort order.
- Parameters
-
str_a | The first string to use in the comparison. |
index_a | The position of the substring within str_a. |
str_b | The second string to use in the comparison. |
index_b | The position of the substring within str_b. |
length | The maximum number of characters in the substrings to compare |
- Returns
- A 32-bit signed integer that indicates the lexical relationship between the two compares.
Value | Condition |
Less than zero | str_a precedes str_b in the sort order. |
Zero | str_a occurs in the same position as str_b in the sort order. |
Greater than zero | str_a follows str_b in the sort order. |