Lines Matching refs:pmatch

85 	regmatch_t *pmatch;	/* [nsub+1] (0 element unused) */  member
105 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
191 regmatch_t pmatch[], in matcher() argument
215 start = string + pmatch[0].rm_so; in matcher()
216 stop = string + pmatch[0].rm_eo; in matcher()
271 m->pmatch = NULL; in matcher()
299 if (m->pmatch != NULL) in matcher()
300 free((char *)m->pmatch); in matcher()
324 if (m->pmatch == NULL) in matcher()
325 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
327 if (m->pmatch == NULL) { in matcher()
332 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
341 free(m->pmatch); in matcher()
364 assert(m->pmatch[i].rm_so == -1); in matcher()
365 assert(m->pmatch[i].rm_eo == -1); in matcher()
385 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
386 pmatch[0].rm_eo = endp - m->offp; in matcher()
389 assert(m->pmatch != NULL); in matcher()
392 pmatch[i] = m->pmatch[i]; in matcher()
394 pmatch[i].rm_so = -1; in matcher()
395 pmatch[i].rm_eo = -1; in matcher()
399 if (m->pmatch != NULL) in matcher()
400 free((char *)m->pmatch); in matcher()
581 m->pmatch[i].rm_so = sp - m->offp; in dissect()
586 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
750 if (m->pmatch[i].rm_eo == -1) in backref()
752 assert(m->pmatch[i].rm_so != -1); in backref()
753 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref()
759 ssp = m->offp + m->pmatch[i].rm_so; in backref()
810 offsave = m->pmatch[i].rm_so; in backref()
811 m->pmatch[i].rm_so = sp - m->offp; in backref()
815 m->pmatch[i].rm_so = offsave; in backref()
820 offsave = m->pmatch[i].rm_eo; in backref()
821 m->pmatch[i].rm_eo = sp - m->offp; in backref()
825 m->pmatch[i].rm_eo = offsave; in backref()