Lines Matching refs:pmatch
78 size_t nmatch, regmatch_t pmatch[]);
401 regmatch_t pmatch[])
413 ofs = pmatch[0].rm_so;
414 stringlen = pmatch[0].rm_eo;
432 /* Fill in pmatch if necessary */
434 pmatch[idx].rm_so = ofs + (sub - search);
435 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len;
438 ofs = pmatch[idx].rm_so + 1;
446 pmatch[n].rm_so = pmatch[n].rm_eo = -1;
464 regmatch_t pmatch, lastmatch, chkmatch;
517 pmatch.rm_so = st;
518 pmatch.rm_eo = pc->ln.len;
521 r = litexec(&pattern[i], pc->ln.dat, 1, &pmatch);
527 pc->ln.dat, 1, &pmatch, leflags);
531 &pmatch, leflags);
535 if (xflag && (pmatch.rm_so != 0 ||
536 (size_t)pmatch.rm_eo != pc->ln.len))
545 if (pmatch.rm_so != 0 &&
546 sscanf(&pc->ln.dat[pmatch.rm_so - 1],
549 else if ((size_t)pmatch.rm_eo !=
551 sscanf(&pc->ln.dat[pmatch.rm_eo],
567 (unsigned int)pmatch.rm_so + 1 < retry))
568 retry = pmatch.rm_so + 1;
573 lastmatch = pmatch;
586 if (pmatch.rm_so < chkmatch.rm_so ||
587 (pmatch.rm_so == chkmatch.rm_so &&
588 (pmatch.rm_eo - pmatch.rm_so) >
590 pc->matches[matchidx - 1] = pmatch;
591 nst = pmatch.rm_eo;
595 pc->matches[matchidx++] = pmatch;
596 nst = pmatch.rm_eo;