Lines Matching refs:NumberFormatter
20 'POSITIVE_PREFIX' => array( NumberFormatter::POSITIVE_PREFIX, '_+_', 12345.1234 ),
21 'POSITIVE_SUFFIX' => array( NumberFormatter::POSITIVE_SUFFIX, '_+_', 12345.1234 ),
22 'NEGATIVE_PREFIX' => array( NumberFormatter::NEGATIVE_PREFIX, '_-_', -12345.1234 ),
23 'NEGATIVE_SUFFIX' => array( NumberFormatter::NEGATIVE_SUFFIX, '_-_', -12345.1234 ),
24 'PADDING_CHARACTER' => array( NumberFormatter::PADDING_CHARACTER, '^', 12345.1234 ),
25 'POSITIVE_PREFIX-2' => array( NumberFormatter::POSITIVE_PREFIX, $long_str, 12345.1234 ),
26 // 'CURRENCY_CODE' => array( NumberFormatter::CURRENCY_CODE, '_C_', 12345.1234 )
27 // 'DEFAULT_RULESET' => array( NumberFormatter::DEFAULT_RULESET, '_DR_', 12345.1234 ),
28 // 'PUBLIC_RULESETS' => array( NumberFormatter::PUBLIC_RULESETS, '_PR_', 12345.1234 )
33 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
40 if( $attr == NumberFormatter::PADDING_CHARACTER )
41 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 );
68 if( $attr == NumberFormatter::PADDING_CHARACTER )
69 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 );
73 $fmt = ut_nfmt_create( "uk_UA", NumberFormatter::CURRENCY );
75 ut_nfmt_get_text_attribute( $fmt, NumberFormatter::CURRENCY_CODE ) );