Lines Matching refs:nlen
86 int nlen) /* length of new string */ in substitute() argument
94 (long)(p - string), olen, nlen); in substitute()
97 if (*slen + nlen - olen > ssize) { in substitute()
103 if (olen != nlen) { in substitute()
106 len = (olen > nlen) ? olen : nlen; in substitute()
112 memmove(p + nlen, p + olen, tail); in substitute()
116 memcpy(p, new, nlen); in substitute()
118 *slen += nlen - olen; in substitute()
120 return p + nlen; in substitute()
136 int res, len, nlen, loop; in regex_sub() local
170 nlen = 0; in regex_sub()
172 nlen = strlen(s); in regex_sub()
213 if (nlen + 1 >= SLRE_PATSZ) { in regex_sub()
215 SLRE_BUFSZ, nlen + 1); in regex_sub()
254 char *p = memstr(np, nlen, backref, 2); in regex_sub()
259 np = substitute(np, &nlen, in regex_sub()
272 nbuf, nlen); in regex_sub()