Lines Matching refs:format
379 int php_sprintf_get_argnum(char **format, size_t *format_len) { in php_sprintf_get_argnum() argument
380 char *temppos = *format; in php_sprintf_get_argnum()
386 int argnum = php_sprintf_getnumber(format, format_len); in php_sprintf_get_argnum()
392 (*format)++; /* skip the '$' */ in php_sprintf_get_argnum()
425 php_formatted_print(char *format, size_t format_len, zval *args, int argc, int nb_additional_parame… in php_formatted_print() argument
443 temppos = memchr(format, '%', format_len); in php_formatted_print()
445 php_sprintf_appendchars(&result, &outpos, format, format_len); in php_formatted_print()
447 } else if (temppos != format) { in php_formatted_print()
448 php_sprintf_appendchars(&result, &outpos, format, temppos - format); in php_formatted_print()
449 format_len -= temppos - format; in php_formatted_print()
450 format = temppos; in php_formatted_print()
452 format++; /* skip the '%' */ in php_formatted_print()
455 if (*format == '%') { in php_formatted_print()
457 format++; in php_formatted_print()
468 *format, format - Z_STRVAL_P(z_format))); in php_formatted_print()
469 if (isalpha((int)*format)) { in php_formatted_print()
474 argnum = php_sprintf_get_argnum(&format, &format_len); in php_formatted_print()
482 *format, format - Z_STRVAL_P(z_format))); in php_formatted_print()
483 for (;; format++, format_len--) { in php_formatted_print()
484 if (*format == ' ' || *format == '0') { in php_formatted_print()
485 padding = *format; in php_formatted_print()
486 } else if (*format == '-') { in php_formatted_print()
489 } else if (*format == '+') { in php_formatted_print()
491 } else if (*format == '\'') { in php_formatted_print()
493 format++; in php_formatted_print()
495 padding = *format; in php_formatted_print()
511 if (*format == '*') { in php_formatted_print()
512 format++; in php_formatted_print()
515 int width_argnum = php_sprintf_get_argnum(&format, &format_len); in php_formatted_print()
538 } else if (isdigit((int)*format)) { in php_formatted_print()
540 if ((width = php_sprintf_getnumber(&format, &format_len)) < 0) { in php_formatted_print()
551 if (*format == '.') { in php_formatted_print()
552 format++; in php_formatted_print()
555 if (*format == '*') { in php_formatted_print()
556 format++; in php_formatted_print()
559 int prec_argnum = php_sprintf_get_argnum(&format, &format_len); in php_formatted_print()
583 } else if (isdigit((int)*format)) { in php_formatted_print()
584 if ((precision = php_sprintf_getnumber(&format, &format_len)) < 0) { in php_formatted_print()
599 if (*format == 'l') { in php_formatted_print()
600 format++; in php_formatted_print()
603 PRINTF_DEBUG(("sprintf: format character='%c'\n", *format)); in php_formatted_print()
614 && *format != 'g' && *format != 'G' && *format != 'h' && *format != 'H') { in php_formatted_print()
621 switch (*format) { in php_formatted_print()
660 *format, always_sign in php_formatted_print()
710 zend_value_error("Unknown format specifier \"%c\"", *format); in php_formatted_print()
713 format++; in php_formatted_print()
761 char *format; in PHP_FUNCTION() local
767 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
771 result = php_formatted_print(format, format_len, args, argc, 1); in PHP_FUNCTION()
783 char *format; in PHP_FUNCTION() local
790 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
796 result = php_formatted_print(format, format_len, args, argc, -1); in PHP_FUNCTION()
810 char *format; in PHP_FUNCTION() local
816 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
820 result = php_formatted_print(format, format_len, args, argc, 1); in PHP_FUNCTION()
835 char *format; in PHP_FUNCTION() local
842 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
848 result = php_formatted_print(format, format_len, args, argc, -1); in PHP_FUNCTION()
863 char *format; in PHP_FUNCTION() local
871 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
877 result = php_formatted_print(format, format_len, args, argc, 2); in PHP_FUNCTION()
893 char *format; in PHP_FUNCTION() local
902 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
910 result = php_formatted_print(format, format_len, args, argc, -1); in PHP_FUNCTION()