Lines Matching refs:createRules

159     LocalPointer<PluralRules> empRule(test->createRules(UNICODE_STRING_SIMPLE("a:n"), status));  in testAPI()
175 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI()
204 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI()
209 newRules.adoptInstead(test->createRules(complexRule2, status)); in testAPI()
219 newRules.adoptInstead(test->createRules(decimalRule, status)); in testAPI()
321 rules[totalRules]=test.createRules(testEquRules[i][totalRules], status); in testEquality()
355 PluralRules *pr = PluralRules::createRules(rule, status); in assertRuleKeyValue()
445 PluralRules *rules = PluralRules::createRules("a: n mod 10 in 5..8", status); in testWithin()
494 PluralRules *p = PluralRules::createRules(ruleDescription, status); in testGetAllKeywordValues()
658 LocalPointer<PluralRules> pr(PluralRules::createRules("s: n in 1,3,4,6", status)); in testSelect()
662 pr.adoptInstead(PluralRules::createRules("s: n not in 1,3,4,6", status)); in testSelect()
666 pr.adoptInstead(PluralRules::createRules("r: n in 1..4, 7..10, 14 .. 17;" in testSelect()
672 pr.adoptInstead(PluralRules::createRules("a: n mod 10 is 1; b: n mod 100 is 0 ", status)); in testSelect()
679 pr.adoptInstead(PluralRules::createRules("a: n is 1", status)); in testSelect()
683 pr.adoptInstead(PluralRules::createRules("a: n is 1 ", status)); in testSelect()
687 pr.adoptInstead(PluralRules::createRules("a: n is 1;", status)); in testSelect()
691 pr.adoptInstead(PluralRules::createRules("a: n is 1 ; ", status)); in testSelect()
697 …pr.adoptInstead(PluralRules::createRules("c: n in 5..15; b : n in 1..10 ;a:n in 10 .. 20", status… in testSelect()
704 pr.adoptInstead(PluralRules::createRules("a: n in 2..10; b: n within 8..15", status)); in testSelect()
710 …pr.adoptInstead(PluralRules::createRules("a: n in 2..10 and n in 4..12 and n not in 5..7", status)… in testSelect()
713 …pr.adoptInstead(PluralRules::createRules("a: n is 2 or n is 5 or n in 7..11 and n in 11..13", stat… in testSelect()
726 pr.adoptInstead(PluralRules::createRules("a: i is 123", status)); in testSelect()
730 pr.adoptInstead(PluralRules::createRules("a: f is 120", status)); in testSelect()
734 pr.adoptInstead(PluralRules::createRules("a: t is 12", status)); in testSelect()
738 pr.adoptInstead(PluralRules::createRules("a: v is 3", status)); in testSelect()
742 pr.adoptInstead(PluralRules::createRules("a: v is 0 and i is 123", status)); in testSelect()
747 pr.adoptInstead(PluralRules::createRules("a: n is 21; n: n is 22; i: n is 23; f: n is 24;" in testSelect()
761 pr.adoptInstead(PluralRules::createRules("not: n=31; and: n=32; or: n=33; mod: n=34;" in testSelect()
775 pr.adoptInstead(PluralRules::createRules("a: n is 1", status)); in testSelect()
777 pr.adoptInstead(PluralRules::createRules("a: n mod 10 is 2", status)); in testSelect()
779 pr.adoptInstead(PluralRules::createRules("a: n is not 1", status)); in testSelect()
781 pr.adoptInstead(PluralRules::createRules("a: n mod 3 is not 1", status)); in testSelect()
783 pr.adoptInstead(PluralRules::createRules("a: n in 2..5", status)); in testSelect()
785 pr.adoptInstead(PluralRules::createRules("a: n within 2..5", status)); in testSelect()
787 pr.adoptInstead(PluralRules::createRules("a: n not in 2..5", status)); in testSelect()
789 pr.adoptInstead(PluralRules::createRules("a: n not within 2..5", status)); in testSelect()
791 pr.adoptInstead(PluralRules::createRules("a: n mod 10 in 2..5", status)); in testSelect()
793 pr.adoptInstead(PluralRules::createRules("a: n mod 10 within 2..5", status)); in testSelect()
795 pr.adoptInstead(PluralRules::createRules("a: n mod 10 is 2 and n is not 12", status)); in testSelect()
797 pr.adoptInstead(PluralRules::createRules("a: n mod 10 in 2..3 or n mod 10 is 5", status)); in testSelect()
799 pr.adoptInstead(PluralRules::createRules("a: n mod 10 within 2..3 or n mod 10 is 5", status)); in testSelect()
801 pr.adoptInstead(PluralRules::createRules("a: n is 1 or n is 4 or n is 23", status)); in testSelect()
803 …pr.adoptInstead(PluralRules::createRules("a: n mod 2 is 1 and n is not 3 and n in 1..11", status)); in testSelect()
805 …pr.adoptInstead(PluralRules::createRules("a: n mod 2 is 1 and n is not 3 and n within 1..11", stat… in testSelect()
807 …pr.adoptInstead(PluralRules::createRules("a: n mod 2 is 1 or n mod 5 is 1 and n is not 6", status)… in testSelect()
809 … pr.adoptInstead(PluralRules::createRules("a: n in 2..5; b: n in 5..8; c: n mod 2 is 1", status)); in testSelect()
813 …pr.adoptInstead(PluralRules::createRules("a: n within 2..5; b: n within 5..8; c: n mod 2 is 1", st… in testSelect()
817 … pr.adoptInstead(PluralRules::createRules("a: n in 2, 4..6; b: n within 7..9,11..12,20", status)); in testSelect()
820 pr.adoptInstead(PluralRules::createRules("a: n in 2..8, 12 and n not in 4..6", status)); in testSelect()
822 pr.adoptInstead(PluralRules::createRules("a: n mod 10 in 2, 3,5..7 and n is not 12", status)); in testSelect()
824 pr.adoptInstead(PluralRules::createRules("a: n in 2..6, 3..7", status)); in testSelect()
828 pr.adoptInstead(PluralRules::createRules("a: n = 1..8 and n!= 2,3,4,5", status)); in testSelect()
831 pr.adoptInstead(PluralRules::createRules("a:n % 10 != 1", status)); in testSelect()
947 PluralRules *pr = PluralRules::createRules(UnicodeString(rules), status); in testParseErrors()