Lines Matching refs:pmatch

88 	regmatch_t *pmatch;	/* [nsub+1] (0 element unused) */  member
108 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
194 regmatch_t pmatch[], in matcher() argument
218 start = string + pmatch[0].rm_so; in matcher()
219 stop = string + pmatch[0].rm_eo; in matcher()
274 m->pmatch = NULL; in matcher()
302 if (m->pmatch != NULL) in matcher()
303 free((char *)m->pmatch); in matcher()
327 if (m->pmatch == NULL) in matcher()
328 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
330 if (m->pmatch == NULL) { in matcher()
335 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
344 free(m->pmatch); in matcher()
367 assert(m->pmatch[i].rm_so == -1); in matcher()
368 assert(m->pmatch[i].rm_eo == -1); in matcher()
388 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
389 pmatch[0].rm_eo = endp - m->offp; in matcher()
392 assert(m->pmatch != NULL); in matcher()
395 pmatch[i] = m->pmatch[i]; in matcher()
397 pmatch[i].rm_so = -1; in matcher()
398 pmatch[i].rm_eo = -1; in matcher()
402 if (m->pmatch != NULL) in matcher()
403 free((char *)m->pmatch); in matcher()
584 m->pmatch[i].rm_so = sp - m->offp; in dissect()
589 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
753 if (m->pmatch[i].rm_eo == -1) in backref()
755 assert(m->pmatch[i].rm_so != -1); in backref()
756 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref()
762 ssp = m->offp + m->pmatch[i].rm_so; in backref()
813 offsave = m->pmatch[i].rm_so; in backref()
814 m->pmatch[i].rm_so = sp - m->offp; in backref()
818 m->pmatch[i].rm_so = offsave; in backref()
823 offsave = m->pmatch[i].rm_eo; in backref()
824 m->pmatch[i].rm_eo = sp - m->offp; in backref()
828 m->pmatch[i].rm_eo = offsave; in backref()