Lines Matching refs:rest
303 const char *rest; /* start of rest of string */
304 const char *tail; /* string unmatched by rest of RE */
354 rest = slow(m, sp, stp, ss, es);
355 assert(rest != NULL); /* it did match */
356 /* could the rest match the rest? */
357 tail = slow(m, rest, stop, es, stopst);
361 stp = rest - 1;
367 if (slow(m, sp, rest, ssub, esub) != NULL) {
368 const char *dp = dissect(m, sp, rest, ssub, esub);
370 assert(dp == rest);
372 assert(sp == rest);
373 sp = rest;
379 rest = slow(m, sp, stp, ss, es);
380 assert(rest != NULL); /* it did match */
381 /* could the rest match the rest? */
382 tail = slow(m, rest, stop, es, stopst);
386 stp = rest - 1;
394 sep = slow(m, ssp, rest, ssub, esub);
405 assert(sep == rest); /* must exhaust substring */
406 assert(slow(m, ssp, sep, ssub, esub) == rest);
412 sp = rest;
418 rest = slow(m, sp, stp, ss, es);
419 assert(rest != NULL); /* it did match */
420 /* could the rest match the rest? */
421 tail = slow(m, rest, stop, es, stopst);
425 stp = rest - 1;
432 if (slow(m, sp, rest, ssub, esub) == rest)
446 const char *dp = dissect(m, sp, rest, ssub, esub);
448 assert(dp == rest);
450 sp = rest;
646 case OLPAREN: /* must undo assignment if rest fails */
657 case ORPAREN: /* must undo assignment if rest fails */