Lines Matching defs:pmatch
72 size_t nmatch, regmatch_t pmatch[]);
425 regmatch_t pmatch[])
437 ofs = pmatch[0].rm_so;
438 stringlen = pmatch[0].rm_eo;
456 /* Fill in pmatch if necessary */
458 pmatch[idx].rm_so = ofs + (sub - search);
459 pmatch[idx].rm_eo = pmatch[idx].rm_so + pat->len;
462 ofs = pmatch[idx].rm_so + 1;
470 pmatch[n].rm_so = pmatch[n].rm_eo = -1;
488 regmatch_t pmatch, lastmatch, chkmatch;
538 pmatch.rm_so = st;
539 pmatch.rm_eo = pc->ln.len;
542 r = litexec(&pattern[i], pc->ln.dat, 1, &pmatch);
545 r = regexec(&r_pattern[i], pc->ln.dat, 1, &pmatch,
550 if (xflag && (pmatch.rm_so != 0 ||
551 (size_t)pmatch.rm_eo != pc->ln.len))
556 if (pmatch.rm_so != 0 &&
557 sscanf(&pc->ln.dat[pmatch.rm_so - 1],
560 else if ((size_t)pmatch.rm_eo !=
562 sscanf(&pc->ln.dat[pmatch.rm_eo],
578 (unsigned int)pmatch.rm_so + 1 < retry))
579 retry = pmatch.rm_so + 1;
584 lastmatch = pmatch;
597 if (pmatch.rm_so < chkmatch.rm_so ||
598 (pmatch.rm_so == chkmatch.rm_so &&
599 (pmatch.rm_eo - pmatch.rm_so) >
601 pc->matches[matchidx - 1] = pmatch;
602 nst = pmatch.rm_eo;
606 pc->matches[matchidx++] = pmatch;
607 nst = pmatch.rm_eo;