Lines Matching refs:stop
106 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop…
107 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop…
108 static const char *walk(struct match *m, const char *start, const char *stop, sopno startst, sopno …
109 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft, i…
128 static void at(struct match *m, const char *title, const char *start, const char *stop, sopno start…
202 const char *stop; in matcher() local
216 stop = string + pmatch[0].rm_eo; in matcher()
219 stop = start + strlen(start); in matcher()
221 if (stop < start) in matcher()
232 for (dp = start+g->mlen-1; dp < stop;) { in matcher()
234 while (dp < stop && charjump[(int)*dp]) in matcher()
237 if (dp >= stop) in matcher()
258 for (dp = start; dp < stop; dp++) in matcher()
260 stop - dp >= g->mlen && in matcher()
263 if (dp == stop) /* we didn't find g->must */ in matcher()
275 m->endp = stop; in matcher()
297 endp = walk(m, start, stop, gf, gl, true); in matcher()
313 endp = walk(m, m->coldp, stop, gf, gl, false); in matcher()
379 stop - m->coldp, &m->mbs, 0); in matcher()
380 assert(start <= stop); in matcher()
415 const char *stop, in dissect() argument
433 AT("diss", start, stop, startst, stopst); in dissect()
456 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
469 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
477 stp = stop; in dissect()
483 tail = walk(m, rest, stop, es, stopst, false); in dissect()
484 if (tail == stop) in dissect()
501 stp = stop; in dissect()
507 tail = walk(m, rest, stop, es, stopst, false); in dissect()
508 if (tail == stop) in dissect()
537 stp = stop; in dissect()
543 tail = walk(m, rest, stop, es, stopst, false); in dissect()
544 if (tail == stop) in dissect()
594 assert(sp == stop); in dissect()
617 const char *stop, in backref() argument
637 AT("back", start, stop, startst, stopst); in backref()
645 if (sp == stop) in backref()
647 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
652 if (sp == stop) in backref()
654 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
659 if (sp == stop) in backref()
662 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
737 if (sp != stop) in backref()
744 AT("hard", sp, stop, ss, stopst); in backref()
756 assert(stop - m->beginp >= len); in backref()
757 if (sp > stop - len) in backref()
764 return(backref(m, sp+len, stop, ss+1, stopst, lev, rec)); in backref()
766 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
769 return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev, rec)); in backref()
774 return(backref(m, sp, stop, ss+1, stopst, lev+1, rec)); in backref()
777 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
780 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec); in backref()
782 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
790 dp = backref(m, sp, stop, ssub, esub, lev, rec); in backref()
812 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
822 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
844 walk(struct match *m, const char *start, const char *stop, sopno startst, in walk() argument
860 AT("slow", start, stop, startst, stopst); in walk()
953 if (EQ(st, empty) || p == stop || clen > (size_t)(stop - p)) in walk()
974 return (p + XMBRTOWC(NULL, p, stop - p, &m->mbs, 0)); in walk()
997 sopno stop, /* state after stop state within strip */ in step() argument
1010 for (pc = start, INIT(here, pc); pc != stop; pc++, INC(here)) { in step()
1014 assert(pc == stop-1); in step()
1168 const char *stop, in at() argument
1176 printf("%s ", pchar(*stop)); in at()