Lines Matching defs:rm
183 regmatch_t rm[SE_MAX];
192 if (!regexec(pat, txt, SE_MAX, rm, 0)) {
196 i = rm[0].rm_so;
199 NEWLINE_TO_NUL(txt, rm[0].rm_eo);
202 if ((off = apply_subst_template(txt, rm, off,
206 i = rm[0].rm_eo;
213 txt += rm[0].rm_eo;
214 } while (*txt && (!changed || ((gflag & GSG) && rm[0].rm_eo))
215 && !regexec(pat, txt, SE_MAX, rm, REG_NOTBOL));
218 if (i > 0 && !rm[0].rm_eo && (gflag & GSG)) {
234 apply_subst_template(char *boln, regmatch_t *rm, int off, int re_nsub)
243 j = rm[0].rm_so;
244 k = rm[0].rm_eo;
250 j = rm[n].rm_so;
251 k = rm[n].rm_eo;