Sq3Lite PACKAGE - functions related to index 'Internal' and doc 'String' … More...
Functions | |
static MK_I32 | libsq3lite::Sq3StrGlob (MK_STRN zGlob, MK_STRN zStr) |
String Globbing … | |
static MK_I32 | libsq3lite::Sq3StrIcmp (MK_STRN arg0, MK_STRN arg1) |
String Comparison … | |
static MK_I32 | libsq3lite::Sq3StrLike (MK_STRN zGlob, MK_STRN zStr, MK_I32 cEsc) |
String LIKE Matching … | |
static MK_I32 | libsq3lite::Sq3StrNicmp (MK_STRN arg0, MK_STRN arg1, MK_I32 arg2) |
String Comparison … | |
Sq3Lite PACKAGE - functions related to index 'Internal' and doc 'String' …
String Comparison:
String Globbing:
String LIKE Matching:
Reference code from sqlite3:
String Globbing …
The Sq3StrGlob (P,X) interface returns zero if and only if string X matches the GLOB pattern P. The definition of GLOB pattern matching used in Sq3StrGlob (P,X) is the same as for the "X GLOB P" operator in the SQL dialect understood by SQLite. The Sq3StrGlob (P,X) function is case sensitive.
Note that this routine returns zero on a match and non-zero if the strings do not match, the same as Sq3StrIcmp () and Sq3StrNicmp ().
See also: Sq3StrLike ().
Reference code from sqlite3:
Definition at line 835 of file LibSq3Lite_sq3.h.
String Comparison …
The Sq3StrIcmp () and Sq3StrNicmp () APIs allow applications and extensions to compare the contents of two buffers containing UTF-8 strings in a case-independent fashion, using the same definition of "case independence" that SQLite uses internally when comparing identifiers.
Reference code from sqlite3:
Definition at line 840 of file LibSq3Lite_sq3.h.
String LIKE Matching …
The Sq3StrLike (P,X,E) interface returns zero if and only if string X matches the LIKE pattern P with escape character E. The definition of LIKE pattern matching used in Sq3StrLike (P,X,E) is the same as for the "X LIKE P ESCAPE E" operator in the SQL dialect understood by SQLite. For "X LIKE P" without the ESCAPE clause, set the E parameter of Sq3StrLike (P,X,E) to 0. As with the LIKE operator, the Sq3StrLike (P,X,E) function is case insensitive - equivalent upper and lower case ASCII characters match one another.
The Sq3StrLike (P,X,E) function matches Unicode characters, though only ASCII characters are case folded.
Note that this routine returns zero on a match and non-zero if the strings do not match, the same as Sq3StrIcmp () and Sq3StrNicmp ().
See also: Sq3StrGlob ().
Reference code from sqlite3:
Definition at line 845 of file LibSq3Lite_sq3.h.
String Comparison …
Definition at line 850 of file LibSq3Lite_sq3.h.