147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
**
** A NULL glob matches nothing.
*/
int glob_match(Glob *pGlob, const char *zString){
int i;
if( pGlob==0 ) return 0;
for(i=0; i<pGlob->nPattern; i++){
if( sqlite3_strglob(pGlob->azPattern[i], zString) ) return i+1;
}
return 0;
}
/*
** Free all memory associated with the given Glob object
*/
|
|
|
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
**
** A NULL glob matches nothing.
*/
int glob_match(Glob *pGlob, const char *zString){
int i;
if( pGlob==0 ) return 0;
for(i=0; i<pGlob->nPattern; i++){
if( !sqlite3_strglob(pGlob->azPattern[i], zString) ) return i+1;
}
return 0;
}
/*
** Free all memory associated with the given Glob object
*/
|