int sqlite3_strnicmp( const char* textA, const char* textB, int lenth );
textA
, textB
Two UTF-8 encoded strings.
length
The maximum number of characters to compare.
A negative value will be returned if textA < textB
, a
zero value will be returned if textA =
textB
, and a positive value will be
returned if textA
> textB
.
This function allows an application to compare two strings using the same case-independent logic that SQLite uses internally. Remember that this is an order comparison function, not an “is equal” function. A result of zero (which is often interpreted as false) indicates that the two strings are equivalent.
The ability to ignore letter case only applies to characters with a character code of 127 or less. The behavior of this function when using character codes greater than 255 is somewhat undefined.