Lines Matching refs:pmatch
110 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member
129 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
180 regmatch_t pmatch[], in matcher() argument
202 _DIAGASSERT(pmatch != NULL); in matcher()
203 start = string + (size_t)pmatch[0].rm_so; in matcher()
204 stop = string + (size_t)pmatch[0].rm_eo; in matcher()
225 m->pmatch = NULL; in matcher()
261 if (m->pmatch == NULL) in matcher()
262 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
264 if (m->pmatch == NULL) { in matcher()
269 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = (regoff_t)-1; in matcher()
300 assert(m->pmatch[i].rm_so == (regoff_t)-1); in matcher()
301 assert(m->pmatch[i].rm_eo == (regoff_t)-1); in matcher()
319 _DIAGASSERT(pmatch != NULL); in matcher()
320 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
321 pmatch[0].rm_eo = endp - m->offp; in matcher()
324 assert(m->pmatch != NULL); in matcher()
327 pmatch[i] = m->pmatch[i]; in matcher()
329 pmatch[i].rm_so = (regoff_t)-1; in matcher()
330 pmatch[i].rm_eo = (regoff_t)-1; in matcher()
335 if (m->pmatch != NULL) { in matcher()
336 free(m->pmatch); in matcher()
337 m->pmatch = NULL; in matcher()
539 m->pmatch[i].rm_so = sp - m->offp; in dissect()
544 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
674 if (m->pmatch[i].rm_eo == (regoff_t)-1) in backref()
676 assert(m->pmatch[i].rm_so != (regoff_t)-1); in backref()
677 len = (size_t)(m->pmatch[i].rm_eo - m->pmatch[i].rm_so); in backref()
683 ssp = m->offp + (size_t)m->pmatch[i].rm_so; in backref()
736 offsave = m->pmatch[i].rm_so; in backref()
737 m->pmatch[i].rm_so = sp - m->offp; in backref()
741 m->pmatch[i].rm_so = offsave; in backref()
747 offsave = m->pmatch[i].rm_eo; in backref()
748 m->pmatch[i].rm_eo = sp - m->offp; in backref()
752 m->pmatch[i].rm_eo = offsave; in backref()