Lines Matching refs:pmatch

72 	regmatch_t *pmatch;	/* [nsub+1] (0 element unused) */  member
91 static int matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], in…
133 regmatch_t pmatch[], int eflags) in matcher() argument
149 start = string + pmatch[0].rm_so; in matcher()
150 stop = string + pmatch[0].rm_eo; in matcher()
171 m->pmatch = NULL; in matcher()
207 if (m->pmatch == NULL) in matcher()
208 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
210 if (m->pmatch == NULL) { in matcher()
215 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
224 free(m->pmatch); in matcher()
247 assert(m->pmatch[i].rm_so == -1); in matcher()
248 assert(m->pmatch[i].rm_eo == -1); in matcher()
266 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
267 pmatch[0].rm_eo = endp - m->offp; in matcher()
270 assert(m->pmatch != NULL); in matcher()
273 pmatch[i] = m->pmatch[i]; in matcher()
275 pmatch[i].rm_so = -1; in matcher()
276 pmatch[i].rm_eo = -1; in matcher()
280 if (m->pmatch != NULL) in matcher()
281 free((char *)m->pmatch); in matcher()
453 m->pmatch[i].rm_so = sp - m->offp; in dissect()
458 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
585 if (m->pmatch[i].rm_eo == -1) in backref()
587 assert(m->pmatch[i].rm_so != -1); in backref()
588 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref()
592 ssp = m->offp + m->pmatch[i].rm_so; in backref()
646 offsave = m->pmatch[i].rm_so; in backref()
647 m->pmatch[i].rm_so = sp - m->offp; in backref()
651 m->pmatch[i].rm_so = offsave; in backref()
657 offsave = m->pmatch[i].rm_eo; in backref()
658 m->pmatch[i].rm_eo = sp - m->offp; in backref()
662 m->pmatch[i].rm_eo = offsave; in backref()