Lines Matching refs:fmt
31 $fmt = ut_nfmt_create( "en_US", NumberFormatter::DECIMAL );
39 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 21 );
42 $def_val = ut_nfmt_get_text_attribute( $fmt, $attr );
44 $res_str .= "get_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
47 …$res_str .= "Formatting number with default value: " . ut_nfmt_format( $fmt, $test_number ) . "\n…
50 $res_val = ut_nfmt_set_text_attribute( $fmt, $attr, $new_val );
52 $res_str .= "set_text_attribute() error: " . ut_nfmt_get_error_message( $fmt ) . "\n";
55 $new_val_check = ut_nfmt_get_text_attribute( $fmt, $attr );
57 … $res_str .= "Formatting number with new value: " . ut_nfmt_format( $fmt, $test_number ) . "\n";
64 ut_nfmt_set_text_attribute( $fmt, $attr, $def_val );
67 ut_nfmt_set_attribute( $fmt, NumberFormatter::FORMAT_WIDTH, 0 );
71 $fmt = ut_nfmt_create( "uk_UA", NumberFormatter::CURRENCY );
73 ut_nfmt_get_text_attribute( $fmt, NumberFormatter::CURRENCY_CODE ) );