/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationRegressionTest.java | 28 import com.ibm.icu.text.RuleBasedCollator; 39 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446() 87 RuleBasedCollator c1 = null; in Test4051866() 90 c1 = new RuleBasedCollator(rules); in Test4051866() 97 RuleBasedCollator c2 = null; in Test4051866() 99 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866() 118 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636() 133 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238() 158 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734() 277 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736() [all …]
|
D | CollationIteratorTest.java | 28 import com.ibm.icu.text.RuleBasedCollator; 42 RuleBasedCollator c = null; in TestClearBuffers() 44 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers() 100 RuleBasedCollator coll = null; in TestMaxExpansion() 102 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 192 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 212 RuleBasedCollator en_us; in TestOffset() 214 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset() 257 RuleBasedCollator tailored = null; in TestOffset() 259 tailored = new RuleBasedCollator("& a < ch"); in TestOffset() [all …]
|
D | CollationMiscTest.java | 37 import com.ibm.icu.text.RuleBasedCollator; 75 RuleBasedCollator coll; in TestComposeDecompose() 77 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 118 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose() 253 RuleBasedCollator coll = null; in genericRulesStarterWithResult() 255 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() 264 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult() 266 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult() 282 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult() 378 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose() [all …]
|
D | G7CollationTest.java | 24 import com.ibm.icu.text.RuleBasedCollator; 69 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1() 72 RuleBasedCollator myCollation = null; in TestDemo1() 74 myCollation = new RuleBasedCollator(newRules); in TestDemo1() 96 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2() 99 RuleBasedCollator myCollation = null; in TestDemo2() 101 myCollation = new RuleBasedCollator(newRules); in TestDemo2() 124 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3() 127 RuleBasedCollator myCollation = null; in TestDemo3() 129 myCollation = new RuleBasedCollator(newRules); in TestDemo3() [all …]
|
D | CollationThaiTest.java | 30 import com.ibm.icu.text.RuleBasedCollator; 80 RuleBasedCollator coll = null; in TestCornerCases() 90 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray() 123 RuleBasedCollator coll = null; in TestDictionary() 222 RuleBasedCollator collator; in TestInvalidThai() 282 RuleBasedCollator collator; in TestReordering() 284 collator = (RuleBasedCollator)getThaiCollator(); in TestReordering() 294 collator = new RuleBasedCollator(rule); in TestReordering() 321 private static RuleBasedCollator m_collator_; 325 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator() [all …]
|
D | CollationAPITest.java | 35 import com.ibm.icu.text.RuleBasedCollator; 259 RuleBasedCollator col3 = null; in TestDuplicate() 261 col3 = new RuleBasedCollator(ruleset); in TestDuplicate() 267 col3 = (RuleBasedCollator)col1; in TestDuplicate() 289 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter() 293 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter() 295 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter() 530 String colrules = ((RuleBasedCollator)col).getRules(); 531 String junkrules = ((RuleBasedCollator)junk).getRules(); 554 RuleBasedCollator col1 = null, col2 = null, col3 = null, col4 = null; [all …]
|
D | CollationDummyTest.java | 28 import com.ibm.icu.text.RuleBasedCollator; 172 private RuleBasedCollator myCollation; 181 myCollation = new RuleBasedCollator(ruleset); in init() 318 newCollation = new RuleBasedCollator(rules); in TestSurrogates() 370 myColl = new RuleBasedCollator(rule); in TestVariableTop() 378 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop() 379 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop() 381 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop() 462 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401() 463 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401() [all …]
|
D | UCAConformanceTest.java | 27 import com.ibm.icu.text.RuleBasedCollator; 39 UCA = (RuleBasedCollator) Collator.getInstance(ULocale.ROOT); in init() 43 private RuleBasedCollator UCA; 44 private RuleBasedCollator rbUCA; 112 private void setCollNonIgnorable(RuleBasedCollator coll) { in setCollNonIgnorable() 122 private void setCollShifted(RuleBasedCollator coll) { in setCollShifted() 136 rbUCA = new RuleBasedCollator(ucarules); in initRbUCA() 181 private void conformanceTest(RuleBasedCollator coll) { in conformanceTest()
|
D | CollationCreationMethodTest.java | 20 import com.ibm.icu.text.RuleBasedCollator; 49 RuleBasedCollator localeCollator; in TestRuleVsLocaleCreationMonkey() 50 RuleBasedCollator ruleCollator; in TestRuleVsLocaleCreationMonkey() 60 localeCollator = (RuleBasedCollator)Collator.getInstance(locale); in TestRuleVsLocaleCreationMonkey() 62 ruleCollator = new RuleBasedCollator(localeCollator.getRules()); in TestRuleVsLocaleCreationMonkey()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationRegressionTest.java | 29 import android.icu.text.RuleBasedCollator; 40 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446() 88 RuleBasedCollator c1 = null; in Test4051866() 91 c1 = new RuleBasedCollator(rules); in Test4051866() 98 RuleBasedCollator c2 = null; in Test4051866() 100 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866() 119 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636() 134 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238() 159 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734() 278 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736() [all …]
|
D | CollationIteratorTest.java | 29 import android.icu.text.RuleBasedCollator; 43 RuleBasedCollator c = null; in TestClearBuffers() 45 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers() 101 RuleBasedCollator coll = null; in TestMaxExpansion() 103 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 193 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 213 RuleBasedCollator en_us; in TestOffset() 215 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset() 258 RuleBasedCollator tailored = null; in TestOffset() 260 tailored = new RuleBasedCollator("& a < ch"); in TestOffset() [all …]
|
D | CollationMiscTest.java | 38 import android.icu.text.RuleBasedCollator; 76 RuleBasedCollator coll; in TestComposeDecompose() 78 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 119 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose() 254 RuleBasedCollator coll = null; in genericRulesStarterWithResult() 256 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() 265 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult() 267 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult() 283 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult() 379 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose() [all …]
|
D | G7CollationTest.java | 25 import android.icu.text.RuleBasedCollator; 70 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1() 73 RuleBasedCollator myCollation = null; in TestDemo1() 75 myCollation = new RuleBasedCollator(newRules); in TestDemo1() 97 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2() 100 RuleBasedCollator myCollation = null; in TestDemo2() 102 myCollation = new RuleBasedCollator(newRules); in TestDemo2() 125 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3() 128 RuleBasedCollator myCollation = null; in TestDemo3() 130 myCollation = new RuleBasedCollator(newRules); in TestDemo3() [all …]
|
D | CollationThaiTest.java | 31 import android.icu.text.RuleBasedCollator; 81 RuleBasedCollator coll = null; in TestCornerCases() 91 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray() 124 RuleBasedCollator coll = null; in TestDictionary() 223 RuleBasedCollator collator; in TestInvalidThai() 283 RuleBasedCollator collator; in TestReordering() 285 collator = (RuleBasedCollator)getThaiCollator(); in TestReordering() 295 collator = new RuleBasedCollator(rule); in TestReordering() 322 private static RuleBasedCollator m_collator_; 326 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator() [all …]
|
D | CollationAPITest.java | 36 import android.icu.text.RuleBasedCollator; 260 RuleBasedCollator col3 = null; in TestDuplicate() 262 col3 = new RuleBasedCollator(ruleset); in TestDuplicate() 268 col3 = (RuleBasedCollator)col1; in TestDuplicate() 290 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter() 294 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter() 296 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter() 531 String colrules = ((RuleBasedCollator)col).getRules(); 532 String junkrules = ((RuleBasedCollator)junk).getRules(); 555 RuleBasedCollator col1 = null, col2 = null, col3 = null, col4 = null; [all …]
|
D | CollationDummyTest.java | 29 import android.icu.text.RuleBasedCollator; 173 private RuleBasedCollator myCollation; 182 myCollation = new RuleBasedCollator(ruleset); in init() 319 newCollation = new RuleBasedCollator(rules); in TestSurrogates() 371 myColl = new RuleBasedCollator(rule); in TestVariableTop() 379 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop() 380 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop() 382 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop() 463 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401() 464 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401() [all …]
|
D | UCAConformanceTest.java | 28 import android.icu.text.RuleBasedCollator; 40 UCA = (RuleBasedCollator) Collator.getInstance(ULocale.ROOT); in init() 44 private RuleBasedCollator UCA; 45 private RuleBasedCollator rbUCA; 113 private void setCollNonIgnorable(RuleBasedCollator coll) { in setCollNonIgnorable() 123 private void setCollShifted(RuleBasedCollator coll) { in setCollShifted() 137 rbUCA = new RuleBasedCollator(ucarules); in initRbUCA() 182 private void conformanceTest(RuleBasedCollator coll) { in conformanceTest()
|
/external/icu/icu4c/source/test/intltest/ |
D | regcoll.cpp | 27 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationRegressionTest() 104 LocalPointer<RuleBasedCollator> c1(new RuleBasedCollator(rules, status), status); in Test4051866() 111 LocalPointer<RuleBasedCollator> c2(new RuleBasedCollator(c1->getRules(), status), status); in Test4051866() 145 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054238() 187 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054734() 204 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054736() 272 RuleBasedCollator *c = NULL; in Test4059820() 275 c = new RuleBasedCollator(rules, status); in Test4059820() 308 RuleBasedCollator *c = NULL; in Test4060154() 310 c = new RuleBasedCollator(rules, status); in Test4060154() [all …]
|
D | g7coll.cpp | 114 const UnicodeString &rules = ((RuleBasedCollator*)myCollation.getAlias())->getRules(); in TestG7Locales() 123 RuleBasedCollator *tblColl1 = new RuleBasedCollator(rules, status); in TestG7Locales() 159 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo1() 162 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1() 193 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo2() 196 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2() 227 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo3() 230 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3() 262 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo4() 265 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo4()
|
D | itercoll.cpp | 29 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationIteratorTest() 95 RuleBasedCollator *c1 = NULL; in TestPrevious() 96 c1 = new RuleBasedCollator( in TestPrevious() 113 RuleBasedCollator *c2 = NULL; in TestPrevious() 114 c2 = new RuleBasedCollator((UnicodeString)"&a < b < c/abd < d", status); in TestPrevious() 130 RuleBasedCollator *c3 = NULL; in TestPrevious() 131 c3 = new RuleBasedCollator((UnicodeString)"&a < b < c/aba < d < z < ch", status); in TestPrevious() 153 iter = ((RuleBasedCollator*)c4)->createCollationElementIterator(source); in TestPrevious() 161 iter = ((RuleBasedCollator*)c5)->createCollationElementIterator(source); in TestPrevious() 224 RuleBasedCollator tailored("& a < ch", status); in TestOffset() [all …]
|
D | srchtest.h | 34 RuleBasedCollator *m_en_us_; 35 RuleBasedCollator *m_fr_fr_; 36 RuleBasedCollator *m_de_; 37 RuleBasedCollator *m_es_; 41 RuleBasedCollator * getCollator(const char *collator);
|
D | apicoll.cpp | 165 RuleBasedCollator *rcol = (RuleBasedCollator *)Collator::createInstance("da_DK", in TestProperty() 210 doAssert(((RuleBasedCollator *)junk)->getRules().isEmpty(), in TestProperty() 237 RuleBasedCollator *col1, *col2, *col3, *col4; in TestRuleBasedColl() 243 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl() 253 col2 = new RuleBasedCollator(ruleset2, status); in TestRuleBasedColl() 264 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl() 275 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl() 292 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl() 320 RuleBasedCollator *coll; in TestRules() 324 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tblcoll.h | 113 class U_I18N_API RuleBasedCollator : public Collator { 123 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status); 134 RuleBasedCollator(const UnicodeString& rules, 147 RuleBasedCollator(const UnicodeString& rules, 161 RuleBasedCollator(const UnicodeString& rules, 171 RuleBasedCollator(const UnicodeString &rules, 181 RuleBasedCollator(const RuleBasedCollator& other); 201 RuleBasedCollator(const uint8_t *bin, int32_t length, 202 const RuleBasedCollator *base, 209 virtual ~RuleBasedCollator(); [all …]
|
D | coleitr.h | 51 class RuleBasedCollator; variable 308 friend class RuleBasedCollator; 321 const RuleBasedCollator* order, UErrorCode& status); 341 const RuleBasedCollator* order, UErrorCode& status); 363 const RuleBasedCollator *rbc_; // aliased
|
/external/icu/icu4c/source/i18n/ |
D | rulebasedcollator.cpp | 140 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator &other) in RuleBasedCollator() function in RuleBasedCollator 153 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator 154 const RuleBasedCollator *base, UErrorCode &errorCode) in RuleBasedCollator() 184 RuleBasedCollator::RuleBasedCollator(const CollationCacheEntry *entry) in RuleBasedCollator() function in RuleBasedCollator 196 RuleBasedCollator::~RuleBasedCollator() { in ~RuleBasedCollator() 202 RuleBasedCollator::adoptTailoring(CollationTailoring *t, UErrorCode &errorCode) { in adoptTailoring() 224 RuleBasedCollator::clone() const { in clone() 225 return new RuleBasedCollator(*this); in clone() 228 RuleBasedCollator &RuleBasedCollator::operator=(const RuleBasedCollator &other) { in operator =() 240 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RuleBasedCollator) [all …]
|