Lines Matching refs:fmt
17 $fmt = ut_nfmt_create( "en_US", NumberFormatter::PATTERN_DECIMAL );
20 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
21 $res_str .= "Formatting result: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
24 $res = ut_nfmt_set_pattern( $fmt, "0.0" );
26 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
29 $res = ut_nfmt_get_pattern( $fmt );
31 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
32 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
33 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
35 ut_nfmt_set_pattern($fmt, str_repeat('@', 200));
36 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
37 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";