Lines Matching refs:fmt
16 $fmt = ut_msgfmt_create( "en_US", "{0,number} monkeys on {1,number} trees" );
19 $res_str .= "Default pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
20 $res_str .= "Formatting result: " . ut_msgfmt_format( $fmt, array(123, 456) ) . "\n";
24 $res = ut_msgfmt_set_pattern( $fmt, $pattern );
26 … $res_str .= ut_msgfmt_get_error_message( $fmt ) . " (" . ut_msgfmt_get_error_code( $fmt ) . ")\n";
29 $res = ut_msgfmt_get_pattern( $fmt );
31 … $res_str .= ut_msgfmt_get_error_message( $fmt ) . " (" . ut_msgfmt_get_error_code( $fmt ) . ")\n";
32 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
33 $res_str .= "Formatted message: " . ut_msgfmt_format( $fmt, array(123, 456) ) . "\n";
35 ut_msgfmt_set_pattern($fmt, str_repeat($pattern, 10));
36 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
37 $res_str .= "Formatted message: " . ut_msgfmt_format( $fmt, array(123, 456) ) . "\n";
38 $res = ut_msgfmt_set_pattern($fmt, "{0,number} trees hosting {1,number monkeys");
40 … $res_str .= ut_msgfmt_get_error_message( $fmt ) . " (" . ut_msgfmt_get_error_code( $fmt ) . ")\n";