Lines Matching defs:len

203 	ssize_t i, j, len = *lenp;
205 if (len == 0)
213 for (j = 0, i = 1; i < len; i++) {
224 for (i = 0; i < len; i++)
227 if (len + n >= bsize)
230 for (i = len, j = len + n; --i >= 0; ) {
552 w.len = nwords = j;
621 int len, nwords = 0;
625 len = x_locate_word(buf, buflen, pos, startp, &is_command);
633 if (len == 0 && is_command)
636 if (len >= 0) {
643 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP);
644 toglob[len] = '\0';
678 toglob[len] = '*';
679 toglob[len + 1] = '\0';
697 *endp = *startp + len;
847 wp->len = j;
861 x_escape(const char *s, size_t len, int (*putbuf_func)(const char *, size_t))
863 size_t add = 0, wlen = len;
1414 x_do_ins(const char *cp, size_t len)
1416 if (xep + len >= xend) {
1420 memmove(xcp + len, xcp, xep - xcp + 1);
1421 memmove(xcp, cp, len);
1422 xcp += len;
1423 xep += len;
2329 size_t len;
2338 len = strlen(killstack[killtp]);
2339 x_goto(xcp - len);
2340 x_delete(x_nb2nc(len), false);
3114 ssize_t len = xep - xbuf;
3115 int ret = x_do_comment(xbuf, xend - xbuf, &len);
3121 xep = xbuf + len;
3599 size_t len; /* how much data in buffer */
4224 macro.len - (macro.p - macro.buf);
4241 macro.len = nlen;
4933 x_vi_putbuf(const char *s, size_t len)
4935 return (putbuf(s, len, false));
4939 putbuf(const char *buf, ssize_t len, bool repl)
4941 if (len == 0)
4944 if (vs->cursor + len >= vs->cbufsize)
4946 if (vs->cursor + len > vs->linelen)
4947 vs->linelen = vs->cursor + len;
4949 if (vs->linelen + len >= vs->cbufsize)
4951 memmove(&vs->cbuf[vs->cursor + len], &vs->cbuf[vs->cursor],
4953 vs->linelen += len;
4955 memmove(&vs->cbuf[vs->cursor], buf, len);
4956 vs->cursor += len;
5647 x_eval_region_helper(const char *cmd, size_t len)
5653 char *wds = alloc(len + 3, ATEMP);
5656 memcpy(wds + 1, cmd, len);
5657 wds[len + 1] = '\0';
5658 wds[len + 2] = EOS;
5728 x_quote_region_helper(const char *cmd, size_t len)
5734 strndupx(s, cmd, len, ATEMP);
5735 newlen = len < 256 ? 256 : 4096;