Lines Matching full:rest
344 const char *rest; /* start of rest of string */
345 const char *tail; /* string unmatched by rest of RE */
395 rest = slow(m, sp, stp, ss, es);
396 assert(rest != NULL); /* it did match */
397 /* could the rest match the rest? */
398 tail = slow(m, rest, stop, es, stopst);
402 stp = step_back(m->g, sp, rest, es, stopst);
408 if (slow(m, sp, rest, ssub, esub) != NULL) {
409 const char *dp = dissect(m, sp, rest, ssub, esub);
411 assert(dp == rest);
413 assert(sp == rest);
414 sp = rest;
420 rest = slow(m, sp, stp, ss, es);
421 assert(rest != NULL); /* it did match */
422 /* could the rest match the rest? */
423 tail = slow(m, rest, stop, es, stopst);
427 stp = step_back(m->g, sp, rest, es, stopst);
435 sep = slow(m, ssp, rest, ssub, esub);
446 assert(sep == rest); /* must exhaust substring */
447 assert(slow(m, ssp, sep, ssub, esub) == rest);
453 sp = rest;
459 rest = slow(m, sp, stp, ss, es);
460 assert(rest != NULL); /* it did match */
461 /* could the rest match the rest? */
462 tail = slow(m, rest, stop, es, stopst);
466 stp = rest - 1;
473 if (slow(m, sp, rest, ssub, esub) == rest)
487 const char *dp = dissect(m, sp, rest, ssub, esub);
489 assert(dp == rest);
491 sp = rest;
688 case OLPAREN: /* must undo assignment if rest fails */
699 case ORPAREN: /* must undo assignment if rest fails */