Lines Matching refs:pmatch

93 	regmatch_t *pmatch;	/* [nsub+1] (0 element unused) */  member
113 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
203 regmatch_t pmatch[], in matcher() argument
232 _DIAGASSERT(pmatch != NULL); in matcher()
233 start = string + (size_t)pmatch[0].rm_so; in matcher()
234 stop = string + (size_t)pmatch[0].rm_eo; in matcher()
289 m->pmatch = NULL; in matcher()
338 if (m->pmatch == NULL) in matcher()
339 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
341 if (m->pmatch == NULL) { in matcher()
346 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
377 assert(m->pmatch[i].rm_so == (regoff_t)-1); in matcher()
378 assert(m->pmatch[i].rm_eo == (regoff_t)-1); in matcher()
398 _DIAGASSERT(pmatch != NULL); in matcher()
399 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
400 pmatch[0].rm_eo = endp - m->offp; in matcher()
403 assert(m->pmatch != NULL); in matcher()
406 pmatch[i] = m->pmatch[i]; in matcher()
408 pmatch[i].rm_so = (regoff_t)-1; in matcher()
409 pmatch[i].rm_eo = (regoff_t)-1; in matcher()
414 if (m->pmatch != NULL) { in matcher()
415 free(m->pmatch); in matcher()
416 m->pmatch = NULL; in matcher()
607 m->pmatch[i].rm_so = sp - m->offp; in dissect()
612 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
784 if (m->pmatch[i].rm_eo == -1) in backref()
786 assert(m->pmatch[i].rm_so != -1); in backref()
787 len = (size_t)(m->pmatch[i].rm_eo - m->pmatch[i].rm_so); in backref()
793 ssp = m->offp + (size_t)m->pmatch[i].rm_so; in backref()
844 offsave = m->pmatch[i].rm_so; in backref()
845 m->pmatch[i].rm_so = sp - m->offp; in backref()
849 m->pmatch[i].rm_so = offsave; in backref()
854 offsave = m->pmatch[i].rm_eo; in backref()
855 m->pmatch[i].rm_eo = sp - m->offp; in backref()
859 m->pmatch[i].rm_eo = offsave; in backref()