Lines Matching refs:rules
213 errln("Unable to access the rules string!");
218 errln("Formatter constructed from the original rules should be semantically equivalent to the original!");
224 errln("Formatter constructed from the original rules should be semantically equivalent to the original!");
233 UnicodeString rules = formatter->getRules();
235 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status);
238 errln("Formatter constructed from rules obtained by getRules should be semantically equivalent to the original!");
358 * Perform a simple spot check on the parsing going into an infinite loop for alternate rules.
362 // We're trying to test the plural rules where there are different prefixes.
363 UnicodeString rules("%spellout-cardinal-feminine-genitive:"
379 RuleBasedNumberFormat formatter(rules, Locale("ru"), pError, status);
441 // Since we only provide rules for the numbers from 2 to 10, we know
1686 logln(" testing spellout-cardinal-neuter rules");
1690 errln("Can't test spellout-cardinal-neuter rules");
1708 logln("testing year rules");
1712 errln("Can't test year rules");
1774 UnicodeString rules("%main:0:no;1:some;100:a lot;1000:tons;\n"
1779 RuleBasedNumberFormat formatter(rules, perror, status);
1803 RuleBasedNumberFormat formatter0(rules, loc, perror, status);
1888 RuleBasedNumberFormat fmt(rules, loc, perror, status);
1898 RuleBasedNumberFormat fmt(rules, loc, perror, status);
2007 UnicodeString rules("=#,##0=;1,000,000: <##0.###< million;");
2011 new RuleBasedNumberFormat(rules, Locale::getUS(), parse_error, status);
2100 // We're trying to test the plural rules.
2196 // Test the default behavior when the rules are undefined.
2272 {"1000000000000000000", "1,000,000,000,000,000,000"}, // The rules don't go to 1 quintillion yet