Home | History | Annotate | Download | only in regex

Lines Matching defs:rest

298 	char *rest;	/* start of rest of string */
299 char *tail; /* string unmatched by rest of RE */
349 rest = slow(m, sp, stp, ss, es);
350 assert(rest != NULL); /* it did match */
351 /* could the rest match the rest? */
352 tail = slow(m, rest, stop, es, stopst);
356 stp = rest - 1;
362 if (slow(m, sp, rest, ssub, esub) != NULL) {
363 if (dissect(m, sp, rest, ssub, esub) != rest) {
364 assert(0 && "dissect(...) should return rest");
367 assert(sp == rest);
368 sp = rest;
374 rest = slow(m, sp, stp, ss, es);
375 assert(rest != NULL); /* it did match */
376 /* could the rest match the rest? */
377 tail = slow(m, rest, stop, es, stopst);
381 stp = rest - 1;
389 sep = slow(m, ssp, rest, ssub, esub);
400 assert(sep == rest); /* must exhaust substring */
401 assert(slow(m, ssp, sep, ssub, esub) == rest);
405 sp = rest;
411 rest = slow(m, sp, stp, ss, es);
412 assert(rest != NULL); /* it did match */
413 /* could the rest match the rest? */
414 tail = slow(m, rest, stop, es, stopst);
418 stp = rest - 1;
425 if (slow(m, sp, rest, ssub, esub) == rest)
438 if (dissect(m, sp, rest, ssub, esub) != rest) {
439 assert(0 && "dissect(...) should return rest");
441 sp = rest;
637 case OLPAREN: /* must undo assignment if rest fails */
648 case ORPAREN: /* must undo assignment if rest fails */