Lines Matching refs:fmt
32 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
40 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 );
43 $def_val = ut_nfmt_get_text_attribute( $fmt, $attr );
45 $res_str .= "get_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
48 …$res_str .= "Formatting number with default value: " . ut_nfmt_format( $fmt, $test_number ) . "\n…
51 $res_val = ut_nfmt_set_text_attribute( $fmt, $attr, $new_val );
53 $res_str .= "set_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
56 $new_val_check = ut_nfmt_get_text_attribute( $fmt, $attr );
58 … $res_str .= "Formatting number with new value: " . ut_nfmt_format( $fmt, $test_number ) . "\n";
65 ut_nfmt_set_text_attribute( $fmt, $attr, $def_val );
68 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 );
72 $fmt = ut_nfmt_create( "uk_UA", NumberFormatter::CURRENCY );
74 ut_nfmt_get_text_attribute( $fmt, NumberFormatter::CURRENCY_CODE ) );