theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3Lite_Internal_String_C_API

Sq3Lite PACKAGE - functions related to index 'Internal' and doc 'String' … More...

+ Collaboration diagram for Sq3Lite_Internal_String_C_API:

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 …
 

Detailed Description

Sq3Lite PACKAGE - functions related to index 'Internal' and doc 'String' …

String Comparison:

String Globbing:

String LIKE Matching:

Reference code from sqlite3:

// String Comparison:
SQLITE_API int sqlite3_stricmp(const char *, const char *);
SQLITE_API int sqlite3_strnicmp(const char *, const char *, int);
// String Globbing:
SQLITE_API int sqlite3_strglob(const char *zGlob, const char *zStr);
// String LIKE Matching:
SQLITE_API int sqlite3_strlike(const char *zGlob, const char *zStr, unsigned int cEsc);

Function Documentation

◆ Sq3StrGlob()

static MK_I32 libsq3lite::Sq3StrGlob ( MK_STRN zGlob,
MK_STRN zStr )
inlinestatic

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:

SQLITE_API int sqlite3_strglob(const char *zGlob, const char *zStr);

Definition at line 835 of file LibSq3Lite_sq3.h.

836 {
837 return sqlite3_strnicmp(arg0, arg1, arg2);
+ Here is the caller graph for this function:

◆ Sq3StrIcmp()

static MK_I32 libsq3lite::Sq3StrIcmp ( MK_STRN arg0,
MK_STRN arg1 )
inlinestatic

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:

SQLITE_API int sqlite3_stricmp(const char *, const char *);
SQLITE_API int sqlite3_strnicmp(const char *, const char *, int);

Definition at line 840 of file LibSq3Lite_sq3.h.

+ Here is the caller graph for this function:

◆ Sq3StrLike()

static MK_I32 libsq3lite::Sq3StrLike ( MK_STRN zGlob,
MK_STRN zStr,
MK_I32 cEsc )
inlinestatic

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:

SQLITE_API int sqlite3_strlike(const char *zGlob, const char *zStr, unsigned int cEsc);

Definition at line 845 of file LibSq3Lite_sq3.h.

846 {
847 enum Sq3ErrorE errVal = (enum Sq3ErrorE)sqlite3_initialize();
Sq3ErrorE
Result Codes.
+ Here is the caller graph for this function:

◆ Sq3StrNicmp()

static MK_I32 libsq3lite::Sq3StrNicmp ( MK_STRN arg0,
MK_STRN arg1,
MK_I32 arg2 )
inlinestatic

String Comparison …

read more at 'Sq3StrIcmp'

Definition at line 850 of file LibSq3Lite_sq3.h.

850 :
851 return MK_ERROR;
852 }
+ Here is the caller graph for this function: