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, i…
131 static void at(struct match *m, const char *title, const char *start, const char *stop, sopno start…
205 const char *stop; in matcher() local
219 stop = string + pmatch[0].rm_eo; in matcher()
222 stop = start + strlen(start); in matcher()
224 if (stop < start) in matcher()
235 for (dp = start+g->mlen-1; dp < stop;) { in matcher()
237 while (dp < stop && charjump[(int)*dp]) in matcher()
240 if (dp >= stop) in matcher()
261 for (dp = start; dp < stop; dp++) in matcher()
263 stop - dp >= g->mlen && in matcher()
266 if (dp == stop) /* we didn't find g->must */ in matcher()
278 m->endp = stop; in matcher()
300 endp = walk(m, start, stop, gf, gl, true); in matcher()
316 endp = walk(m, m->coldp, stop, gf, gl, false); in matcher()
382 stop - m->coldp, &m->mbs, 0); in matcher()
383 assert(start <= stop); in matcher()
418 const char *stop, in dissect() argument
436 AT("diss", start, stop, startst, stopst); in dissect()
459 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
472 sp += XMBRTOWC(NULL, sp, stop - start, &m->mbs, 0); in dissect()
480 stp = stop; in dissect()
486 tail = walk(m, rest, stop, es, stopst, false); in dissect()
487 if (tail == stop) in dissect()
504 stp = stop; in dissect()
510 tail = walk(m, rest, stop, es, stopst, false); in dissect()
511 if (tail == stop) in dissect()
540 stp = stop; in dissect()
546 tail = walk(m, rest, stop, es, stopst, false); in dissect()
547 if (tail == stop) in dissect()
597 assert(sp == stop); in dissect()
620 const char *stop, in backref() argument
640 AT("back", start, stop, startst, stopst); in backref()
648 if (sp == stop) in backref()
650 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
655 if (sp == stop) in backref()
657 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
662 if (sp == stop) in backref()
665 sp += XMBRTOWC(&wc, sp, stop - sp, &m->mbs, BADCHAR); in backref()
740 if (sp != stop) in backref()
747 AT("hard", sp, stop, ss, stopst); in backref()
759 assert(stop - m->beginp >= len); in backref()
760 if (sp > stop - len) in backref()
767 return(backref(m, sp+len, stop, ss+1, stopst, lev, rec)); in backref()
769 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
772 return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev, rec)); in backref()
777 return(backref(m, sp, stop, ss+1, stopst, lev+1, rec)); in backref()
780 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
783 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec); in backref()
785 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
793 dp = backref(m, sp, stop, ssub, esub, lev, rec); in backref()
815 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
825 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
847 walk(struct match *m, const char *start, const char *stop, sopno startst, in walk() argument
863 AT("slow", start, stop, startst, stopst); in walk()
956 if (EQ(st, empty) || p == stop || clen > (size_t)(stop - p)) in walk()
977 return (p + XMBRTOWC(NULL, p, stop - p, &m->mbs, 0)); in walk()
1000 sopno stop, /* state after stop state within strip */ in step() argument
1013 for (pc = start, INIT(here, pc); pc != stop; pc++, INC(here)) { in step()
1017 assert(pc == stop-1); in step()
1171 const char *stop, in at() argument
1179 printf("%s ", pchar(*stop)); in at()