Home | History | Annotate | Download | only in regex

Lines Matching full:pmatch

74 	regmatch_t *pmatch;	/* [nsub+1] (0 element unused) */
128 matcher(struct re_guts *g, char *string, size_t nmatch, regmatch_t pmatch[],
145 start = string + pmatch[0].rm_so;
146 stop = string + pmatch[0].rm_eo;
167 m->pmatch = NULL;
183 free(m->pmatch);
205 if (m->pmatch == NULL)
206 m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) *
208 if (m->pmatch == NULL) {
213 m->pmatch[i].rm_so = m->pmatch[i].rm_eo = -1;
222 free(m->pmatch);
245 assert(m->pmatch[i].rm_so == -1);
246 assert(m->pmatch[i].rm_eo == -1);
265 pmatch[0].rm_so = m->coldp - m->offp;
266 pmatch[0].rm_eo = endp - m->offp;
269 assert(m->pmatch != NULL);
272 pmatch[i] = m->pmatch[i];
274 pmatch[i].rm_so = -1;
275 pmatch[i].rm_eo = -1;
279 if (m->pmatch != NULL)
280 free((char *)m->pmatch);
453 m->pmatch[i].rm_so = sp - m->offp;
458 m->pmatch[i].rm_eo = sp - m->offp;
577 if (m->pmatch[i].rm_eo == -1)
579 assert(m->pmatch[i].rm_so != -1);
580 len = m->pmatch[i].rm_eo - m->pmatch[i].rm_so;
586 ssp = m->offp + m->pmatch[i].rm_so;
640 offsave = m->pmatch[i].rm_so;
641 m->pmatch[i].rm_so = sp - m->offp;
645 m->pmatch[i].rm_so = offsave;
651 offsave = m->pmatch[i].rm_eo;
652 m->pmatch[i].rm_eo = sp - m->offp;
656 m->pmatch[i].rm_eo = offsave;