Lines Matching refs:fmt
125 static int format_converter(register buffy *odp, const char *fmt, zend_bool escape_xml, va_list ap)… in format_converter() argument
167 while (*fmt) { in format_converter()
168 if (*fmt != '%') { in format_converter()
169 INS_CHAR(*fmt, sp, bep, cc); in format_converter()
180 fmt++; in format_converter()
185 if (isascii((int)*fmt) && !islower((int)*fmt)) { in format_converter()
189 for (;; fmt++) { in format_converter()
190 if (*fmt == '-') in format_converter()
192 else if (*fmt == '+') in format_converter()
194 else if (*fmt == '#') in format_converter()
196 else if (*fmt == ' ') in format_converter()
198 else if (*fmt == '0') in format_converter()
207 if (isdigit((int)*fmt)) { in format_converter()
208 STR_TO_DEC(fmt, min_width); in format_converter()
210 } else if (*fmt == '*') { in format_converter()
212 fmt++; in format_converter()
224 if (*fmt == '.') { in format_converter()
226 fmt++; in format_converter()
227 if (isdigit((int)*fmt)) { in format_converter()
228 STR_TO_DEC(fmt, precision); in format_converter()
229 } else if (*fmt == '*') { in format_converter()
231 fmt++; in format_converter()
237 if (precision > FORMAT_CONV_MAX_PRECISION && *fmt != 's' && *fmt != 'v' && *fmt != 'b') { in format_converter()
248 switch (*fmt) { in format_converter()
250 fmt++; in format_converter()
254 fmt++; in format_converter()
256 if (*fmt == '6' && *(fmt+1) == '4') { in format_converter()
257 fmt += 2; in format_converter()
261 if (*fmt == '3' && *(fmt+1) == '2') { in format_converter()
262 fmt += 2; in format_converter()
273 fmt++; in format_converter()
275 if (*fmt == 'l') { in format_converter()
276 fmt++; in format_converter()
283 fmt++; in format_converter()
287 fmt++; in format_converter()
295 fmt++; in format_converter()
303 fmt++; in format_converter()
304 if (*fmt == 'h') { in format_converter()
305 fmt++; in format_converter()
324 switch (*fmt) { in format_converter()
375 if ((*fmt) != 'u') { in format_converter()
409 s = ap_php_conv_10(i_num, (*fmt) == 'u', &is_negative, in format_converter()
413 if (*fmt != 'u') { in format_converter()
454 s = ap_php_conv_p2(ui_num, 3, *fmt, &num_buf[NUM_BUF_SIZE], &s_len); in format_converter()
493 s = ap_php_conv_p2(ui_num, 4, *fmt, &num_buf[NUM_BUF_SIZE], &s_len); in format_converter()
496 *--s = *fmt; /* 'x' or 'X' */ in format_converter()
619 s = php_conv_fp((*fmt == 'f')?'F':*fmt, fp_num, alternate_form, in format_converter()
621 (*fmt == 'f')?LCONV_DECIMAL_POINT:'.', in format_converter()
675 …s = php_gcvt(fp_num, precision, (*fmt=='H' || *fmt == 'k') ? '.' : LCONV_DECIMAL_POINT, (*fmt == '… in format_converter()
747 php_error(E_ERROR, "Illegal length modifier specified '%c' in s[np]printf call", *fmt); in format_converter()
760 char_buf[1] = *fmt; in format_converter()
800 fmt++; in format_converter()
1180 PHPDBG_API int phpdbg_xml_internal(int fd, const char *fmt, ...) { in phpdbg_xml_internal() argument
1192 va_start(args, fmt); in phpdbg_xml_internal()
1193 buflen = phpdbg_xml_vasprintf(&buffer, fmt, 1, args); in phpdbg_xml_internal()
1210 PHPDBG_API int phpdbg_log_internal(int fd, const char *fmt, ...) { in phpdbg_log_internal() argument
1216 va_start(args, fmt); in phpdbg_log_internal()
1217 buflen = phpdbg_xml_vasprintf(&buffer, fmt, 0, args); in phpdbg_log_internal()
1226 PHPDBG_API int phpdbg_out_internal(int fd, const char *fmt, ...) { in phpdbg_out_internal() argument
1236 va_start(args, fmt); in phpdbg_out_internal()
1237 buflen = phpdbg_xml_vasprintf(&buffer, fmt, 0, args); in phpdbg_out_internal()
1266 PHPDBG_API int phpdbg_rlog_internal(int fd, const char *fmt, ...) { /* {{{ */ in phpdbg_rlog_internal() argument
1272 va_start(args, fmt); in phpdbg_rlog_internal()
1284 phpdbg_asprintf(&format, "[%s]: %s\n", buffer, fmt); in phpdbg_rlog_internal()