Home
last modified time | relevance | path

Searched refs:newRules (Results 1 – 12 of 12) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DG7CollationTest.java71 String newRules = " & Z < p, P"; in TestDemo1() local
72 newRules = baseRules + newRules; in TestDemo1()
75 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
77 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo1()
98 String newRules = "& C < ch , cH, Ch, CH"; in TestDemo2() local
99 newRules = baseRules + newRules; in TestDemo2()
102 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
104 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo2()
126 String newRules = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
127 newRules = baseRules + newRules; in TestDemo3()
[all …]
DCollationMonkeyTest.java207 String newRules = " & z < "; in TestRules() local
208 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
211 myCollation = new RuleBasedCollator(newRules); in TestRules()
221 newRules = ""; in TestRules()
222 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
224 myCollation = new RuleBasedCollator(newRules); in TestRules()
DCollationFrozenMonkeyTest.java232 String newRules = " & z < "; in TestRules() local
233 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
236 myCollation = new RuleBasedCollator(newRules); in TestRules()
246 newRules = ""; in TestRules()
247 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
249 myCollation = new RuleBasedCollator(newRules); in TestRules()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DG7CollationTest.java70 String newRules = " & Z < p, P"; in TestDemo1() local
71 newRules = baseRules + newRules; in TestDemo1()
74 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
76 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo1()
97 String newRules = "& C < ch , cH, Ch, CH"; in TestDemo2() local
98 newRules = baseRules + newRules; in TestDemo2()
101 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
103 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo2()
125 String newRules = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
126 newRules = baseRules + newRules; in TestDemo3()
[all …]
DCollationFrozenMonkeyTest.java231 String newRules = " & z < "; in TestRules() local
232 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
235 myCollation = new RuleBasedCollator(newRules); in TestRules()
245 newRules = ""; in TestRules()
246 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
248 myCollation = new RuleBasedCollator(newRules); in TestRules()
DCollationMonkeyTest.java206 String newRules = " & z < "; in TestRules() local
207 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
210 myCollation = new RuleBasedCollator(newRules); in TestRules()
220 newRules = ""; in TestRules()
221 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
223 myCollation = new RuleBasedCollator(newRules); in TestRules()
/external/icu/icu4c/source/test/intltest/
Dg7coll.cpp160 UnicodeString newRules(" & Z < p, P"); in TestDemo1() local
161 newRules.insert(0, baseRules); in TestDemo1()
162 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1()
194 UnicodeString newRules("& C < ch , cH, Ch, CH"); in TestDemo2() local
195 newRules.insert(0, baseRules); in TestDemo2()
196 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2()
228 UnicodeString newRules = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
229 newRules.insert(0, baseRules); in TestDemo3()
230 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3()
263 UnicodeString newRules = " & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-' "; in TestDemo4() local
[all …]
Dmnkytst.cpp224 UnicodeString newRules(" & z < "); in TestRules() local
225 newRules.append((UChar)0x00e4); in TestRules()
226 newRules.insert(0, baseRules); in TestRules()
227 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestRules()
238 newRules.remove(); in TestRules()
239 newRules.append(" & z < a"); in TestRules()
240 newRules.append((UChar)0x0308); in TestRules()
241 newRules.insert(0, baseRules); in TestRules()
242 myCollation = new RuleBasedCollator(newRules, status); in TestRules()
Dplurults.cpp177 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI() local
179 if ( !checkEqual(*newRules, result, max) ) { in testAPI()
206 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI() local
207 if ( !checkEqual(*newRules, cRuleResult, 12) ) { in testAPI()
211 newRules.adoptInstead(test->createRules(complexRule2, status)); in testAPI()
212 if ( !checkEqual(*newRules, cRuleResult, 12) ) { in testAPI()
221 newRules.adoptInstead(test->createRules(decimalRule, status)); in testAPI()
229 if ((newRules->select(fData[i])== KEYWORD_A) != isKeywordA[i]) { in testAPI()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuite.java71 public void setRules(List<Rule> newRules) { in setRules() argument
73 rules.addAll(newRules); in setRules()
/external/icu/icu4c/source/i18n/
Dplurrule.cpp125 PluralRules *newRules = new PluralRules(status); in createRules() local
126 if (U_SUCCESS(status) && newRules == NULL) { in createRules()
129 parser.parse(description, newRules, status); in createRules()
131 delete newRules; in createRules()
132 newRules = NULL; in createRules()
134 return newRules; in createRules()
Ddecimfmtimpl.cpp1090 PluralRules *newRules = NULL; in updateFormattingPluralRules() local
1092 newRules = PluralRules::forLocale(fSymbols->getLocale(), status); in updateFormattingPluralRules()
1100 if (fRules != newRules) { in updateFormattingPluralRules()
1102 fRules = newRules; in updateFormattingPluralRules()