Lines Matching refs:len
270 int len = 0; in fill_foldcolumn() local
296 len = utf_char2bytes(symbol, &p[byte_counter]); in fill_foldcolumn()
297 byte_counter += len; in fill_foldcolumn()
310 byte_counter -= len; in fill_foldcolumn()
311 if (len > 1) in fill_foldcolumn()
313 vim_memset(p + byte_counter, ' ', len); in fill_foldcolumn()
316 len = utf_char2bytes(symbol, &p[byte_counter]); in fill_foldcolumn()
317 byte_counter += len; in fill_foldcolumn()
872 int len = 0; in status_match_len() local
886 len += ptr2cells(s); in status_match_len()
890 return len; in status_match_len()
935 int len; in win_redr_status_matches() local
1014 len = 0; in win_redr_status_matches()
1019 len = 2; in win_redr_status_matches()
1021 clen = len; in win_redr_status_matches()
1028 selstart = buf + len; in win_redr_status_matches()
1039 STRCPY(buf + len, transchar('|')); in win_redr_status_matches()
1040 l = (int)STRLEN(buf + len); in win_redr_status_matches()
1041 len += l; in win_redr_status_matches()
1052 STRNCPY(buf + len, s, l); in win_redr_status_matches()
1054 len += l; in win_redr_status_matches()
1058 STRCPY(buf + len, transchar_byte(*s)); in win_redr_status_matches()
1059 len += (int)STRLEN(buf + len); in win_redr_status_matches()
1063 selend = buf + len; in win_redr_status_matches()
1065 *(buf + len++) = ' '; in win_redr_status_matches()
1066 *(buf + len++) = ' '; in win_redr_status_matches()
1074 *(buf + len++) = '>'; in win_redr_status_matches()
1078 buf[len] = NUL; in win_redr_status_matches()
1170 int len) // length of buffer in get_keymap_str() argument
1201 if (vim_snprintf((char *)buf, len, (char *)fmt, p) > len - 1) in get_keymap_str()
1228 int len; in win_redr_custom() local
1337 len = (int)STRLEN(buf); in win_redr_custom()
1338 while (width < maxwidth && len < (int)sizeof(buf) - 1) in win_redr_custom()
1340 len += (*mb_char2bytes)(fillchar, buf + len); in win_redr_custom()
1343 buf[len] = NUL; in win_redr_custom()
1352 len = (int)(hltab[n].start - p); in win_redr_custom()
1353 screen_puts_len(p, len, row, col, curattr); in win_redr_custom()
1354 col += vim_strnsize(p, len); in win_redr_custom()
1380 len = 0; in win_redr_custom()
1385 len += vim_strnsize(p, (int)(tabtab[n].start - p)); in win_redr_custom()
1386 while (col < len) in win_redr_custom()
1502 int len = textlen; in screen_puts_len() local
1550 && (len < 0 || (int)(ptr - text) < len) in screen_puts_len()
1557 if (enc_utf8 && len > 0) in screen_puts_len()
1558 mbyte_blen = utfc_ptr2len_len(ptr, (int)((text + len) - ptr)); in screen_puts_len()
1567 if (len >= 0) in screen_puts_len()
1569 (int)((text + len) - ptr)); in screen_puts_len()
1577 if (len >= 0 && (int)(ptr - text) + mbyte_blen >= len) in screen_puts_len()
1586 (int)((text + len) - ptr - mbyte_blen)); in screen_puts_len()
1662 && (len < 0 ? ptr[mbyte_blen] == NUL in screen_puts_len()
1663 : ptr + mbyte_blen >= text + len) in screen_puts_len()
1726 len = -1; in screen_puts_len()
2582 int len; in screenalloc() local
2797 len = screen_Columns; in screenalloc()
2799 len = Columns; in screenalloc()
2806 (size_t)len * sizeof(schar_T)); in screenalloc()
2812 (size_t)len * sizeof(u8char_T)); in screenalloc()
2817 (size_t)len * sizeof(u8char_T)); in screenalloc()
2822 (size_t)len * sizeof(schar_T)); in screenalloc()
2825 (size_t)len * sizeof(sattr_T)); in screenalloc()
4394 int len; in draw_tabline() local
4489 len = (int)STRLEN(NameBuff); in draw_tabline()
4490 if (col + len >= Columns - 3) in draw_tabline()
4492 screen_puts_len(NameBuff, len, 0, col, in draw_tabline()
4499 col += len; in draw_tabline()
4512 len = vim_strsize(NameBuff); in draw_tabline()
4515 while (len > room) in draw_tabline()
4517 len -= ptr2cells(p); in draw_tabline()
4520 else if (len > room) in draw_tabline()
4522 p += len - room; in draw_tabline()
4523 len = room; in draw_tabline()
4525 if (len > Columns - col - 1) in draw_tabline()
4526 len = Columns - col - 1; in draw_tabline()
4529 col += len; in draw_tabline()
4816 int round, i, len, entries; in set_chars_option() local
4909 len = (int)STRLEN(tab[i].name); in set_chars_option()
4910 if (STRNCMP(p, tab[i].name, len) == 0 in set_chars_option()
4911 && p[len] == ':' in set_chars_option()
4912 && p[len + 1] != NUL) in set_chars_option()
4915 s = p + len + 1; in set_chars_option()
4956 len = (int)STRLEN("multispace"); in set_chars_option()
4958 && STRNCMP(p, "multispace", len) == 0 in set_chars_option()
4959 && p[len] == ':' in set_chars_option()
4960 && p[len + 1] != NUL) in set_chars_option()
4962 s = p + len + 1; in set_chars_option()