Lines Matching refs:xbuf
114 #define INS_CHAR(xbuf, ch, is_char) do { \ argument
116 smart_string_appendc((smart_string *)(xbuf), (ch)); \
118 smart_str_appendc((smart_str *)(xbuf), (ch)); \
122 #define INS_STRING(xbuf, str, len, is_char) do { \ argument
124 smart_string_appendl((smart_string *)(xbuf), (str), (len)); \
126 smart_str_appendl((smart_str *)(xbuf), (str), (len)); \
130 #define PAD_CHAR(xbuf, ch, count, is_char) do { \ argument
132 smart_string_alloc(((smart_string *)(xbuf)), (count), 0); \
133 memset(((smart_string *)(xbuf))->c + ((smart_string *)(xbuf))->len, (ch), (count)); \
134 ((smart_string *)(xbuf))->len += (count); \
136 smart_str_alloc(((smart_str *)(xbuf)), (count), 0); \
137 memset(ZSTR_VAL(((smart_str *)(xbuf))->s) + ZSTR_LEN(((smart_str *)(xbuf))->s), (ch), (count)); \
138 ZSTR_LEN(((smart_str *)(xbuf))->s) += (count); \
181 static void xbuf_format_converter(void *xbuf, bool is_char, const char *fmt, va_list ap) /* {{{ */ in xbuf_format_converter() argument
220 INS_CHAR(xbuf, *fmt, is_char); in xbuf_format_converter()
686 …*(va_arg(ap, int *)) = is_char? (int)((smart_string *)xbuf)->len : (int)ZSTR_LEN(((smart_str *)xbu… in xbuf_format_converter()
751 INS_CHAR(xbuf, *s, is_char); in xbuf_format_converter()
756 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()
761 INS_STRING(xbuf, s, s_len, is_char); in xbuf_format_converter()
764 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()