Home
last modified time | relevance | path

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

123

/PHP-5.5/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.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 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 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 Dformatter_format5.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_get_set_text_attribute.phpt18 'POSITIVE_PREFIX' => array( NumberFormatter::POSITIVE_PREFIX, '_+_', 12345.1234 ),
19 'POSITIVE_SUFFIX' => array( NumberFormatter::POSITIVE_SUFFIX, '_+_', 12345.1234 ),
20 'NEGATIVE_PREFIX' => array( NumberFormatter::NEGATIVE_PREFIX, '_-_', -12345.1234 ),
23 'POSITIVE_PREFIX-2' => array( NumberFormatter::POSITIVE_PREFIX, $long_str, 12345.1234 ),
24 // 'CURRENCY_CODE' => array( NumberFormatter::CURRENCY_CODE, '_C_', 12345.1234 )
31 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
38 if( $attr == NumberFormatter::PADDING_CHARACTER )
39 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 );
66 if( $attr == NumberFormatter::PADDING_CHARACTER )
67 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 );
[all …]
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_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_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_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.phpt17 return new NumberFormatter($l, $s);
20 return NumberFormatter::create($l, $s);
33 array("en_US", NumberFormatter::PATTERN_RULEBASED),
36 $fmt = new NumberFormatter();
40 $fmt = NumberFormatter::create();
54 Warning: NumberFormatter::__construct() expects at least 2 parameters, 0 given in %s on line %d
60 Warning: NumberFormatter::create() expects at least 2 parameters, 0 given in %s on line %d
66 Warning: NumberFormatter::__construct() expects parameter 1 to be string, array given in %s on line…
69 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 Dbug67052.phpt2 Bug #67052 - NumberFormatter::parse() resets LC_NUMERIC setting
16 $fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
H A Dsymfony_format_type_int32_intl5.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:1.1000000000000001;i:2;s:7…
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT32);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_int64_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_INT64);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_int64_intl2.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:1.1000000000000001;i:2;s:1…
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT64);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_int64_intl3.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:2147483648;i:2;s:13:"2,147…
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT64);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_int64_intl4.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:-2147483649;i:2;s:14:"-2,1…
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT64);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_int64_intl5.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;i:1;i:2;s:7:"SFD1.00";}');
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT64);
23 object(NumberFormatter)#1 (0) {
H A Dsymfony_format_type_int64_intl6.phpt10 $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:1.1000000000000001;i:2;s:7…
15 $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT64);
23 object(NumberFormatter)#1 (0) {
/PHP-5.5/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 40 milliseconds

123