Lines Matching refs:fmt
132 static int format_converter(register buffy *odp, const char *fmt, zend_bool escape_xml, va_list ap)… in format_converter() argument
176 while (*fmt) { in format_converter()
177 if (*fmt != '%') { in format_converter()
178 INS_CHAR(*fmt, sp, bep, cc); in format_converter()
189 fmt++; in format_converter()
194 if (isascii((int)*fmt) && !islower((int)*fmt)) { in format_converter()
198 for (;; fmt++) { in format_converter()
199 if (*fmt == '-') in format_converter()
201 else if (*fmt == '+') in format_converter()
203 else if (*fmt == '#') in format_converter()
205 else if (*fmt == ' ') in format_converter()
207 else if (*fmt == '0') in format_converter()
216 if (isdigit((int)*fmt)) { in format_converter()
217 STR_TO_DEC(fmt, min_width); in format_converter()
219 } else if (*fmt == '*') { in format_converter()
221 fmt++; in format_converter()
233 if (*fmt == '.') { in format_converter()
235 fmt++; in format_converter()
236 if (isdigit((int)*fmt)) { in format_converter()
237 STR_TO_DEC(fmt, precision); in format_converter()
238 } else if (*fmt == '*') { in format_converter()
240 fmt++; in format_converter()
246 if (precision > FORMAT_CONV_MAX_PRECISION && *fmt != 's' && *fmt != 'v' && *fmt != 'b') { in format_converter()
257 switch (*fmt) { in format_converter()
259 fmt++; in format_converter()
263 fmt++; in format_converter()
265 if (*fmt == '6' && *(fmt+1) == '4') { in format_converter()
266 fmt += 2; in format_converter()
270 if (*fmt == '3' && *(fmt+1) == '2') { in format_converter()
271 fmt += 2; in format_converter()
282 fmt++; in format_converter()
284 if (*fmt == 'l') { in format_converter()
285 fmt++; in format_converter()
292 fmt++; in format_converter()
296 fmt++; in format_converter()
304 fmt++; in format_converter()
312 fmt++; in format_converter()
313 if (*fmt == 'h') { in format_converter()
314 fmt++; in format_converter()
333 switch (*fmt) { in format_converter()
384 if ((*fmt) != 'u') { in format_converter()
418 s = ap_php_conv_10(i_num, (*fmt) == 'u', &is_negative, in format_converter()
422 if (*fmt != 'u') { in format_converter()
463 s = ap_php_conv_p2(ui_num, 3, *fmt, &num_buf[NUM_BUF_SIZE], &s_len); in format_converter()
502 s = ap_php_conv_p2(ui_num, 4, *fmt, &num_buf[NUM_BUF_SIZE], &s_len); in format_converter()
505 *--s = *fmt; /* 'x' or 'X' */ in format_converter()
629 s = php_conv_fp((*fmt == 'f')?'F':*fmt, fp_num, alternate_form, in format_converter()
631 (*fmt == 'f')?LCONV_DECIMAL_POINT:'.', in format_converter()
686 …s = php_gcvt(fp_num, precision, (*fmt=='H' || *fmt == 'k') ? '.' : LCONV_DECIMAL_POINT, (*fmt == '… in format_converter()
758 php_error(E_ERROR, "Illegal length modifier specified '%c' in s[np]printf call", *fmt); in format_converter()
771 char_buf[1] = *fmt; in format_converter()
811 fmt++; in format_converter()
1202 PHPDBG_API int phpdbg_xml_internal(int fd, const char *fmt, ...) { in phpdbg_xml_internal() argument
1214 va_start(args, fmt); in phpdbg_xml_internal()
1215 buflen = phpdbg_xml_vasprintf(&buffer, fmt, 1, args); in phpdbg_xml_internal()
1232 PHPDBG_API int phpdbg_log_internal(int fd, const char *fmt, ...) { in phpdbg_log_internal() argument
1238 va_start(args, fmt); in phpdbg_log_internal()
1239 buflen = phpdbg_xml_vasprintf(&buffer, fmt, 0, args); in phpdbg_log_internal()
1248 PHPDBG_API int phpdbg_out_internal(int fd, const char *fmt, ...) { in phpdbg_out_internal() argument
1258 va_start(args, fmt); in phpdbg_out_internal()
1259 buflen = phpdbg_xml_vasprintf(&buffer, fmt, 0, args); in phpdbg_out_internal()
1288 PHPDBG_API int phpdbg_rlog_internal(int fd, const char *fmt, ...) { /* {{{ */ in phpdbg_rlog_internal() argument
1294 va_start(args, fmt); in phpdbg_rlog_internal()
1306 phpdbg_asprintf(&format, "[%s]: %s\n", buffer, fmt); in phpdbg_rlog_internal()