Lines Matching refs:len
154 size_t len; in get_recorded() local
163 len = STRLEN(p); in get_recorded()
164 if ((int)len >= last_recorded_len) in get_recorded()
166 len -= last_recorded_len; in get_recorded()
167 p[len] = NUL; in get_recorded()
174 if (len > 0 && restart_edit != 0 && p[len - 1] == Ctrl_O) in get_recorded()
175 p[len - 1] = NUL; in get_recorded()
201 long_u len; in add_buff() local
226 len = (long_u)STRLEN(buf->bh_curr->b_str); in add_buff()
227 vim_strncpy(buf->bh_curr->b_str + len, s, (size_t)slen); in add_buff()
233 len = MINIMAL_SIZE; in add_buff()
235 len = slen; in add_buff()
236 p = alloc(offsetof(buffblock_T, b_str) + len + 1); in add_buff()
239 buf->bh_space = (int)(len - slen); in add_buff()
268 int len; in add_char_buff() local
273 len = 1; in add_char_buff()
275 len = (*mb_char2bytes)(c, bytes); in add_char_buff()
276 for (i = 0; i < len; ++i) in add_char_buff()
540 int len) // length of "str" or -1 for up to the NUL in AppendToRedobuffLit() argument
549 while (len < 0 ? *s != NUL : s - str < len) in AppendToRedobuffLit()
558 && (len < 0 || s - str < len)) in AppendToRedobuffLit()
568 if (*s == NUL || (len >= 0 && s - str >= len)) in AppendToRedobuffLit()
634 stuffReadbuffLen(char_u *s, long len) in stuffReadbuffLen() argument
636 add_buff(&readbuf1, s, len); in stuffReadbuffLen()
1178 del_typebuf(int len, int offset) in del_typebuf() argument
1182 if (len == 0) in del_typebuf()
1185 typebuf.tb_len -= len; in del_typebuf()
1190 if (offset == 0 && typebuf.tb_buflen - (typebuf.tb_off + len) in del_typebuf()
1192 typebuf.tb_off += len; in del_typebuf()
1212 typebuf.tb_buf + i + len, in del_typebuf()
1216 typebuf.tb_noremap + i + len, in del_typebuf()
1222 if (typebuf.tb_maplen < offset + len) in del_typebuf()
1225 typebuf.tb_maplen -= len; in del_typebuf()
1229 if (typebuf.tb_silent < offset + len) in del_typebuf()
1232 typebuf.tb_silent -= len; in del_typebuf()
1236 if (typebuf.tb_no_abbr_cnt < offset + len) in del_typebuf()
1239 typebuf.tb_no_abbr_cnt -= len; in del_typebuf()
1256 gotchars(char_u *chars, int len) in gotchars() argument
1262 int todo = len; in gotchars()
2340 int len; in check_simplify_modifier() local
2350 len = mb_char2bytes(new_c, new_string); in check_simplify_modifier()
2353 if (put_string_in_typebuf(offset, 4, new_string, len, in check_simplify_modifier()
2360 if (put_string_in_typebuf(offset + 3, 1, new_string, len, in check_simplify_modifier()
2364 return len; in check_simplify_modifier()
3466 int len = 0; // init for GCC in inchar() local
3527 len = 1; in inchar()
3548 len = ui_inchar(dum, DUM_LEN, 0L, 0); in inchar()
3549 if (len == 0 || (len == 1 && dum[0] == 3)) in inchar()
3566 len = ui_inchar(buf, maxlen / 3, wait_time, tb_change_cnt); in inchar()
3577 if (len > 0 && ++typebuf.tb_change_cnt == 0) in inchar()
3580 return fix_input_buffer(buf, len); in inchar()
3589 fix_input_buffer(char_u *buf, int len) in fix_input_buffer() argument
3601 for (i = len; --i >= 0; ++p) in fix_input_buffer()
3619 len += 2; in fix_input_buffer()
3642 len += 2; in fix_input_buffer()
3646 return len; in fix_input_buffer()