Lines Matching refs:rest
444 const char *rest; /* start of rest of string */
445 const char *tail; /* string unmatched by rest of RE */
506 rest = walk(m, sp, stp, ss, es, false);
507 assert(rest != NULL); /* it did match */
508 /* could the rest match the rest? */
509 tail = walk(m, rest, stop, es, stopst, false);
513 stp = rest - 1;
519 if (walk(m, sp, rest, ssub, esub, false) != NULL) {
520 dp = dissect(m, sp, rest, ssub, esub);
521 assert(dp == rest);
523 assert(sp == rest);
524 sp = rest;
530 rest = walk(m, sp, stp, ss, es, false);
531 assert(rest != NULL); /* it did match */
532 /* could the rest match the rest? */
533 tail = walk(m, rest, stop, es, stopst, false);
537 stp = rest - 1;
545 sep = walk(m, ssp, rest, ssub, esub, false);
556 assert(sep == rest); /* must exhaust substring */
557 assert(walk(m, ssp, sep, ssub, esub, false) == rest);
560 sp = rest;
566 rest = walk(m, sp, stp, ss, es, false);
567 assert(rest != NULL); /* it did match */
568 /* could the rest match the rest? */
569 tail = walk(m, rest, stop, es, stopst, false);
573 stp = rest - 1;
580 if (walk(m, sp, rest, ssub, esub, false) == rest)
593 dp = dissect(m, sp, rest, ssub, esub);
594 assert(dp == rest);
595 sp = rest;
841 case OLPAREN: /* must undo assignment if rest fails */
851 case ORPAREN: /* must undo assignment if rest fails */