Lines Matching refs:fmt

188 static void xbuf_format_converter(void *xbuf, bool is_char, const char *fmt, va_list ap) /* {{{ */  in xbuf_format_converter()  argument
225 while (*fmt) { in xbuf_format_converter()
226 if (*fmt != '%') { in xbuf_format_converter()
227 INS_CHAR(xbuf, *fmt, is_char); in xbuf_format_converter()
238 fmt++; in xbuf_format_converter()
243 if (isascii((int)*fmt) && !islower((int)*fmt)) { in xbuf_format_converter()
247 for (;; fmt++) { in xbuf_format_converter()
248 if (*fmt == '-') in xbuf_format_converter()
250 else if (*fmt == '+') in xbuf_format_converter()
252 else if (*fmt == '#') in xbuf_format_converter()
254 else if (*fmt == ' ') in xbuf_format_converter()
256 else if (*fmt == '0') in xbuf_format_converter()
265 if (isdigit((int)*fmt)) { in xbuf_format_converter()
266 STR_TO_DEC(fmt, min_width); in xbuf_format_converter()
268 } else if (*fmt == '*') { in xbuf_format_converter()
270 fmt++; in xbuf_format_converter()
282 if (*fmt == '.') { in xbuf_format_converter()
284 fmt++; in xbuf_format_converter()
285 if (isdigit((int)*fmt)) { in xbuf_format_converter()
286 STR_TO_DEC(fmt, precision); in xbuf_format_converter()
287 } else if (*fmt == '*') { in xbuf_format_converter()
289 fmt++; in xbuf_format_converter()
302 switch (*fmt) { in xbuf_format_converter()
304 fmt++; in xbuf_format_converter()
308 fmt++; in xbuf_format_converter()
310 if (*fmt == 'l') { in xbuf_format_converter()
311 fmt++; in xbuf_format_converter()
318 fmt++; in xbuf_format_converter()
322 fmt++; in xbuf_format_converter()
330 fmt++; in xbuf_format_converter()
339 char __next = *(fmt+1); in xbuf_format_converter()
348 fmt++; in xbuf_format_converter()
349 if (*fmt == 'h') { in xbuf_format_converter()
350 fmt++; in xbuf_format_converter()
370 switch (*fmt) { in xbuf_format_converter()
420 if ((*fmt) != 'u') { in xbuf_format_converter()
454 s = ap_php_conv_10(i_num, (*fmt) == 'u', &is_negative, in xbuf_format_converter()
458 if (*fmt != 'u') { in xbuf_format_converter()
498 s = ap_php_conv_p2(ui_num, 3, *fmt, in xbuf_format_converter()
538 s = ap_php_conv_p2(ui_num, 4, *fmt, in xbuf_format_converter()
542 *--s = *fmt; /* 'x' or 'X' */ in xbuf_format_converter()
594 s = php_conv_fp((*fmt == 'f')?'F':*fmt, fp_num, alternate_form, in xbuf_format_converter()
596 (*fmt == 'f')?LCONV_DECIMAL_POINT:'.', in xbuf_format_converter()
652 …s = zend_gcvt(fp_num, precision, (*fmt=='H' || *fmt == 'k') ? '.' : LCONV_DECIMAL_POINT, (*fmt == … in xbuf_format_converter()
722 php_error(E_ERROR, "Illegal length modifier specified '%c' in s[np]printf call", *fmt); in xbuf_format_converter()
736 char_buf[1] = *fmt; in xbuf_format_converter()
768 fmt++; in xbuf_format_converter()