Lines Matching refs:i
156 int h, i; in sqliteKeywordCode() local
165 for(i=0; i<nk; i++){ in sqliteKeywordCode()
166 aKeywordTable[i].len = strlen(aKeywordTable[i].zName); in sqliteKeywordCode()
167 h = sqliteHashNoCase(aKeywordTable[i].zName, aKeywordTable[i].len); in sqliteKeywordCode()
169 aKeywordTable[i].iNext = aiHashTable[h]; in sqliteKeywordCode()
170 aiHashTable[h] = i+1; in sqliteKeywordCode()
177 for(i=aiHashTable[h]; i; i=p->iNext){ in sqliteKeywordCode()
178 p = &aKeywordTable[i-1]; in sqliteKeywordCode()
219 int i; in sqliteGetToken() local
222 for(i=1; isspace(z[i]); i++){} in sqliteGetToken()
224 return i; in sqliteGetToken()
228 for(i=2; z[i] && z[i]!='\n'; i++){} in sqliteGetToken()
230 return i; in sqliteGetToken()
260 for(i=3; z[i] && (z[i]!='/' || z[i-1]!='*'); i++){} in sqliteGetToken()
261 if( z[i] ) i++; in sqliteGetToken()
263 return i; in sqliteGetToken()
332 for(i=1; z[i]; i++){ in sqliteGetToken()
333 if( z[i]==delim ){ in sqliteGetToken()
334 if( z[i+1]==delim ){ in sqliteGetToken()
335 i++; in sqliteGetToken()
341 if( z[i] ) i++; in sqliteGetToken()
343 return i; in sqliteGetToken()
352 for(i=1; isdigit(z[i]); i++){} in sqliteGetToken()
353 if( z[i]=='.' && isdigit(z[i+1]) ){ in sqliteGetToken()
354 i += 2; in sqliteGetToken()
355 while( isdigit(z[i]) ){ i++; } in sqliteGetToken()
358 if( (z[i]=='e' || z[i]=='E') && in sqliteGetToken()
359 ( isdigit(z[i+1]) in sqliteGetToken()
360 || ((z[i+1]=='+' || z[i+1]=='-') && isdigit(z[i+2])) in sqliteGetToken()
363 i += 2; in sqliteGetToken()
364 while( isdigit(z[i]) ){ i++; } in sqliteGetToken()
367 return i; in sqliteGetToken()
370 for(i=1; z[i] && z[i-1]!=']'; i++){} in sqliteGetToken()
372 return i; in sqliteGetToken()
382 for(i=1; (z[i]&0x80)!=0 || isIdChar[z[i]]; i++){} in sqliteGetToken()
383 *tokenType = sqliteKeywordCode((char*)z, i); in sqliteGetToken()
384 return i; in sqliteGetToken()
400 int i; in sqliteRunParser() local
411 i = 0; in sqliteRunParser()
419 while( sqlite_malloc_failed==0 && zSql[i]!=0 ){ in sqliteRunParser()
420 assert( i>=0 ); in sqliteRunParser()
421 pParse->sLastToken.z = &zSql[i]; in sqliteRunParser()
423 pParse->sLastToken.n = sqliteGetToken((unsigned char*)&zSql[i], &tokenType); in sqliteRunParser()
424 i += pParse->sLastToken.n; in sqliteRunParser()
442 pParse->zTail = &zSql[i]; in sqliteRunParser()
456 if( zSql[i]==0 && nErr==0 && pParse->rc==SQLITE_OK ){ in sqliteRunParser()
459 pParse->zTail = &zSql[i]; in sqliteRunParser()