1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-21 11:13:54 +03:00

Add the sqlite3_strglob() interface.

FossilOrigin-Name: 41d6ff32a6dd1311dc3aabe5156335a64a886919
This commit is contained in:
drh
2013-04-10 16:13:38 +00:00
parent 4c5298f352
commit 56282a5bc7
4 changed files with 30 additions and 8 deletions

View File

@@ -693,6 +693,13 @@ static int patternCompare(
return *zString==0;
}
/*
** The sqlite3_strglob() interface.
*/
int sqlite3_strglob(const char *zGlobPattern, const char *zString){
return patternCompare((u8*)zGlobPattern, (u8*)zString, &globInfo, 0)==0;
}
/*
** Count the number of times that the LIKE operator (or GLOB which is
** just a variation of LIKE) gets called. This is used for testing