Lines Matching refs:olen
143 const char *old, int olen, const char *new, int nlen) in substitute() argument
145 char *p = memstr(string, *slen, old, olen); in substitute()
151 (long)(p - string), olen, nlen); in substitute()
154 if (*slen + nlen - olen > ssize) { in substitute()
160 if (olen != nlen) { in substitute()
163 len = (olen > nlen) ? olen : nlen; in substitute()
169 memmove(p + nlen, p + olen, tail); in substitute()
175 *slen += nlen - olen; in substitute()
197 int i, olen; in setexpr_regex_sub() local
227 olen = caps[0].len; in setexpr_regex_sub()
288 old, olen, nbuf, nlen); in setexpr_regex_sub()