Lines Matching refs:formatter
111 // none of these rules should crash the formatter
125 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(rule, Locale::getUS(), perr, status);
130 testfmt(formatter, 20, status);
131 testfmt(formatter, 1.23, status);
132 testfmt(formatter, -123, status);
133 testfmt(formatter, .123, status);
134 testfmt(formatter, 123, status);
140 delete formatter;
146 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status) {
148 formatter->format((const Formattable)val, us, status);
159 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status) {
161 formatter->format((const Formattable)(int32_t)val, us, status);