Lines Matching refs:pmatch
83 regmatch_t *pmatch; /* [nsub+1] (0 element unused) */ member
103 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
189 regmatch_t pmatch[], in matcher() argument
213 start = string + pmatch[0].rm_so; in matcher()
214 stop = string + pmatch[0].rm_eo; in matcher()
269 m->pmatch = NULL; in matcher()
297 if (m->pmatch != NULL) in matcher()
298 free((char *)m->pmatch); in matcher()
322 if (m->pmatch == NULL) in matcher()
323 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) * in matcher()
325 if (m->pmatch == NULL) { in matcher()
330 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1; in matcher()
339 free(m->pmatch); in matcher()
362 assert(m->pmatch[i].rm_so == -1); in matcher()
363 assert(m->pmatch[i].rm_eo == -1); in matcher()
383 pmatch[0].rm_so = m->coldp - m->offp; in matcher()
384 pmatch[0].rm_eo = endp - m->offp; in matcher()
387 assert(m->pmatch != NULL); in matcher()
390 pmatch[i] = m->pmatch[i]; in matcher()
392 pmatch[i].rm_so = -1; in matcher()
393 pmatch[i].rm_eo = -1; in matcher()
397 if (m->pmatch != NULL) in matcher()
398 free((char *)m->pmatch); in matcher()
579 m->pmatch[i].rm_so = sp - m->offp; in dissect()
584 m->pmatch[i].rm_eo = sp - m->offp; in dissect()
748 if (m->pmatch[i].rm_eo == -1) in backref()
750 assert(m->pmatch[i].rm_so != -1); in backref()
751 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so; in backref()
757 ssp = m->offp + m->pmatch[i].rm_so; in backref()
808 offsave = m->pmatch[i].rm_so; in backref()
809 m->pmatch[i].rm_so = sp - m->offp; in backref()
813 m->pmatch[i].rm_so = offsave; in backref()
818 offsave = m->pmatch[i].rm_eo; in backref()
819 m->pmatch[i].rm_eo = sp - m->offp; in backref()
823 m->pmatch[i].rm_eo = offsave; in backref()