Lines Matching refs:fmt
198 static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) /* {{{ */ in xbuf_format_converter() argument
234 while (*fmt) { in xbuf_format_converter()
235 if (*fmt != '%') { in xbuf_format_converter()
236 INS_CHAR(xbuf, *fmt); in xbuf_format_converter()
247 fmt++; in xbuf_format_converter()
252 if (isascii((int)*fmt) && !islower((int)*fmt)) { in xbuf_format_converter()
256 for (;; fmt++) { in xbuf_format_converter()
257 if (*fmt == '-') in xbuf_format_converter()
259 else if (*fmt == '+') in xbuf_format_converter()
261 else if (*fmt == '#') in xbuf_format_converter()
263 else if (*fmt == ' ') in xbuf_format_converter()
265 else if (*fmt == '0') in xbuf_format_converter()
274 if (isdigit((int)*fmt)) { in xbuf_format_converter()
275 STR_TO_DEC(fmt, min_width); in xbuf_format_converter()
277 } else if (*fmt == '*') { in xbuf_format_converter()
279 fmt++; in xbuf_format_converter()
291 if (*fmt == '.') { in xbuf_format_converter()
293 fmt++; in xbuf_format_converter()
294 if (isdigit((int)*fmt)) { in xbuf_format_converter()
295 STR_TO_DEC(fmt, precision); in xbuf_format_converter()
296 } else if (*fmt == '*') { in xbuf_format_converter()
298 fmt++; in xbuf_format_converter()
315 switch (*fmt) { in xbuf_format_converter()
317 fmt++; in xbuf_format_converter()
321 fmt++; in xbuf_format_converter()
323 if (*fmt == '6' && *(fmt+1) == '4') { in xbuf_format_converter()
324 fmt += 2; in xbuf_format_converter()
328 if (*fmt == '3' && *(fmt+1) == '2') { in xbuf_format_converter()
329 fmt += 2; in xbuf_format_converter()
340 fmt++; in xbuf_format_converter()
342 if (*fmt == 'l') { in xbuf_format_converter()
343 fmt++; in xbuf_format_converter()
350 fmt++; in xbuf_format_converter()
354 fmt++; in xbuf_format_converter()
362 fmt++; in xbuf_format_converter()
370 fmt++; in xbuf_format_converter()
371 if (*fmt == 'h') { in xbuf_format_converter()
372 fmt++; in xbuf_format_converter()
391 switch (*fmt) { in xbuf_format_converter()
442 if ((*fmt) != 'u') { in xbuf_format_converter()
476 s = ap_php_conv_10(i_num, (*fmt) == 'u', &is_negative, in xbuf_format_converter()
480 if (*fmt != 'u') { in xbuf_format_converter()
520 s = ap_php_conv_p2(ui_num, 3, *fmt, in xbuf_format_converter()
560 s = ap_php_conv_p2(ui_num, 4, *fmt, in xbuf_format_converter()
564 *--s = *fmt; /* 'x' or 'X' */ in xbuf_format_converter()
615 s = php_conv_fp((*fmt == 'f')?'F':*fmt, fp_num, alternate_form, in xbuf_format_converter()
617 (*fmt == 'f')?LCONV_DECIMAL_POINT:'.', in xbuf_format_converter()
671 …s = php_gcvt(fp_num, precision, (*fmt=='H' || *fmt == 'k') ? '.' : LCONV_DECIMAL_POINT, (*fmt == '… in xbuf_format_converter()
741 php_error(E_ERROR, "Illegal length modifier specified '%c' in s[np]printf call", *fmt); in xbuf_format_converter()
754 char_buf[1] = *fmt; in xbuf_format_converter()
786 fmt++; in xbuf_format_converter()