theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
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 Sq3StrGlob (MK_STRN zGlob, MK_STRN zStr)
 String Globbing …
 
static MK_I32 Sq3StrIcmp (MK_STRN arg0, MK_STRN arg1)
 String Comparison …
 
static MK_I32 Sq3StrLike (MK_STRN zGlob, MK_STRN zStr, MK_I32 cEsc)
 String LIKE Matching …
 
static MK_I32 Sq3StrNicmp (MK_STRN arg0, MK_STRN arg1, MK_I32 arg2)
 String Comparison …
 

Sq3Lite - Sq3Lite_Internal_String_C_API - function

MK_I32 Sq3StrGlobP (MK_STRN zGlob, MK_STRN zStr)
 Non-inline replacement for Sq3StrGlob
 
MK_I32 Sq3StrIcmpP (MK_STRN arg0, MK_STRN arg1)
 Non-inline replacement for Sq3StrIcmp
 
MK_I32 Sq3StrLikeP (MK_STRN zGlob, MK_STRN zStr, MK_I32 cEsc)
 Non-inline replacement for Sq3StrLike
 
MK_I32 Sq3StrNicmpP (MK_STRN arg0, MK_STRN arg1, MK_I32 arg2)
 Non-inline replacement for Sq3StrNicmp
 

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);
#define SQLITE_API
SQLITE_API int sqlite3_strglob(const char *zGlob, const char *zStr)
SQLITE_API int sqlite3_strlike(const char *zGlob, const char *zStr, unsigned int cEsc)
SQLITE_API int sqlite3_strnicmp(const char *, const char *, int)
SQLITE_API int sqlite3_stricmp(const char *, const char *)

Function Documentation

◆ Sq3StrGlob()

static MK_I32 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 824 of file LibSq3Lite_sq3.h.

824 {
825 return sqlite3_strglob(zGlob, zStr);
826 }
+ Here is the caller graph for this function:

◆ Sq3StrGlobP()

MK_I32 Sq3StrGlobP ( MK_STRN zGlob,
MK_STRN zStr )

Non-inline replacement for Sq3StrGlob

◆ Sq3StrIcmp()

static MK_I32 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 829 of file LibSq3Lite_sq3.h.

829 {
830 return sqlite3_stricmp(arg0, arg1);
831 }
+ Here is the caller graph for this function:

◆ Sq3StrIcmpP()

MK_I32 Sq3StrIcmpP ( MK_STRN arg0,
MK_STRN arg1 )

Non-inline replacement for Sq3StrIcmp

◆ Sq3StrLike()

static MK_I32 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 834 of file LibSq3Lite_sq3.h.

834 {
835 return sqlite3_strlike(zGlob, zStr, (MK_U32)cEsc);
836 }
unsigned int MK_U32
+ Here is the caller graph for this function:

◆ Sq3StrLikeP()

MK_I32 Sq3StrLikeP ( MK_STRN zGlob,
MK_STRN zStr,
MK_I32 cEsc )

Non-inline replacement for Sq3StrLike

◆ Sq3StrNicmp()

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

String Comparison …

read more at 'Sq3StrIcmp'

Definition at line 839 of file LibSq3Lite_sq3.h.

839 {
840 return sqlite3_strnicmp(arg0, arg1, arg2);
841 }
+ Here is the caller graph for this function:

◆ Sq3StrNicmpP()

MK_I32 Sq3StrNicmpP ( MK_STRN arg0,
MK_STRN arg1,
MK_I32 arg2 )

Non-inline replacement for Sq3StrNicmp