Lines Matching refs:i
143 int i; /* Next byte to read */ member
165 unsigned i; in re_add_state() local
166 for(i=0; i<pSet->nState; i++) if( pSet->aState[i]==newState ) return; in re_add_state()
177 if( p->i>=p->mx ) return 0; in re_next_char()
178 c = p->z[p->i++]; in re_next_char()
180 if( (c&0xe0)==0xc0 && p->i<p->mx && (p->z[p->i]&0xc0)==0x80 ){ in re_next_char()
181 c = (c&0x1f)<<6 | (p->z[p->i++]&0x3f); in re_next_char()
183 }else if( (c&0xf0)==0xe0 && p->i+1<p->mx && (p->z[p->i]&0xc0)==0x80 in re_next_char()
184 && (p->z[p->i+1]&0xc0)==0x80 ){ in re_next_char()
185 c = (c&0x0f)<<12 | ((p->z[p->i]&0x3f)<<6) | (p->z[p->i+1]&0x3f); in re_next_char()
186 p->i += 2; in re_next_char()
188 }else if( (c&0xf8)==0xf0 && p->i+3<p->mx && (p->z[p->i]&0xc0)==0x80 in re_next_char()
189 && (p->z[p->i+1]&0xc0)==0x80 && (p->z[p->i+2]&0xc0)==0x80 ){ in re_next_char()
190 c = (c&0x07)<<18 | ((p->z[p->i]&0x3f)<<12) | ((p->z[p->i+1]&0x3f)<<6) in re_next_char()
191 | (p->z[p->i+2]&0x3f); in re_next_char()
192 p->i += 3; in re_next_char()
229 unsigned int i = 0; in re_match() local
237 in.i = 0; in re_match()
243 while( in.i+pRe->nInit<=in.mx in re_match()
244 && (zIn[in.i]!=x || in re_match()
245 strncmp((const char*)zIn+in.i, (const char*)pRe->zInit, pRe->nInit)!=0) in re_match()
247 in.i++; in re_match()
249 if( in.i+pRe->nInit>in.mx ) return 0; in re_match()
272 for(i=0; i<pThis->nState; i++){ in re_match()
273 int x = pThis->aState[i]; in re_match()
363 for(i=0; i<pNext->nState; i++){ in re_match()
364 int x = pNext->aState[i]; in re_match()
392 int i; in re_insert() local
394 for(i=p->nState; i>iBefore; i--){ in re_insert()
395 p->aOp[i] = p->aOp[i-1]; in re_insert()
396 p->aArg[i] = p->aArg[i-1]; in re_insert()
444 int i, v = 0; in re_esc_char() local
446 if( p->sIn.i>=p->sIn.mx ) return 0; in re_esc_char()
447 c = p->sIn.z[p->sIn.i]; in re_esc_char()
448 if( c=='u' && p->sIn.i+4<p->sIn.mx ){ in re_esc_char()
449 const unsigned char *zIn = p->sIn.z + p->sIn.i; in re_esc_char()
455 p->sIn.i += 5; in re_esc_char()
459 if( c=='x' && p->sIn.i+2<p->sIn.mx ){ in re_esc_char()
460 const unsigned char *zIn = p->sIn.z + p->sIn.i; in re_esc_char()
464 p->sIn.i += 3; in re_esc_char()
468 for(i=0; zEsc[i] && zEsc[i]!=c; i++){} in re_esc_char()
469 if( zEsc[i] ){ in re_esc_char()
470 if( i<6 ) c = zTrans[i]; in re_esc_char()
471 p->sIn.i++; in re_esc_char()
483 return p->sIn.i<p->sIn.mx ? p->sIn.z[p->sIn.i] : 0; in rePeek()
500 p->sIn.i++; in re_subcompile_re()
522 p->sIn.i--; in re_subcompile_string()
529 p->sIn.i++; in re_subcompile_string()
535 p->sIn.i++; in re_subcompile_string()
569 while( (c=rePeek(p))>='0' && c<='9' ){ m = m*10 + c - '0'; p->sIn.i++; } in re_subcompile_string()
572 p->sIn.i++; in re_subcompile_string()
574 while( (c=rePeek(p))>='0' && c<='9' ){ n = n*10 + c-'0'; p->sIn.i++; } in re_subcompile_string()
578 p->sIn.i++; in re_subcompile_string()
601 p->sIn.i++; in re_subcompile_string()
612 p->sIn.i++; in re_subcompile_string()
619 if( rePeek(p)==']' ){ p->sIn.i++; break; } in re_subcompile_string()
637 p->sIn.i++; in re_subcompile_string()
676 int i, j; in re_compile() local
695 pRe->sIn.i = 0; in re_compile()
702 if( pRe->sIn.i>=pRe->sIn.mx ){ in re_compile()
719 for(j=0, i=1; j<(int)sizeof(pRe->zInit)-2 && pRe->aOp[i]==RE_OP_MATCH; i++){ in re_compile()
720 unsigned x = pRe->aArg[i]; in re_compile()
803 int i; in re_bytecode_func() local
823 for(i=0; i<pRe->nInit; i++){ in re_bytecode_func()
824 sqlite3_str_appendf(pStr, "%02x", pRe->zInit[i]); in re_bytecode_func()
828 for(i=0; (unsigned)i<pRe->nState; i++){ in re_bytecode_func()
830 ReOpName[(unsigned char)pRe->aOp[i]], pRe->aArg[i]); in re_bytecode_func()