/PHP-8.0/ext/intl/tests/ |
H A D | formatter_format_and_parse_errors.phpt | 8 $o = new NumberFormatter('en_US', NumberFormatter::PATTERN_DECIMAL); 34 /* With NumberFormatter::TYPE_CURRENCY */ 36 numfmt_format($o, $num, NumberFormatter::TYPE_CURRENCY); 41 $o->format($num, NumberFormatter::TYPE_CURRENCY); 46 numfmt_parse($o, $str, NumberFormatter::TYPE_CURRENCY); 51 $o->parse($str, NumberFormatter::TYPE_CURRENCY); 59 NumberFormatter::format(): Argument #2 ($type) must be a NumberFormatter::TYPE_* constant 60 numfmt_parse(): Argument #3 ($type) must be a NumberFormatter::TYPE_* constant 61 NumberFormatter::parse(): Argument #2 ($type) must be a NumberFormatter::TYPE_* constant 63 NumberFormatter::format(): Argument #2 ($type) cannot be NumberFormatter::TYPE_CURRENCY constant, u… [all …]
|
H A D | formatter_get_set_symbol2.phpt | 18 …'DECIMAL_SEPARATOR_SYMBOL' => array( NumberFormatter::DECIMAL_SEPARATOR_SYMBOL, '_._', 12345.12345… 21 …'PERCENT_SYMBOL' => array( NumberFormatter::PERCENT_SYMBOL, '_%_', 12345.123456, NumberFormatter::… 22 …'ZERO_DIGIT_SYMBOL' => array( NumberFormatter::ZERO_DIGIT_SYMBOL, '_ZD_', 12345.123456, NumberForm… 23 …'DIGIT_SYMBOL' => array( NumberFormatter::DIGIT_SYMBOL, '_DS_', 12345.123456, NumberFormatter::DEC… 24 …'MINUS_SIGN_SYMBOL' => array( NumberFormatter::MINUS_SIGN_SYMBOL, '_-_', -12345.123456, NumberForm… 25 …'PLUS_SIGN_SYMBOL' => array( NumberFormatter::PLUS_SIGN_SYMBOL, '_+_', 12345.123456, NumberFormatt… 26 …'CURRENCY_SYMBOL' => array( NumberFormatter::CURRENCY_SYMBOL, '_$_', 12345.123456, NumberFormatter… 30 …'PERMILL_SYMBOL' => array( NumberFormatter::PERMILL_SYMBOL, '_PS_', 12345.123456, NumberFormatter:… 31 …'PAD_ESCAPE_SYMBOL' => array( NumberFormatter::PAD_ESCAPE_SYMBOL, '_PE_', 12345.123456, NumberForm… 32 …'INFINITY_SYMBOL' => array( NumberFormatter::INFINITY_SYMBOL, '_IS_', 12345.123456, NumberFormatte… [all …]
|
H A D | bug59597_32.phpt | 2 Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer 9 $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); 10 $value = $formatter->parse('2147483647', \NumberFormatter::TYPE_INT32); 13 $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); 14 $value = $formatter->parse('2147483650', \NumberFormatter::TYPE_INT64);
|
H A D | bug59597_64.phpt | 2 Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer 9 $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); 10 $value = $formatter->parse('2147483647', \NumberFormatter::TYPE_INT32); 13 $formatter = new \NumberFormatter('en', \NumberFormatter::DECIMAL); 14 $value = $formatter->parse('2147483650', \NumberFormatter::TYPE_INT64);
|
H A D | bug48227.phpt | 2 Bug #48227 (NumberFormatter::format leaks memory) 8 $x = new NumberFormatter('en_US', NumberFormatter::DECIMAL); 19 NumberFormatter::format(): Argument #1 ($num) must be of type int|float, string given 22 NumberFormatter::format(): Argument #1 ($num) must be of type int|float, NumberFormatter given
|
H A D | bug53735.phpt | 2 Bug #53735 NumberFormatter returns NaN when converting float point 9 $fmt = numfmt_create("da_DK", \NumberFormatter::CURRENCY); 17 $fmt = new \NumberFormatter("de_DE", \NumberFormatter::DECIMAL); 20 $f = new NumberFormatter('hu_HU', NumberFormatter::PERCENT, '#,##0%');
|
H A D | formatter_format4.phpt | 22 NumberFormatter::PATTERN_DECIMAL => '##.#####################', 23 NumberFormatter::DECIMAL => '', 24 NumberFormatter::CURRENCY => '', 25 NumberFormatter::PERCENT => '', 26 NumberFormatter::SCIENTIFIC => '', 27 NumberFormatter::SPELLOUT => '@@@@@@@', 28 NumberFormatter::ORDINAL => '', 29 NumberFormatter::DURATION => '', 30 NumberFormatter::PATTERN_RULEBASED => '#####.###', 35 NumberFormatter::ORDINAL => '', [all …]
|
H A D | formatter_format5.phpt | 22 NumberFormatter::PATTERN_DECIMAL => '##.#####################', 23 NumberFormatter::DECIMAL => '', 24 NumberFormatter::CURRENCY => '', 25 NumberFormatter::PERCENT => '', 26 NumberFormatter::SCIENTIFIC => '', 27 NumberFormatter::SPELLOUT => '@@@@@@@', 28 NumberFormatter::ORDINAL => '', 29 NumberFormatter::DURATION => '', 30 NumberFormatter::PATTERN_RULEBASED => '#####.###', 35 NumberFormatter::ORDINAL => '', [all …]
|
H A D | formatter_format2.phpt | 21 NumberFormatter::PATTERN_DECIMAL => '##.#####################', 22 NumberFormatter::DECIMAL => '', 23 NumberFormatter::CURRENCY => '', 24 NumberFormatter::PERCENT => '', 25 NumberFormatter::SCIENTIFIC => '', 26 NumberFormatter::SPELLOUT => '@@@@@@@', 27 NumberFormatter::ORDINAL => '', 28 NumberFormatter::DURATION => '', 29 NumberFormatter::PATTERN_RULEBASED => '#####.###', 34 NumberFormatter::ORDINAL => '', [all …]
|
H A D | formatter_format3.phpt | 22 NumberFormatter::PATTERN_DECIMAL => '##.#####################', 23 NumberFormatter::DECIMAL => '', 24 NumberFormatter::CURRENCY => '', 25 NumberFormatter::PERCENT => '', 26 NumberFormatter::SCIENTIFIC => '', 27 NumberFormatter::SPELLOUT => '@@@@@@@', 28 NumberFormatter::ORDINAL => '', 29 NumberFormatter::DURATION => '', 30 NumberFormatter::PATTERN_RULEBASED => '#####.###', 35 NumberFormatter::ORDINAL => '', [all …]
|
H A D | formatter_format6.phpt | 22 NumberFormatter::PATTERN_DECIMAL => '##.#####################', 23 NumberFormatter::DECIMAL => '', 24 NumberFormatter::CURRENCY => '', 25 NumberFormatter::PERCENT => '', 26 NumberFormatter::SCIENTIFIC => '', 27 NumberFormatter::SPELLOUT => '@@@@@@@', 28 NumberFormatter::ORDINAL => '', 29 NumberFormatter::DURATION => '', 30 NumberFormatter::PATTERN_RULEBASED => '#####.###', 35 NumberFormatter::ORDINAL => '', [all …]
|
H A D | bug14562.phpt | 2 Bug #14562 NumberFormatter breaks when locale changes 12 $fmt = new NumberFormatter("de", NumberFormatter::DECIMAL ); 16 $fmt = new NumberFormatter("de", NumberFormatter::DECIMAL );
|
H A D | formatter_get_set_text_attribute.phpt | 19 'POSITIVE_PREFIX' => array( NumberFormatter::POSITIVE_PREFIX, '_+_', 12345.1234 ), 20 'POSITIVE_SUFFIX' => array( NumberFormatter::POSITIVE_SUFFIX, '_+_', 12345.1234 ), 21 'NEGATIVE_PREFIX' => array( NumberFormatter::NEGATIVE_PREFIX, '_-_', -12345.1234 ), 22 'NEGATIVE_SUFFIX' => array( NumberFormatter::NEGATIVE_SUFFIX, '_-_', -12345.1234 ), 25 // 'CURRENCY_CODE' => array( NumberFormatter::CURRENCY_CODE, '_C_', 12345.1234 ) 32 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL ); 39 if( $attr == NumberFormatter::PADDING_CHARACTER ) 40 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 ); 67 if( $attr == NumberFormatter::PADDING_CHARACTER ) 68 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 ); [all …]
|
H A D | formatter_get_set_text_attribute_var2.phpt | 19 'POSITIVE_PREFIX' => array( NumberFormatter::POSITIVE_PREFIX, '_+_', 12345.1234 ), 20 'POSITIVE_SUFFIX' => array( NumberFormatter::POSITIVE_SUFFIX, '_+_', 12345.1234 ), 21 'NEGATIVE_PREFIX' => array( NumberFormatter::NEGATIVE_PREFIX, '_-_', -12345.1234 ), 22 'NEGATIVE_SUFFIX' => array( NumberFormatter::NEGATIVE_SUFFIX, '_-_', -12345.1234 ), 25 // 'CURRENCY_CODE' => array( NumberFormatter::CURRENCY_CODE, '_C_', 12345.1234 ) 32 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL ); 39 if( $attr == NumberFormatter::PADDING_CHARACTER ) 40 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 ); 67 if( $attr == NumberFormatter::PADDING_CHARACTER ) 68 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 ); [all …]
|
H A D | formatter_format8.phpt | 21 NumberFormatter::PATTERN_DECIMAL => '##.#####################', 22 NumberFormatter::DECIMAL => '', 23 NumberFormatter::CURRENCY => '', 24 NumberFormatter::PERCENT => '', 25 NumberFormatter::SCIENTIFIC => '', 26 NumberFormatter::SPELLOUT => '@@@@@@@', 27 NumberFormatter::ORDINAL => '', 28 NumberFormatter::DURATION => '', 29 NumberFormatter::PATTERN_RULEBASED => '#####.###', 34 NumberFormatter::ORDINAL => '', [all …]
|
H A D | formatter_format7.phpt | 22 NumberFormatter::PATTERN_DECIMAL => '##.#####################', 23 NumberFormatter::DECIMAL => '', 24 NumberFormatter::CURRENCY => '', 25 NumberFormatter::PERCENT => '', 26 NumberFormatter::SCIENTIFIC => '', 27 NumberFormatter::SPELLOUT => '@@@@@@@', 28 NumberFormatter::ORDINAL => '', 29 NumberFormatter::DURATION => '', 30 NumberFormatter::PATTERN_RULEBASED => '#####.###', 35 NumberFormatter::ORDINAL => '', [all …]
|
H A D | bug74063.phpt | 2 Bug #74063 (NumberFormatter fails after retrieval from session) 9 $formatter = new NumberFormatter("en_GB", NumberFormatter::CURRENCY); 17 Serialization of 'NumberFormatter' is not allowed
|
H A D | formatter_parse.phpt | 18 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL ); 22 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL ); 23 $res_str .= ut_nfmt_parse( $fmt, "1.23", NumberFormatter::TYPE_INT32 ) . "\n"; 26 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL ); 28 $res_str .= ut_nfmt_parse( $fmt, "0.123 here", NumberFormatter::TYPE_DOUBLE, $pos ) . "\n";
|
H A D | formatter_fail.phpt | 23 return new NumberFormatter($l, $s); 31 return NumberFormatter::create($l, $s); 53 array("en_US", NumberFormatter::PATTERN_RULEBASED), 57 $fmt = new NumberFormatter(); 71 $fmt = NumberFormatter::create(); 78 $fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL); 80 $fmt->__construct('en_US', NumberFormatter::DECIMAL); 98 ArgumentCountError: NumberFormatter::__construct() expects at least 2 arguments, 0 given in %s on l… 104 ArgumentCountError: NumberFormatter::create() expects at least 2 arguments, 0 given in %s on line %d 107 Error: NumberFormatter object is already constructed in %s on line %d [all …]
|
H A D | bug81019.phpt | 2 Bug #81019: Unable to clone NumberFormatter after failed parse() 6 $fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL);
|
H A D | bug67052-win32.phpt | 2 Bug #67052 - NumberFormatter::parse() resets LC_NUMERIC setting 16 $fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
|
H A D | bug67052.phpt | 2 Bug #67052 - NumberFormatter::parse() resets LC_NUMERIC setting 21 $fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
|
H A D | formatter_clone_bad_obj.phpt | 8 class A extends NumberFormatter { 20 string(42) "Cannot clone unconstructed NumberFormatter"
|
/PHP-8.0/ext/intl/formatter/ |
H A D | formatter_functions_arginfo.h | 10 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 16 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 23 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 29 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 36 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 42 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 47 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 53 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 62 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) 67 ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0) [all …]
|
H A D | formatter.stub.php | 5 class NumberFormatter class 10 * @return NumberFormatter|null 19 public function format(int|float $num, int $type = NumberFormatter::TYPE_DEFAULT) {} 26 …public function parse(string $string, int $type = NumberFormatter::TYPE_DOUBLE, &$offset = null) {}
|