Lines Matching refs:size_t

24         size_t sl, wl;  in first_word()
57 char *strnappend(const char *s, const char *suffix, size_t b) { in strnappend()
58 size_t a; in strnappend()
90 size_t l = 1; in strjoin_real()
95 size_t n; in strjoin_real()
213 char *ascii_strlower_n(char *t, size_t n) { in ascii_strlower_n()
217 for (size_t i = 0; i < n; i++) in ascii_strlower_n()
223 int ascii_strcasecmp_n(const char *a, const char *b, size_t n) { in ascii_strcasecmp_n()
238 int ascii_strcasecmp_nn(const char *a, size_t n, const char *b, size_t m) { in ascii_strcasecmp_nn()
291 static char *ascii_ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned perc… in ascii_ellipsize_mem()
292 size_t x, need_space, suffix_len; in ascii_ellipsize_mem()
347 char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned percent) { in ellipsize_mem()
348 size_t x, k, len, len2; in ellipsize_mem()
445 char *cellescape(char *buf, size_t len, const char *s) { in cellescape()
458 size_t i = 0, last_char_width[4] = {}, k = 0; in cellescape()
487 for (size_t j = 0; j < ELEMENTSOF(last_char_width); j++) { in cellescape()
515 char* strshorten(char *s, size_t l) { in strshorten()
525 size_t l, old_len, new_len; in strreplace()
545 size_t d, nl; in strreplace()
571 size_t offsets[2], /* note: we can't use [static 2] here, since this may be NULL */ in advance_offsets()
572 size_t shift[static 2], in advance_offsets()
573 size_t size) { in advance_offsets()
580 if ((size_t) diff < offsets[0]) in advance_offsets()
582 if ((size_t) diff < offsets[1]) in advance_offsets()
586 char *strip_tab_ansi(char **ibuf, size_t *_isz, size_t highlight[2]) { in strip_tab_ansi()
595 size_t osz = 0, isz, shift[2] = {}, n_carriage_returns = 0; in strip_tab_ansi()
724 size_t f, l, l_separator; in strextend_with_separator_internal()
739 size_t n; in strextend_with_separator_internal()
794 size_t m, a, l_separator; in strextendf_with_separator()
839 if ((size_t) l < a - m - l_separator) { in strextendf_with_separator()
845 n = realloc(*x, m + (size_t) l + l_separator + 1); in strextendf_with_separator()
853 if (_unlikely_((size_t) l > SIZE_MAX - (l_separator + 1))) /* overflow check #1 */ in strextendf_with_separator()
855 … if (_unlikely_(m > SIZE_MAX - ((size_t) l + l_separator + 1))) /* overflow check #2 */ in strextendf_with_separator()
858 a = m + (size_t) l + l_separator + 1; in strextendf_with_separator()
868 assert((size_t) l < a - m - l_separator); in strextendf_with_separator()
881 size_t l; in strrep()
952 int free_and_strndup(char **p, const char *s, size_t l) { in free_and_strndup()
1005 int string_truncate_lines(const char *s, size_t n_lines, char **ret) { in string_truncate_lines()
1009 size_t n = 0; in string_truncate_lines()
1018 size_t k; in string_truncate_lines()
1062 int string_extract_line(const char *s, size_t i, char **ret) { in string_extract_line()
1064 size_t c = 0; in string_extract_line()
1178 size_t strspn_from_end(const char *str, const char *accept) { in strspn_from_end()
1179 size_t n = 0; in strspn_from_end()