Lines Matching refs:len
54 size_t blen, len;
73 len = cmdp->argv[0]->len; len > 0; --len, ++p) {
77 if (len == 0)
200 for (rep = p, len = 0;
201 p[0] != '\0' && p[0] != delim; ++p, ++len)
203 len += sp->repl_len;
204 GET_SPACE_RETW(sp, bp, blen, len);
205 for (t = bp, len = 0, p = rep;;) {
216 ++len;
226 len += sp->repl_len;
230 ++len;
232 if ((sp->repl_len = len) != 0) {
235 MALLOC(sp, sp->repl, CHAR_T *, len * sizeof(CHAR_T));
240 MEMCPY(sp->repl, bp, len);
317 #define BUILD(sp, l, len) { \
318 if (lbclen + (len) > lblen) { \
319 lblen = p2roundup(MAX(lbclen + (len), 256)); \
326 MEMCPY(lb + lbclen, l, len); \
327 lbclen += len; \
330 #define NEEDSP(sp, len, pnt) { \
331 if (lbclen + (len) > lblen) { \
332 lblen = p2roundup(MAX(lbclen + (len), 256)); \
351 size_t blen, cnt, last, lbclen, lblen, len, llen;
518 len = llen;
548 match[0].rm_eo = len;
591 if (len == 0)
595 --len;
700 len -= match[0].rm_eo;
718 if (len)
719 BUILD(sp, s + offset, len)
748 len = llen - offset;
761 if (offset == len) {
776 if (len == 0) {
787 if (len)
788 BUILD(sp, s + offset, len)
888 size_t len;
900 for (p = ptrn, len = plen; len > 0; ++p, --len)
903 if (len == 0)
1017 size_t blen, len, needlen;
1028 for (p = *ptrnp, len = *plenp, needlen = 0; len > 0; ++p, --len)
1031 if (len > 1) {
1032 --len;
1090 for (p = *ptrnp, len = *plenp, t = bp; len > 0; ++p, --len)
1093 if (len > 1) {
1094 --len;
1161 size_t blen, len;
1165 len = *plenp;
1169 GET_SPACE_RETW(sp, bp, blen, len * 2);
1175 if (len > 0 && (p[len - 1] == '/' || p[len - 1] == '?'))
1176 --len;
1179 if (len > 0 && p[len - 1] == '$') {
1180 --len;
1186 if (len > 0 && (p[0] == '/' || p[0] == '?')) {
1188 --len;
1194 --len;
1202 for (; len > 0; --len) {
1205 --len;
1226 size_t blen, len, nspaces;
1239 for (nspaces = 0, p = *ptrnp, len = *plenp; len > 0; ++p, --len)
1250 len = (p - *ptrnp) * 2 + (nspaces + 2) * sizeof(CSCOPE_RE_SPACE) + 3;
1251 GET_SPACE_RETW(sp, bp, blen, len);
1260 for (len = *plenp; len > 0; ++p, --len)