Lines Matching refs:xbuf
124 #define INS_CHAR(xbuf, ch, is_char) do { \ argument
126 smart_string_appendc((smart_string *)(xbuf), (ch)); \
128 smart_str_appendc((smart_str *)(xbuf), (ch)); \
132 #define INS_STRING(xbuf, str, len, is_char) do { \ argument
134 smart_string_appendl((smart_string *)(xbuf), (str), (len)); \
136 smart_str_appendl((smart_str *)(xbuf), (str), (len)); \
140 #define PAD_CHAR(xbuf, ch, count, is_char) do { \ argument
143 smart_string_alloc(((smart_string *)(xbuf)), (count), 0); \
144 memset(((smart_string *)(xbuf))->c + ((smart_string *)(xbuf))->len, (ch), (count)); \
145 ((smart_string *)(xbuf))->len += (count); \
147 smart_str_alloc(((smart_str *)(xbuf)), (count), 0); \
148 memset(ZSTR_VAL(((smart_str *)(xbuf))->s) + ZSTR_LEN(((smart_str *)(xbuf))->s), (ch), (count)); \
149 ZSTR_LEN(((smart_str *)(xbuf))->s) += (count); \
203 static void xbuf_format_converter(void *xbuf, zend_bool is_char, const char *fmt, va_list ap) /* {{… in xbuf_format_converter() argument
246 INS_CHAR(xbuf, *fmt, is_char); in xbuf_format_converter()
744 …*(va_arg(ap, int *)) = is_char? (int)((smart_string *)xbuf)->len : (int)ZSTR_LEN(((smart_str *)xbu… in xbuf_format_converter()
808 INS_CHAR(xbuf, *s, is_char); in xbuf_format_converter()
813 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()
818 INS_STRING(xbuf, s, s_len, is_char); in xbuf_format_converter()
821 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()