Lines Matching refs:stop
109 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop…
110 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop…
111 static const char *walk(struct match *m, const char *start, const char *stop, sopno startst, sopno …
112 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft);
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()
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()
463 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
471 stp = stop; in dissect()
477 tail = walk(m, rest, stop, es, stopst, false); in dissect()
478 if (tail == stop) in dissect()
495 stp = stop; in dissect()
501 tail = walk(m, rest, stop, es, stopst, false); in dissect()
502 if (tail == stop) in dissect()
531 stp = stop; in dissect()
537 tail = walk(m, rest, stop, es, stopst, false); in dissect()
538 if (tail == stop) in dissect()
588 assert(sp == stop); in dissect()
600 const char *stop, in backref() argument
620 AT("back", start, stop, startst, stopst); in backref()
628 if (sp == stop) in backref()
630 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
635 if (sp == stop) in backref()
637 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
642 if (sp == stop) in backref()
645 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
699 if (sp != stop) in backref()
706 AT("hard", sp, stop, ss, stopst); in backref()
718 assert(stop - m->beginp >= len); in backref()
719 if (sp > stop - len) in backref()
726 return(backref(m, sp+len, stop, ss+1, stopst, lev, rec)); in backref()
728 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
731 return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev, rec)); in backref()
736 return(backref(m, sp, stop, ss+1, stopst, lev+1, rec)); in backref()
739 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
742 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec); in backref()
744 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
752 dp = backref(m, sp, stop, ssub, esub, lev, rec); in backref()
774 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
784 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
806 walk(struct match *m, const char *start, const char *stop, sopno startst, in walk() argument
821 AT("slow", start, stop, startst, stopst); in walk()
891 if (EQ(st, empty) || p == stop || clen > (size_t)(stop - p)) in walk()
911 return (p + XMBRTOWC(NULL, p, stop - p, &m->mbs, 0)); in walk()
934 sopno stop, /* state after stop state within strip */ in step() argument
946 for (pc = start, INIT(here, pc); pc != stop; pc++, INC(here)) { in step()
950 assert(pc == stop-1); in step()
1088 const char *stop, in at() argument
1096 printf("%s ", pchar(*stop)); in at()