Lines Matching refs:sp
296 char *sp; /* start of string matched by it */ in dissect() local
307 sp = start; in dissect()
329 sp++; in dissect()
338 sp++; in dissect()
349 rest = slow(m, sp, stp, ss, es); in dissect()
357 assert(stp >= sp); /* it did work */ in dissect()
362 if (slow(m, sp, rest, ssub, esub) != NULL) { in dissect()
363 if (dissect(m, sp, rest, ssub, esub) != rest) { in dissect()
367 assert(sp == rest); in dissect()
368 sp = rest; in dissect()
374 rest = slow(m, sp, stp, ss, es); in dissect()
382 assert(stp >= sp); /* it did work */ in dissect()
386 ssp = sp; in dissect()
405 sp = rest; in dissect()
411 rest = slow(m, sp, stp, ss, es); in dissect()
419 assert(stp >= sp); /* it did work */ in dissect()
425 if (slow(m, sp, rest, ssub, esub) == rest) in dissect()
438 if (dissect(m, sp, rest, ssub, esub) != rest) { in dissect()
441 sp = rest; in dissect()
453 m->pmatch[i].rm_so = sp - m->offp; in dissect()
458 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
466 assert(sp == stop); in dissect()
467 return(sp); in dissect()
479 char *sp; /* start of string matched by it */ in backref() local
491 sp = start; in backref()
498 if (sp == stop || *sp++ != (char)OPND(s)) in backref()
502 if (sp == stop) in backref()
504 sp++; in backref()
508 if (sp == stop || !CHIN(cs, *sp++)) in backref()
512 if ( (sp == m->beginp && !(m->eflags®_NOTBOL)) || in backref()
513 (sp < m->endp && *(sp-1) == '\n' && in backref()
520 if ( (sp == m->endp && !(m->eflags®_NOTEOL)) || in backref()
521 (sp < m->endp && *sp == '\n' && in backref()
528 if (( (sp == m->beginp && !(m->eflags®_NOTBOL)) || in backref()
529 (sp < m->endp && *(sp-1) == '\n' && in backref()
531 (sp > m->beginp && in backref()
532 !ISWORD(*(sp-1))) ) && in backref()
533 (sp < m->endp && ISWORD(*sp)) ) in backref()
539 if (( (sp == m->endp && !(m->eflags®_NOTEOL)) || in backref()
540 (sp < m->endp && *sp == '\n' && in backref()
542 (sp < m->endp && !ISWORD(*sp)) ) && in backref()
543 (sp > m->beginp && ISWORD(*(sp-1))) ) in backref()
564 if (sp != stop) in backref()
566 return(sp); in backref()
571 AT("hard", sp, stop, ss, stopst); in backref()
584 if (sp > stop - len) in backref()
587 if (memcmp(sp, ssp, len) != 0) in backref()
591 return(backref(m, sp+len, stop, ss+1, stopst, lev, rec)); in backref()
594 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
597 return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev, rec)); in backref()
602 m->lastpos[lev+1] = sp; in backref()
603 return(backref(m, sp, stop, ss+1, stopst, lev+1, rec)); in backref()
606 if (sp == m->lastpos[lev]) /* last pass matched null */ in backref()
607 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
609 m->lastpos[lev] = sp; in backref()
610 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev, rec); in backref()
612 return(backref(m, sp, stop, ss+1, stopst, lev-1, rec)); in backref()
621 dp = backref(m, sp, stop, ssub, esub, lev, rec); in backref()
641 m->pmatch[i].rm_so = sp - m->offp; in backref()
642 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()
652 m->pmatch[i].rm_eo = sp - m->offp; in backref()
653 dp = backref(m, sp, stop, ss+1, stopst, lev, rec); in backref()