Lines Matching refs:pattern
9 * Get/set pattern.
19 $res_str .= "Default pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
22 // Set a new pattern.
23 $pattern = "{0,number} trees hosting {1,number} monkeys";
24 $res = ut_msgfmt_set_pattern( $fmt, $pattern );
28 // Check if the pattern has been changed.
32 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
35 ut_msgfmt_set_pattern($fmt, str_repeat($pattern, 10));
36 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
48 Default pattern: '{0,number} monkeys on {1,number} trees'
50 New pattern: '{0,number} trees hosting {1,number} monkeys'
52 New pattern: '{0,number} trees hosting {1,number} monkeys{0,number} trees hosting {1,number} monkey…