Lines Matching refs:pmatch
75 size_t nmatch, regmatch_t pmatch[]);
419 regmatch_t pmatch[])
431 ofs = pmatch[0].rm_so;
432 stringlen = pmatch[0].rm_eo;
450 /* Fill in pmatch if necessary */
452 pmatch[idx].rm_so = ofs + (sub - search);
453 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len;
456 ofs = pmatch[idx].rm_so + 1;
464 pmatch[n].rm_so = pmatch[n].rm_eo = -1;
482 regmatch_t pmatch, lastmatch, chkmatch;
532 pmatch.rm_so = st;
533 pmatch.rm_eo = pc->ln.len;
536 r = litexec(&pattern[i], pc->ln.dat, 1, &pmatch);
539 r = regexec(&r_pattern[i], pc->ln.dat, 1, &pmatch,
544 if (xflag && (pmatch.rm_so != 0 ||
545 (size_t)pmatch.rm_eo != pc->ln.len))
550 if (pmatch.rm_so != 0 &&
551 sscanf(&pc->ln.dat[pmatch.rm_so - 1],
554 else if ((size_t)pmatch.rm_eo !=
556 sscanf(&pc->ln.dat[pmatch.rm_eo],
572 (unsigned int)pmatch.rm_so + 1 < retry))
573 retry = pmatch.rm_so + 1;
578 lastmatch = pmatch;
591 if (pmatch.rm_so < chkmatch.rm_so ||
592 (pmatch.rm_so == chkmatch.rm_so &&
593 (pmatch.rm_eo - pmatch.rm_so) >
595 pc->matches[matchidx - 1] = pmatch;
596 nst = pmatch.rm_eo;
600 pc->matches[matchidx++] = pmatch;
601 nst = pmatch.rm_eo;