Name
sqlite3_strnicmp() — Compare two strings while ignoring case [EXP]
Definition
int sqlite3_strnicmp( const char* textA, const char* textB, int lenth );
textA,textBTwo UTF-8 encoded strings.
-
length The maximum number of characters to compare.
- Returns
A negative value will be returned if
textA < textB, a zero value will be returned iftextA = textB, and a positive value will be returned iftextA > textB.
Description
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.
See Also
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access