Lines Matching defs:match
71 sub(const regex_t* p, register regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch, register regmatch_t* match)
86 if ((c = match[op->off].rm_so) < 0)
89 if ((c = match[op->off].rm_eo) < 0)
148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match)
165 PUTS(p, b, s, match->rm_eo, return fatal(p->env->disc, c, NiL));
168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL));
169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match)))
172 s += match->rm_eo;
175 if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match->rm_so == match->rm_eo ? REG_ADVANCE : 0)))
181 if (!match->rm_so && !match->rm_eo && *s && m <= 1)
183 match->rm_so = match->rm_eo = 1;
216 regmatch_t* match;
220 if (!(match = oldof(0, regmatch_t, nmatch, 0)))
224 match[i].rm_so = oldmatch[i].rm_so;
225 match[i].rm_eo = oldmatch[i].rm_eo;
227 if (!(r = regsubexec_20120528(p, s, nmatch, match)))
230 oldmatch[i].rm_so = match[i].rm_so;
231 oldmatch[i].rm_eo = match[i].rm_eo;
233 free(match);