Home
last modified time | relevance | path

Searched refs:NumberFormatter (Results 1 – 25 of 63) sorted by relevance

123

/PHP-7.1/ext/intl/tests/
H A Dformatter_get_set_symbol.phpt18 …'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 Dformatter_get_set_symbol2.phpt19 …'DECIMAL_SEPARATOR_SYMBOL' => array( NumberFormatter::DECIMAL_SEPARATOR_SYMBOL, '_._', 12345.12345…
22 …'PERCENT_SYMBOL' => array( NumberFormatter::PERCENT_SYMBOL, '_%_', 12345.123456, NumberFormatter::…
23 …'ZERO_DIGIT_SYMBOL' => array( NumberFormatter::ZERO_DIGIT_SYMBOL, '_ZD_', 12345.123456, NumberForm…
24 …'DIGIT_SYMBOL' => array( NumberFormatter::DIGIT_SYMBOL, '_DS_', 12345.123456, NumberFormatter::DEC…
25 …'MINUS_SIGN_SYMBOL' => array( NumberFormatter::MINUS_SIGN_SYMBOL, '_-_', -12345.123456, NumberForm…
26 …'PLUS_SIGN_SYMBOL' => array( NumberFormatter::PLUS_SIGN_SYMBOL, '_+_', 12345.123456, NumberFormatt…
27 …'CURRENCY_SYMBOL' => array( NumberFormatter::CURRENCY_SYMBOL, '_$_', 12345.123456, NumberFormatter
31 …'PERMILL_SYMBOL' => array( NumberFormatter::PERMILL_SYMBOL, '_PS_', 12345.123456, NumberFormatter:…
32 …'PAD_ESCAPE_SYMBOL' => array( NumberFormatter::PAD_ESCAPE_SYMBOL, '_PE_', 12345.123456, NumberForm…
33 …'INFINITY_SYMBOL' => array( NumberFormatter::INFINITY_SYMBOL, '_IS_', 12345.123456, NumberFormatte…
[all …]
H A Dbug59597_32.phpt2 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 Dbug59597_64.phpt2 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 Dformatter_format.phpt21 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 Dformatter_format2.phpt21 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 Dformatter_format3.phpt22 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 Dformatter_format4.phpt22 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 Dformatter_format5.phpt22 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 Dformatter_format6.phpt22 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 Dbug53735.phpt2 Bug #53735 NumberFormatter returns NaN when converting float point
9 $fmt = numfmt_create("da_DK", \NumberFormatter::CURRENCY);
18 $fmt = new \NumberFormatter("de_DE", \NumberFormatter::DECIMAL);
21 $f = new NumberFormatter('hu_HU', NumberFormatter::PERCENT, '#,##0%');
H A Dformatter_get_set_text_attribute.phpt19 '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 ),
24 'POSITIVE_PREFIX-2' => array( NumberFormatter::POSITIVE_PREFIX, $long_str, 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 Dformatter_get_set_text_attribute_var2.phpt19 '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 ),
24 'POSITIVE_PREFIX-2' => array( NumberFormatter::POSITIVE_PREFIX, $long_str, 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 Dformatter_format8.phpt21 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 Dformatter_format7.phpt22 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 Dformatter_get_set_attribute.phpt18 'PARSE_INT_ONLY' => array( NumberFormatter::PARSE_INT_ONLY, 1, 12345.123456 ),
19 'GROUPING_USED' => array( NumberFormatter::GROUPING_USED, 0, 12345.123456 ),
23 'INTEGER_DIGITS' => array( NumberFormatter::INTEGER_DIGITS, 7, 12345.123456 ),
26 'FRACTION_DIGITS' => array( NumberFormatter::FRACTION_DIGITS, 5, 12345.123456 ),
27 'MULTIPLIER' => array( NumberFormatter::MULTIPLIER, 2, 12345.123456 ),
28 'GROUPING_SIZE' => array( NumberFormatter::GROUPING_SIZE, 2, 12345.123456 ),
29 'ROUNDING_MODE' => array( NumberFormatter::ROUNDING_MODE, 1, 12345.123456 ),
31 'FORMAT_WIDTH' => array( NumberFormatter::FORMAT_WIDTH, 27, 12345.123456 ),
42 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
86 if( $attr != NumberFormatter::INTEGER_DIGITS && $attr != NumberFormatter::FRACTION_DIGITS
[all …]
H A Dbug14562.phpt2 Bug #14562 NumberFormatter breaks when locale changes
12 $fmt = new NumberFormatter("de", NumberFormatter::DECIMAL );
16 $fmt = new NumberFormatter("de", NumberFormatter::DECIMAL );
H A Dformatter_parse.phpt18 $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 Dbug48227.phpt2 Bug #48227 (NumberFormatter::format leaks memory)
8 $x = new NumberFormatter('en_US', NumberFormatter::DECIMAL);
20 Notice: Object of class NumberFormatter could not be converted to int in %s on line %d
H A Dformatter_fail.phpt23 return new NumberFormatter($l, $s);
30 return NumberFormatter::create($l, $s);
43 array("en_US", NumberFormatter::PATTERN_RULEBASED),
47 $fmt = new NumberFormatter();
55 $fmt = NumberFormatter::create();
69 ArgumentCountError: NumberFormatter::__construct() expects at least 2 parameters, 0 given in %s on …
75 Warning: NumberFormatter::create() expects at least 2 parameters, 0 given in %s on line %d
83 TypeError: NumberFormatter::__construct() expects parameter 1 to be string, array given in %s on li…
86 Warning: NumberFormatter::create() expects parameter 1 to be string, array given in %s on line %d
H A Dbug67052-win32.phpt2 Bug #67052 - NumberFormatter::parse() resets LC_NUMERIC setting
16 $fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
H A Dsymfony_format_type_int64_intl8.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:-2147483649;i:2;s:21:"(SFD…
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT64);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_double_intl1.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;i:1;i:2;s:1:"1";}');
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_DOUBLE);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_double_intl2.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:1.1000000000000001;i:2;s:3…
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_DOUBLE);
23 object(NumberFormatter)#1 (0) {
/PHP-7.1/ext/intl/doc/
H A Dformatter_api.php24 class NumberFormatter { class
148 * @return NumberFormatter
164 * @return NumberFormatter
348 * @param NumberFormatter $formatter The formatter resource
372 * @param NumberFormatter $formatter The formatter resource
383 * @param NumberFormatter $formatter The formatter resource
397 * @param NumberFormatter $formatter The formatter resource
410 * @param NumberFormatter $formatter The formatter resource
423 * @param NumberFormatter $formatter The formatter resource
436 * @param NumberFormatter $formatter The formatter resource
[all …]

Completed in 20 milliseconds

123