Lines Matching refs:fmt
203 static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) /* {{{ */ in xbuf_format_converter() argument
243 while (*fmt) { in xbuf_format_converter()
244 if (*fmt != '%') { in xbuf_format_converter()
245 INS_CHAR(xbuf, *fmt); in xbuf_format_converter()
256 fmt++; in xbuf_format_converter()
261 if (isascii((int)*fmt) && !islower((int)*fmt)) { in xbuf_format_converter()
265 for (;; fmt++) { in xbuf_format_converter()
266 if (*fmt == '-') in xbuf_format_converter()
268 else if (*fmt == '+') in xbuf_format_converter()
270 else if (*fmt == '#') in xbuf_format_converter()
272 else if (*fmt == ' ') in xbuf_format_converter()
274 else if (*fmt == '0') in xbuf_format_converter()
283 if (isdigit((int)*fmt)) { in xbuf_format_converter()
284 STR_TO_DEC(fmt, min_width); in xbuf_format_converter()
286 } else if (*fmt == '*') { in xbuf_format_converter()
288 fmt++; in xbuf_format_converter()
300 if (*fmt == '.') { in xbuf_format_converter()
302 fmt++; in xbuf_format_converter()
303 if (isdigit((int)*fmt)) { in xbuf_format_converter()
304 STR_TO_DEC(fmt, precision); in xbuf_format_converter()
305 } else if (*fmt == '*') { in xbuf_format_converter()
307 fmt++; in xbuf_format_converter()
324 switch (*fmt) { in xbuf_format_converter()
326 fmt++; in xbuf_format_converter()
330 fmt++; in xbuf_format_converter()
332 if (*fmt == '6' && *(fmt+1) == '4') { in xbuf_format_converter()
333 fmt += 2; in xbuf_format_converter()
337 if (*fmt == '3' && *(fmt+1) == '2') { in xbuf_format_converter()
338 fmt += 2; in xbuf_format_converter()
349 fmt++; in xbuf_format_converter()
351 if (*fmt == 'l') { in xbuf_format_converter()
352 fmt++; in xbuf_format_converter()
359 fmt++; in xbuf_format_converter()
363 fmt++; in xbuf_format_converter()
371 fmt++; in xbuf_format_converter()
379 fmt++; in xbuf_format_converter()
380 if (*fmt == 'h') { in xbuf_format_converter()
381 fmt++; in xbuf_format_converter()
400 switch (*fmt) { in xbuf_format_converter()
451 if ((*fmt) != 'u') { in xbuf_format_converter()
485 s = ap_php_conv_10(i_num, (*fmt) == 'u', &is_negative, in xbuf_format_converter()
489 if (*fmt != 'u') { in xbuf_format_converter()
529 s = ap_php_conv_p2(ui_num, 3, *fmt, in xbuf_format_converter()
569 s = ap_php_conv_p2(ui_num, 4, *fmt, in xbuf_format_converter()
573 *--s = *fmt; /* 'x' or 'X' */ in xbuf_format_converter()
628 s = php_conv_fp((*fmt == 'f')?'F':*fmt, fp_num, alternate_form, in xbuf_format_converter()
630 (*fmt == 'f')?LCONV_DECIMAL_POINT:'.', in xbuf_format_converter()
688 …s = php_gcvt(fp_num, precision, (*fmt=='H' || *fmt == 'k') ? '.' : LCONV_DECIMAL_POINT, (*fmt == '… in xbuf_format_converter()
758 php_error(E_ERROR, "Illegal length modifier specified '%c' in s[np]printf call", *fmt); in xbuf_format_converter()
771 char_buf[1] = *fmt; in xbuf_format_converter()
803 fmt++; in xbuf_format_converter()