Lines Matching refs:l_separator
724 size_t f, l, l_separator; in strextend_with_separator_internal() local
734 l_separator = strlen_ptr(separator); in strextend_with_separator_internal()
748 n += l_separator; in strextend_with_separator_internal()
794 size_t m, a, l_separator; in strextendf_with_separator() local
805 l_separator = isempty(*x) ? 0 : strlen_ptr(separator); in strextendf_with_separator()
815 …if (a - m < 17 + l_separator) { /* if there's less than 16 chars space, then enlarge the buffer fi… in strextendf_with_separator()
818 if (_unlikely_(l_separator > SIZE_MAX - 64)) /* overflow check #1 */ in strextendf_with_separator()
820 if (_unlikely_(m > SIZE_MAX - 64 - l_separator)) /* overflow check #2 */ in strextendf_with_separator()
823 n = realloc(*x, m + 64 + l_separator); in strextendf_with_separator()
832 memcpy_safe(*x + m, separator, l_separator); in strextendf_with_separator()
834 l = vsnprintf(*x + m + l_separator, a - m - l_separator, format, ap); 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()
865 l = vsnprintf(*x + m + l_separator, a - m - l_separator, format, ap); in strextendf_with_separator()
868 assert((size_t) l < a - m - l_separator); in strextendf_with_separator()