/PHP-5.5/ext/intl/tests/ |
H A D | formatter_get_set_symbol.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 | 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_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 | 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 | formatter_format5.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_get_set_text_attribute.phpt | 18 '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 D | formatter_format.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_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_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_get_set_attribute.phpt | 18 '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 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_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 | bug48227.phpt | 2 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 D | formatter_fail.phpt | 17 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 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 16 $fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
|
H A D | symfony_format_type_int32_intl5.phpt | 10 $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 D | symfony_format_type_int64_intl1.phpt | 10 $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 D | symfony_format_type_int64_intl2.phpt | 10 $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 D | symfony_format_type_int64_intl3.phpt | 10 $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 D | symfony_format_type_int64_intl4.phpt | 10 $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 D | symfony_format_type_int64_intl5.phpt | 10 $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 D | symfony_format_type_int64_intl6.phpt | 10 $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 D | formatter_api.php | 24 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 …]
|