Lines Matching refs:fmt
19 $fmt = ut_nfmt_create( "en_US", NumberFormatter::PATTERN_DECIMAL );
22 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
23 $res_str .= "Formatting result: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
26 $res = ut_nfmt_set_pattern( $fmt, "0.0" );
28 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
31 $res = ut_nfmt_get_pattern( $fmt );
33 … $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";
34 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
35 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
37 ut_nfmt_set_pattern($fmt, str_repeat('@', 200));
38 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
39 $res_str .= "Formatted number: " . ut_nfmt_format( $fmt, $test_value ) . "\n";
40 $res = ut_nfmt_set_pattern( $fmt, "0.0 .#.#.#");
43 $res_str .= ut_nfmt_get_error_message( $fmt ) . " (" . ut_nfmt_get_error_code( $fmt ) . ")\n";