Lines Matching refs:sp
242 register unsigned char *sp; /* start of string matched by it */ local
254 sp = start;
276 sp++;
285 sp++;
296 rest = slow(m, sp, stp, ss, es);
304 assert(stp >= sp); /* it did work */
309 if (slow(m, sp, rest, ssub, esub) != NULL) {
310 dp = dissect(m, sp, rest, ssub, esub);
313 assert(sp == rest);
314 sp = rest;
320 rest = slow(m, sp, stp, ss, es);
328 assert(stp >= sp); /* it did work */
332 ssp = sp;
350 sp = rest;
356 rest = slow(m, sp, stp, ss, es);
364 assert(stp >= sp); /* it did work */
370 if (slow(m, sp, rest, ssub, esub) == rest)
383 dp = dissect(m, sp, rest, ssub, esub);
385 sp = rest;
397 m->pmatch[i].rm_so = sp - m->offp;
402 m->pmatch[i].rm_eo = sp - m->offp;
410 assert(sp == stop);
411 return(sp);
430 register unsigned char *sp; /* start of string matched by it */ local
442 sp = start;
449 if (sp == stop || *sp++ != (unsigned char)OPND(s))
453 if (sp == stop)
455 sp++;
459 if (sp == stop || !CHIN(cs, *sp++))
463 if ( (sp == m->beginp && !(m->eflags®_NOTBOL)) ||
464 (sp < m->endp && *(sp-1) == '\n' &&
471 if ( (sp == m->endp && !(m->eflags®_NOTEOL)) ||
472 (sp < m->endp && *sp == '\n' &&
479 if (( (sp == m->beginp && !(m->eflags®_NOTBOL)) ||
480 (sp < m->endp && *(sp-1) == '\n' &&
482 (sp > m->beginp &&
483 !ISWORD(*(sp-1))) ) &&
484 (sp < m->endp && ISWORD(*sp)) )
490 if (( (sp == m->endp && !(m->eflags®_NOTEOL)) ||
491 (sp < m->endp && *sp == '\n' &&
493 (sp < m->endp && !ISWORD(*sp)) ) &&
494 (sp > m->beginp && ISWORD(*(sp-1))) )
515 if (sp != stop)
517 return(sp);
522 AT("hard", sp, stop, ss, stopst);
533 if (sp > stop - len)
536 if (memcmp(sp, ssp, len) != 0)
540 return(backref(m, sp+len, stop, ss+1, stopst, lev));
543 dp = backref(m, sp, stop, ss+1, stopst, lev);
546 return(backref(m, sp, stop, ss+OPND(s)+1, stopst, lev));
551 m->lastpos[lev+1] = sp;
552 return(backref(m, sp, stop, ss+1, stopst, lev+1));
555 if (sp == m->lastpos[lev]) /* last pass matched null */
556 return(backref(m, sp, stop, ss+1, stopst, lev-1));
558 m->lastpos[lev] = sp;
559 dp = backref(m, sp, stop, ss-OPND(s)+1, stopst, lev);
561 return(backref(m, sp, stop, ss+1, stopst, lev-1));
570 dp = backref(m, sp, stop, ssub, esub, lev);
590 m->pmatch[i].rm_so = sp - m->offp;
591 dp = backref(m, sp, stop, ss+1, stopst, lev);
601 m->pmatch[i].rm_eo = sp - m->offp;
602 dp = backref(m, sp, stop, ss+1, stopst, lev);