Lines Matching refs:format

377 int php_sprintf_get_argnum(char **format, size_t *format_len) {  in php_sprintf_get_argnum()  argument
378 char *temppos = *format; in php_sprintf_get_argnum()
384 int argnum = php_sprintf_getnumber(format, format_len); in php_sprintf_get_argnum()
390 (*format)++; /* skip the '$' */ in php_sprintf_get_argnum()
423 php_formatted_print(char *format, size_t format_len, zval *args, int argc, int nb_additional_parame… in php_formatted_print() argument
441 temppos = memchr(format, '%', format_len); in php_formatted_print()
443 php_sprintf_appendchars(&result, &outpos, format, format_len); in php_formatted_print()
445 } else if (temppos != format) { in php_formatted_print()
446 php_sprintf_appendchars(&result, &outpos, format, temppos - format); in php_formatted_print()
447 format_len -= temppos - format; in php_formatted_print()
448 format = temppos; in php_formatted_print()
450 format++; /* skip the '%' */ in php_formatted_print()
453 if (*format == '%') { in php_formatted_print()
455 format++; in php_formatted_print()
466 *format, format - Z_STRVAL_P(z_format))); in php_formatted_print()
467 if (isalpha((int)*format)) { in php_formatted_print()
472 argnum = php_sprintf_get_argnum(&format, &format_len); in php_formatted_print()
480 *format, format - Z_STRVAL_P(z_format))); in php_formatted_print()
481 for (;; format++, format_len--) { in php_formatted_print()
482 if (*format == ' ' || *format == '0') { in php_formatted_print()
483 padding = *format; in php_formatted_print()
484 } else if (*format == '-') { in php_formatted_print()
487 } else if (*format == '+') { in php_formatted_print()
489 } else if (*format == '\'') { in php_formatted_print()
491 format++; in php_formatted_print()
493 padding = *format; in php_formatted_print()
509 if (*format == '*') { in php_formatted_print()
510 format++; in php_formatted_print()
513 int width_argnum = php_sprintf_get_argnum(&format, &format_len); in php_formatted_print()
536 } else if (isdigit((int)*format)) { in php_formatted_print()
538 if ((width = php_sprintf_getnumber(&format, &format_len)) < 0) { in php_formatted_print()
549 if (*format == '.') { in php_formatted_print()
550 format++; in php_formatted_print()
553 if (*format == '*') { in php_formatted_print()
554 format++; in php_formatted_print()
557 int prec_argnum = php_sprintf_get_argnum(&format, &format_len); in php_formatted_print()
581 } else if (isdigit((int)*format)) { in php_formatted_print()
582 if ((precision = php_sprintf_getnumber(&format, &format_len)) < 0) { in php_formatted_print()
597 if (*format == 'l') { in php_formatted_print()
598 format++; in php_formatted_print()
601 PRINTF_DEBUG(("sprintf: format character='%c'\n", *format)); in php_formatted_print()
612 && *format != 'g' && *format != 'G' && *format != 'h' && *format != 'H') { in php_formatted_print()
619 switch (*format) { in php_formatted_print()
658 *format, always_sign in php_formatted_print()
708 zend_value_error("Unknown format specifier \"%c\"", *format); in php_formatted_print()
711 format++; in php_formatted_print()
759 char *format; in PHP_FUNCTION() local
765 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
769 result = php_formatted_print(format, format_len, args, argc, 1); in PHP_FUNCTION()
781 char *format; in PHP_FUNCTION() local
788 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
794 result = php_formatted_print(format, format_len, args, argc, -1); in PHP_FUNCTION()
808 char *format; in PHP_FUNCTION() local
814 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
818 result = php_formatted_print(format, format_len, args, argc, 1); in PHP_FUNCTION()
833 char *format; in PHP_FUNCTION() local
840 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
846 result = php_formatted_print(format, format_len, args, argc, -1); in PHP_FUNCTION()
861 char *format; in PHP_FUNCTION() local
869 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
875 result = php_formatted_print(format, format_len, args, argc, 2); in PHP_FUNCTION()
891 char *format; in PHP_FUNCTION() local
900 Z_PARAM_STRING(format, format_len) in PHP_FUNCTION()
908 result = php_formatted_print(format, format_len, args, argc, -1); in PHP_FUNCTION()