Lines Matching refs:xbuf
122 #define INS_CHAR(xbuf, ch, is_char) do { \ argument
124 smart_string_appendc((smart_string *)(xbuf), (ch)); \
126 smart_str_appendc((smart_str *)(xbuf), (ch)); \
130 #define INS_STRING(xbuf, str, len, is_char) do { \ argument
132 smart_string_appendl((smart_string *)(xbuf), (str), (len)); \
134 smart_str_appendl((smart_str *)(xbuf), (str), (len)); \
138 #define PAD_CHAR(xbuf, ch, count, is_char) do { \ argument
140 smart_string_alloc(((smart_string *)(xbuf)), (count), 0); \
141 memset(((smart_string *)(xbuf))->c + ((smart_string *)(xbuf))->len, (ch), (count)); \
142 ((smart_string *)(xbuf))->len += (count); \
144 smart_str_alloc(((smart_str *)(xbuf)), (count), 0); \
145 memset(ZSTR_VAL(((smart_str *)(xbuf))->s) + ZSTR_LEN(((smart_str *)(xbuf))->s), (ch), (count)); \
146 ZSTR_LEN(((smart_str *)(xbuf))->s) += (count); \
196 static void xbuf_format_converter(void *xbuf, zend_bool is_char, const char *fmt, va_list ap) /* {{… in xbuf_format_converter() argument
239 INS_CHAR(xbuf, *fmt, is_char); in xbuf_format_converter()
737 …*(va_arg(ap, int *)) = is_char? (int)((smart_string *)xbuf)->len : (int)ZSTR_LEN(((smart_str *)xbu… in xbuf_format_converter()
801 INS_CHAR(xbuf, *s, is_char); in xbuf_format_converter()
806 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()
811 INS_STRING(xbuf, s, s_len, is_char); in xbuf_format_converter()
814 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()