Lines Matching refs:stop
110 static const char *walk(struct match *m, const char *start, const char *stop,
196 const char *stop; in matcher() local
211 stop = string + pmatch[0].rm_eo; in matcher()
214 stop = start + strlen(start); in matcher()
217 if (stop < start) in matcher()
228 for (dp = start+g->mlen-1; dp < stop; ) { in matcher()
230 while (dp < stop && charjump[(int)*dp]) in matcher()
233 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()
409 dissect(struct match *m, const char *start, const char *stop, sopno startst, in dissect() argument
426 AT("diss", start, stop, startst, stopst); in dissect()
449 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
458 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
466 stp = stop; in dissect()
472 tail = walk(m, rest, stop, es, stopst, false); in dissect()
473 if (tail == stop) in dissect()
490 stp = stop; in dissect()
496 tail = walk(m, rest, stop, es, stopst, false); in dissect()
497 if (tail == stop) in dissect()
526 stp = stop; in dissect()
532 tail = walk(m, rest, stop, es, stopst, false); in dissect()
533 if (tail == stop) in dissect()
584 assert(sp == stop); in dissect()
592 backref(struct match *m, const char *start, const char *stop, sopno startst, in backref() argument
610 AT("back", start, stop, startst, stopst); in backref()
618 if (sp == stop) in backref()
620 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
625 if (sp == stop) in backref()
627 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
632 if (sp == stop) in backref()
635 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
685 if (sp != stop) in backref()
692 AT("hard", sp, stop, ss, stopst); in backref()
704 assert(stop - m->beginp >= len); in backref()
705 if (sp > stop - len) in backref()
712 return (backref(m, sp+len, stop, ss+1, stopst, lev, rec)); in backref()
714 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
717 return (backref(m, sp, stop, ss+OPND(s)+1, stopst, lev, rec)); in backref()
722 return (backref(m, sp, stop, ss+1, stopst, lev+1, rec)); in backref()
725 return (backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
728 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec); in backref()
730 return (backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
737 dp = backref(m, sp, stop, ssub, esub, lev, rec); in backref()
759 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
769 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
789 walk(struct match *m, const char *start, const char *stop, sopno startst, in walk() argument
804 AT("slow", start, stop, startst, stopst); in walk()
875 if (EQ(st, empty) || p == stop || clen > (size_t)(stop - p)) in walk()
895 return (p + XMBRTOWC(NULL, p, stop - p, &m->mbs, 0)); in walk()
908 sopno stop, /* state after stop state within strip */ in step() argument
920 for (pc = start, INIT(here, pc); pc != stop; pc++, INC(here)) { in step()
924 assert(pc == stop-1); in step()
1047 at(struct match *m, const char *title, const char *start, const char *stop, in at() argument
1054 (void) printf("%s ", pchar(*stop)); in at()