Lines Matching full:stop
104 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop…
105 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop…
106 static const char *walk(struct match *m, const char *start, const char *stop, sopno startst, sopno …
107 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft, i…
126 static void at(struct match *m, const char *title, const char *start, const char *stop, sopno start…
200 const char *stop; in matcher() local
214 stop = string + pmatch[0].rm_eo; in matcher()
217 stop = start + strlen(start); in matcher()
219 if (stop < start) in matcher()
230 for (dp = start+g->mlen-1; dp < stop;) { in matcher()
232 while (dp < stop && charjump[(int)*dp]) in matcher()
235 if (dp >= stop) in matcher()
256 for (dp = start; dp < stop; dp++) in matcher()
258 stop - dp >= g->mlen && in matcher()
261 if (dp == stop) /* we didn't find g->must */ in matcher()
273 m->endp = stop; in matcher()
295 endp = walk(m, start, stop, gf, gl, true); in matcher()
311 endp = walk(m, m->coldp, stop, gf, gl, false); in matcher()
377 stop - m->coldp, &m->mbs, 0); in matcher()
378 assert(start <= stop); in matcher()
408 == const char *stop, sopno startst, sopno stopst);
410 static const char * /* == stop (success) always */
413 const char *stop, in dissect() argument
431 AT("diss", start, stop, startst, stopst); in dissect()
454 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
467 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
475 stp = stop; in dissect()
481 tail = walk(m, rest, stop, es, stopst, false); in dissect()
482 if (tail == stop) in dissect()
499 stp = stop; in dissect()
505 tail = walk(m, rest, stop, es, stopst, false); in dissect()
506 if (tail == stop) in dissect()
535 stp = stop; in dissect()
541 tail = walk(m, rest, stop, es, stopst, false); in dissect()
542 if (tail == stop) in dissect()
592 assert(sp == stop); in dissect()
610 == const char *stop, sopno startst, sopno stopst, sopno lev);
612 static const char * /* == stop (success) or NULL (failure) */
615 const char *stop, in backref() argument
635 AT("back", start, stop, startst, stopst); in backref()
643 if (sp == stop) in backref()
645 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
650 if (sp == stop) in backref()
652 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
657 if (sp == stop) in backref()
660 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
735 if (sp != stop) in backref()
742 AT("hard", sp, stop, ss, stopst); in backref()
754 assert(stop - m->beginp >= len); in backref()
755 if (sp > stop - len) in backref()
762 return(backref(m, sp+len, stop, ss+1, stopst, lev, rec)); in backref()
764 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
767 return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev, rec)); in backref()
772 return(backref(m, sp, stop, ss+1, stopst, lev+1, rec)); in backref()
775 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
778 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec); in backref()
780 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
788 dp = backref(m, sp, stop, ssub, esub, lev, rec); in backref()
810 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
820 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
839 == const char *stop, sopno startst, sopno stopst, bool fast);
842 walk(struct match *m, const char *start, const char *stop, sopno startst, in walk() argument
858 AT("slow", start, stop, startst, stopst); in walk()
951 if (EQ(st, empty) || p == stop || clen > (size_t)(stop - p)) in walk()
972 return (p + XMBRTOWC(NULL, p, stop - p, &m->mbs, 0)); in walk()
981 == static states step(struct re_guts *g, sopno start, sopno stop, \
995 sopno stop, /* state after stop state within strip */ in step() argument
1008 for (pc = start, INIT(here, pc); pc != stop; pc++, INC(here)) { in step()
1012 assert(pc == stop-1); in step()
1159 == const char *stop, sopno startst, sopno stopst);
1166 const char *stop, in at() argument
1174 printf("%s ", pchar(*stop)); in at()