Lines Matching refs:stop
114 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop…
115 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop…
116 static const char *walk(struct match *m, const char *start, const char *stop, sopno startst, sopno …
117 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft, i…
136 static void at(struct match *m, const char *title, const char *start, const char *stop, sopno start…
214 const char *stop; in matcher() local
234 stop = string + (size_t)pmatch[0].rm_eo; in matcher()
237 stop = start + strlen(start); in matcher()
239 if (stop < start) in matcher()
250 for (dp = start+g->mlen-1; dp < stop;) { in matcher()
252 while (dp < stop && charjump[(int)*dp]) in matcher()
255 if (dp >= stop) in matcher()
276 for (dp = start; dp < stop; dp++) in matcher()
278 (size_t)(stop - dp) >= g->mlen && in matcher()
281 if (dp == stop) /* we didn't find g->must */ in matcher()
293 m->endp = stop; in matcher()
315 endp = walk(m, start, stop, gf, gl, true); in matcher()
327 endp = walk(m, m->coldp, stop, gf, gl, false); in matcher()
392 (size_t)(stop - m->coldp), &m->mbs, 0); in matcher()
393 assert(start <= stop); in matcher()
435 const char *stop, in dissect() argument
455 _DIAGASSERT(stop != NULL); in dissect()
457 AT("diss", start, stop, startst, stopst); in dissect()
480 sp += XMBRTOWC(NULL, sp, (size_t)(stop - start), in dissect()
494 sp += XMBRTOWC(NULL, sp, (size_t)(stop - start), in dissect()
503 stp = stop; in dissect()
509 tail = walk(m, rest, stop, es, stopst, false); in dissect()
510 if (tail == stop) in dissect()
527 stp = stop; in dissect()
533 tail = walk(m, rest, stop, es, stopst, false); in dissect()
534 if (tail == stop) in dissect()
563 stp = stop; in dissect()
569 tail = walk(m, rest, stop, es, stopst, false); in dissect()
570 if (tail == stop) in dissect()
620 assert(sp == stop); in dissect()
644 const char *stop, in backref() argument
666 _DIAGASSERT(stop != NULL); in backref()
668 AT("back", start, stop, startst, stopst); in backref()
676 if (sp == stop) in backref()
678 sp += XMBRTOWC(&wc, sp, (size_t)(stop - sp), in backref()
684 if (sp == stop) in backref()
686 sp += XMBRTOWC(&wc, sp, (size_t)(stop - sp), in backref()
692 if (sp == stop) in backref()
695 sp += XMBRTOWC(&wc, sp, (size_t)(stop - sp), in backref()
771 if (sp != stop) in backref()
778 AT("hard", sp, stop, ss, stopst); in backref()
790 assert(stop - m->beginp >= len); in backref()
791 if (sp > stop - len) in backref()
798 return(backref(m, sp+len, stop, ss+1, stopst, lev, rec)); in backref()
800 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
803 return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev, rec)); in backref()
808 return(backref(m, sp, stop, ss+1, stopst, lev+1, rec)); in backref()
811 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
814 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec); in backref()
816 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
824 dp = backref(m, sp, stop, ssub, esub, lev, rec); in backref()
846 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
856 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
878 walk(struct match *m, const char *start, const char *stop, sopno startst, in walk() argument
895 _DIAGASSERT(stop != NULL); in walk()
898 AT("walk", start, stop, startst, stopst); in walk()
992 if (EQ(st, empty) || p == stop || clen > (size_t)(stop - p)) in walk()
1013 return (p + XMBRTOWC(NULL, p, (size_t)(stop - p), in walk()
1037 sopno stop, /* state after stop state within strip */ in step() argument
1052 for (pc = start, INIT(here, pc); pc != stop; pc++, INC(here)) { in step()
1056 assert(pc == stop-1); in step()
1215 const char *stop, in at() argument
1223 _DIAGASSERT(stop != NULL); in at()
1229 printf("%s ", pchar(*stop)); in at()