Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DG7CollationTest.java76 String newRules = " & Z < p, P"; in TestDemo1() local
77 newRules = baseRules + newRules; in TestDemo1()
80 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
82 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo1()
103 String newRules = "& C < ch , cH, Ch, CH"; in TestDemo2() local
104 newRules = baseRules + newRules; in TestDemo2()
107 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
109 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo2()
131 String newRules = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
132 newRules = baseRules + newRules; in TestDemo3()
[all …]
DCollationMonkeyTest.java212 String newRules = " & z < "; in TestRules() local
213 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
216 myCollation = new RuleBasedCollator(newRules); in TestRules()
226 newRules = ""; in TestRules()
227 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
229 myCollation = new RuleBasedCollator(newRules); in TestRules()
DCollationFrozenMonkeyTest.java237 String newRules = " & z < "; in TestRules() local
238 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
241 myCollation = new RuleBasedCollator(newRules); in TestRules()
251 newRules = ""; in TestRules()
252 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
254 myCollation = new RuleBasedCollator(newRules); in TestRules()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DG7CollationTest.java73 String newRules = " & Z < p, P"; in TestDemo1() local
74 newRules = baseRules + newRules; in TestDemo1()
77 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
79 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo1()
100 String newRules = "& C < ch , cH, Ch, CH"; in TestDemo2() local
101 newRules = baseRules + newRules; in TestDemo2()
104 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
106 errln("Fail to create RuleBasedCollator with rules:" + newRules); in TestDemo2()
128 String newRules = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
129 newRules = baseRules + newRules; in TestDemo3()
[all …]
DCollationFrozenMonkeyTest.java234 String newRules = " & z < "; in TestRules() local
235 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
238 myCollation = new RuleBasedCollator(newRules); in TestRules()
248 newRules = ""; in TestRules()
249 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
251 myCollation = new RuleBasedCollator(newRules); in TestRules()
DCollationMonkeyTest.java209 String newRules = " & z < "; in TestRules() local
210 newRules = baseRules + newRules + String.valueOf(0x00e4); in TestRules()
213 myCollation = new RuleBasedCollator(newRules); in TestRules()
223 newRules = ""; in TestRules()
224 newRules = baseRules + " & z < a" + String.valueOf(0x0308); in TestRules()
226 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.cpp179 LocalPointer<PluralRules> newRules(test->createRules(pluralTestData[i], status)); in testAPI() local
181 if ( !checkEqual(*newRules, result, max) ) { in testAPI()
208 LocalPointer<PluralRules> newRules(test->createRules(complexRule, status)); in testAPI() local
209 if ( !checkEqual(*newRules, cRuleResult, 12) ) { in testAPI()
213 newRules.adoptInstead(test->createRules(complexRule2, status)); in testAPI()
214 if ( !checkEqual(*newRules, cRuleResult, 12) ) { in testAPI()
223 newRules.adoptInstead(test->createRules(decimalRule, status)); in testAPI()
231 if ((newRules->select(fData[i])== KEYWORD_A) != isKeywordA[i]) { in testAPI()
/external/antlr/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/cldr/tools/java/org/unicode/cldr/tool/
DMakeTransliterator.java253 List<String> newRules = new ArrayList<String>(); in main() local
267 …em.out.println("Building transliterator for length " + lastSourceLength + " : " + newRules.size()); in main()
270 String rules = buildRules(coreRules, newRules, buffer); in main()
335 newRules.add(hackSource + " → " + bestTarget + " ; # " + targetUsingCore in main()
345 String rules = buildRules(coreRules, newRules, buffer); in main()
457 … private static String buildRules(String coreRules, List<String> newRules, StringBuilder buffer) { in buildRules() argument
468 for (int i = newRules.size() - 1; i >= 0; --i) { in buildRules()
469 buffer.append(newRules.get(i)); in buildRules()
DFindPluralDifferences.java85 PluralRules newRules = newPluralInfo.getPluralRules(); in diff() local
88 String newKeyword = newRules.select(i); in diff()
99 Set<String> newKeywords = newRules.getKeywords(); in diff()
/external/icu/icu4c/source/i18n/
Dplurrule.cpp143 LocalPointer<PluralRules> newRules(new PluralRules(status), status); in createRules() local
147 parser.parse(description, newRules.getAlias(), status); in createRules()
149 newRules.adoptInstead(nullptr); in createRules()
151 return newRules.orphan(); in createRules()