Lines Matching refs:rest
337 const char *rest; /* start of rest of string */
338 const char *tail; /* string unmatched by rest of RE */
388 rest = slow(m, sp, stp, ss, es);
389 assert(rest != NULL); /* it did match */
390 /* could the rest match the rest? */
391 tail = slow(m, rest, stop, es, stopst);
395 stp = step_back(m->g, sp, rest, es, stopst);
401 if (slow(m, sp, rest, ssub, esub) != NULL) {
402 const char *dp = dissect(m, sp, rest, ssub, esub);
404 assert(dp == rest);
406 assert(sp == rest);
407 sp = rest;
413 rest = slow(m, sp, stp, ss, es);
414 assert(rest != NULL); /* it did match */
415 /* could the rest match the rest? */
416 tail = slow(m, rest, stop, es, stopst);
420 stp = step_back(m->g, sp, rest, es, stopst);
428 sep = slow(m, ssp, rest, ssub, esub);
439 assert(sep == rest); /* must exhaust substring */
440 assert(slow(m, ssp, sep, ssub, esub) == rest);
446 sp = rest;
452 rest = slow(m, sp, stp, ss, es);
453 assert(rest != NULL); /* it did match */
454 /* could the rest match the rest? */
455 tail = slow(m, rest, stop, es, stopst);
459 stp = rest - 1;
466 if (slow(m, sp, rest, ssub, esub) == rest)
480 const char *dp = dissect(m, sp, rest, ssub, esub);
482 assert(dp == rest);
484 sp = rest;
680 case OLPAREN: /* must undo assignment if rest fails */
691 case ORPAREN: /* must undo assignment if rest fails */