Lines Matching defs:txt
126 char *txt;
143 txt = rbuf;
147 if ((txt = put_sbuf_line(txt)) == NULL) {
157 } while (txt != eot);
184 char *txt;
187 if ((txt = get_sbuf_line(lp)) == NULL)
190 NUL_TO_NEWLINE(txt, lp->len);
191 eot = txt + lp->len;
192 if (!regexec(pat, txt, SE_MAX, rm, 0)) {
199 NEWLINE_TO_NUL(txt, rm[0].rm_eo);
200 memcpy(rbuf + off, txt, i);
202 if ((off = apply_subst_template(txt, rm, off,
209 NEWLINE_TO_NUL(txt, i);
210 memcpy(rbuf + off, txt, i);
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));
216 i = eot - txt;
223 NEWLINE_TO_NUL(txt, i);
224 memcpy(rbuf + off, txt, i);