Lines Matching refs:fmt
18 $fmt = ut_nfmt_create( "en_US", NumberFormatter::PATTERN_DECIMAL );
21 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
22 $res_str .= "Formatting result: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
25 $res = ut_nfmt_set_pattern( $fmt, "0.0" );
27 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
30 $res = ut_nfmt_get_pattern( $fmt );
32 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
33 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
34 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
36 ut_nfmt_set_pattern($fmt, str_repeat('@', 200));
37 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
38 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";