Lines Matching refs:xbuf
118 #define INS_CHAR(xbuf, ch, is_char) do { \ argument
120 smart_string_appendc((smart_string *)(xbuf), (ch)); \
122 smart_str_appendc((smart_str *)(xbuf), (ch)); \
126 #define INS_STRING(xbuf, str, len, is_char) do { \ argument
128 smart_string_appendl((smart_string *)(xbuf), (str), (len)); \
130 smart_str_appendl((smart_str *)(xbuf), (str), (len)); \
134 #define PAD_CHAR(xbuf, ch, count, is_char) do { \ argument
136 smart_string_alloc(((smart_string *)(xbuf)), (count), 0); \
137 memset(((smart_string *)(xbuf))->c + ((smart_string *)(xbuf))->len, (ch), (count)); \
138 ((smart_string *)(xbuf))->len += (count); \
140 smart_str_alloc(((smart_str *)(xbuf)), (count), 0); \
141 memset(ZSTR_VAL(((smart_str *)(xbuf))->s) + ZSTR_LEN(((smart_str *)(xbuf))->s), (ch), (count)); \
142 ZSTR_LEN(((smart_str *)(xbuf))->s) += (count); \
192 static void xbuf_format_converter(void *xbuf, zend_bool is_char, const char *fmt, va_list ap) /* {{… in xbuf_format_converter() argument
233 INS_CHAR(xbuf, *fmt, is_char); in xbuf_format_converter()
727 …*(va_arg(ap, int *)) = is_char? (int)((smart_string *)xbuf)->len : (int)ZSTR_LEN(((smart_str *)xbu… in xbuf_format_converter()
791 INS_CHAR(xbuf, *s, is_char); in xbuf_format_converter()
796 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()
801 INS_STRING(xbuf, s, s_len, is_char); in xbuf_format_converter()
804 PAD_CHAR(xbuf, pad_char, min_width - s_len, is_char); in xbuf_format_converter()