/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationRegressionTest.java | 25 import android.icu.text.RuleBasedCollator; 42 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446() 89 RuleBasedCollator c1 = null; in Test4051866() 92 c1 = new RuleBasedCollator(rules); in Test4051866() 99 RuleBasedCollator c2 = null; in Test4051866() 101 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866() 119 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636() 133 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238() 157 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734() 275 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736() [all …]
|
D | CollationMiscTest.java | 32 import android.icu.text.RuleBasedCollator; 78 RuleBasedCollator coll; in TestComposeDecompose() 80 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 121 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose() 255 RuleBasedCollator coll = null; in genericRulesStarterWithResult() 257 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() 266 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult() 268 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult() 284 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult() 377 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose() [all …]
|
D | CollationIteratorTest.java | 25 import android.icu.text.RuleBasedCollator; 46 RuleBasedCollator c = null; in TestClearBuffers() 48 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers() 103 RuleBasedCollator coll = null; in TestMaxExpansion() 105 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 195 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 214 RuleBasedCollator en_us; in TestOffset() 216 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset() 259 RuleBasedCollator tailored = null; in TestOffset() 261 tailored = new RuleBasedCollator("& a < ch"); in TestOffset() [all …]
|
D | G7CollationTest.java | 21 import android.icu.text.RuleBasedCollator; 73 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1() 76 RuleBasedCollator myCollation = null; in TestDemo1() 78 myCollation = new RuleBasedCollator(newRules); in TestDemo1() 99 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2() 102 RuleBasedCollator myCollation = null; in TestDemo2() 104 myCollation = new RuleBasedCollator(newRules); in TestDemo2() 126 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3() 129 RuleBasedCollator myCollation = null; in TestDemo3() 131 myCollation = new RuleBasedCollator(newRules); in TestDemo3() [all …]
|
D | CollationThaiTest.java | 27 import android.icu.text.RuleBasedCollator; 83 RuleBasedCollator coll = null; in TestCornerCases() 93 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray() 125 RuleBasedCollator coll = null; in TestDictionary() 223 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 | 32 import android.icu.text.RuleBasedCollator; 259 RuleBasedCollator col3 = null; in TestDuplicate() 261 col3 = new RuleBasedCollator(ruleset); in TestDuplicate() 267 col3 = (RuleBasedCollator)col1; in TestDuplicate() 288 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter() 292 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter() 294 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter() 518 String colrules = ((RuleBasedCollator)col).getRules(); 519 String junkrules = ((RuleBasedCollator)junk).getRules(); 540 RuleBasedCollator col1 = null, col2 = null, col3 = null, col4 = null; [all …]
|
D | CollationDummyTest.java | 24 import android.icu.text.RuleBasedCollator; 175 public RuleBasedCollator myCollation; 183 myCollation = new RuleBasedCollator(ruleset); in init() 313 newCollation = new RuleBasedCollator(rules); in TestSurrogates() 364 myColl = new RuleBasedCollator(rule); in TestVariableTop() 372 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop() 373 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop() 375 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop() 455 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401() 456 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401() [all …]
|
D | UCAConformanceTest.java | 23 import android.icu.text.RuleBasedCollator; 44 UCA = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT); in init() 48 private RuleBasedCollator UCA; 49 private RuleBasedCollator rbUCA; 113 private void setCollNonIgnorable(RuleBasedCollator coll) in setCollNonIgnorable() 124 private void setCollShifted(RuleBasedCollator coll) in setCollShifted() 142 rbUCA = new RuleBasedCollator(ucarules); in initRbUCA() 187 private void conformanceTest(RuleBasedCollator coll) { in conformanceTest()
|
D | CollationCreationMethodTest.java | 17 import android.icu.text.RuleBasedCollator; 54 RuleBasedCollator localeCollator; in TestRuleVsLocaleCreationMonkey() 55 RuleBasedCollator ruleCollator; in TestRuleVsLocaleCreationMonkey() 65 localeCollator = (RuleBasedCollator)Collator.getInstance(locale); in TestRuleVsLocaleCreationMonkey() 67 ruleCollator = new RuleBasedCollator(localeCollator.getRules()); in TestRuleVsLocaleCreationMonkey()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationRegressionTest.java | 24 import com.ibm.icu.text.RuleBasedCollator; 38 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446() 85 RuleBasedCollator c1 = null; in Test4051866() 88 c1 = new RuleBasedCollator(rules); in Test4051866() 95 RuleBasedCollator c2 = null; in Test4051866() 97 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866() 115 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636() 129 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238() 153 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734() 271 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736() [all …]
|
D | CollationMiscTest.java | 31 import com.ibm.icu.text.RuleBasedCollator; 74 RuleBasedCollator coll; in TestComposeDecompose() 76 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 117 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose() 251 RuleBasedCollator coll = null; in genericRulesStarterWithResult() 253 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() 262 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult() 264 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult() 280 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult() 373 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose() [all …]
|
D | CollationIteratorTest.java | 24 import com.ibm.icu.text.RuleBasedCollator; 42 RuleBasedCollator c = null; in TestClearBuffers() 44 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers() 99 RuleBasedCollator coll = null; in TestMaxExpansion() 101 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 191 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 210 RuleBasedCollator en_us; in TestOffset() 212 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset() 255 RuleBasedCollator tailored = null; in TestOffset() 257 tailored = new RuleBasedCollator("& a < ch"); in TestOffset() [all …]
|
D | G7CollationTest.java | 20 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() 95 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2() 98 RuleBasedCollator myCollation = null; in TestDemo2() 100 myCollation = new RuleBasedCollator(newRules); in TestDemo2() 122 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3() 125 RuleBasedCollator myCollation = null; in TestDemo3() 127 myCollation = new RuleBasedCollator(newRules); in TestDemo3() [all …]
|
D | CollationThaiTest.java | 26 import com.ibm.icu.text.RuleBasedCollator; 79 RuleBasedCollator coll = null; in TestCornerCases() 89 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray() 121 RuleBasedCollator coll = null; in TestDictionary() 219 RuleBasedCollator collator; in TestInvalidThai() 278 RuleBasedCollator collator; in TestReordering() 280 collator = (RuleBasedCollator)getThaiCollator(); in TestReordering() 290 collator = new RuleBasedCollator(rule); in TestReordering() 317 private static RuleBasedCollator m_collator_; 321 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator() [all …]
|
D | CollationAPITest.java | 31 import com.ibm.icu.text.RuleBasedCollator; 255 RuleBasedCollator col3 = null; in TestDuplicate() 257 col3 = new RuleBasedCollator(ruleset); in TestDuplicate() 263 col3 = (RuleBasedCollator)col1; in TestDuplicate() 284 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter() 288 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter() 290 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter() 514 String colrules = ((RuleBasedCollator)col).getRules(); 515 String junkrules = ((RuleBasedCollator)junk).getRules(); 536 RuleBasedCollator col1 = null, col2 = null, col3 = null, col4 = null; [all …]
|
D | CollationDummyTest.java | 23 import com.ibm.icu.text.RuleBasedCollator; 171 public RuleBasedCollator myCollation; 179 myCollation = new RuleBasedCollator(ruleset); in init() 309 newCollation = new RuleBasedCollator(rules); in TestSurrogates() 360 myColl = new RuleBasedCollator(rule); in TestVariableTop() 368 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop() 369 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop() 371 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop() 451 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401() 452 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401() [all …]
|
D | UCAConformanceTest.java | 22 import com.ibm.icu.text.RuleBasedCollator; 40 UCA = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT); in init() 44 private RuleBasedCollator UCA; 45 private RuleBasedCollator rbUCA; 109 private void setCollNonIgnorable(RuleBasedCollator coll) in setCollNonIgnorable() 120 private void setCollShifted(RuleBasedCollator coll) in setCollShifted() 138 rbUCA = new RuleBasedCollator(ucarules); in initRbUCA() 183 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 | 112 const UnicodeString &rules = ((RuleBasedCollator*)myCollation.getAlias())->getRules(); in TestG7Locales() 121 RuleBasedCollator *tblColl1 = new RuleBasedCollator(rules, status); in TestG7Locales() 157 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo1() 160 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1() 191 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo2() 194 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2() 225 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo3() 228 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3() 260 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo4() 263 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 | 32 RuleBasedCollator *m_en_us_; 33 RuleBasedCollator *m_fr_fr_; 34 RuleBasedCollator *m_de_; 35 RuleBasedCollator *m_es_; 39 RuleBasedCollator * getCollator(const char *collator);
|
D | apicoll.cpp | 163 RuleBasedCollator *rcol = (RuleBasedCollator *)Collator::createInstance("da_DK", in TestProperty() 208 doAssert(((RuleBasedCollator *)junk)->getRules().isEmpty(), in TestProperty() 235 RuleBasedCollator *col1, *col2, *col3, *col4; in TestRuleBasedColl() 241 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl() 251 col2 = new RuleBasedCollator(ruleset2, status); in TestRuleBasedColl() 262 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl() 273 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl() 290 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl() 318 RuleBasedCollator *coll; in TestRules() 322 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tblcoll.h | 111 class U_I18N_API RuleBasedCollator : public Collator { 121 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status); 132 RuleBasedCollator(const UnicodeString& rules, 145 RuleBasedCollator(const UnicodeString& rules, 159 RuleBasedCollator(const UnicodeString& rules, 169 RuleBasedCollator(const UnicodeString &rules, 179 RuleBasedCollator(const RuleBasedCollator& other); 199 RuleBasedCollator(const uint8_t *bin, int32_t length, 200 const RuleBasedCollator *base, 207 virtual ~RuleBasedCollator(); [all …]
|
D | coleitr.h | 49 class RuleBasedCollator; variable 306 friend class RuleBasedCollator; 319 const RuleBasedCollator* order, UErrorCode& status); 339 const RuleBasedCollator* order, UErrorCode& status); 361 const RuleBasedCollator *rbc_; // aliased
|
/external/icu/icu4c/source/i18n/ |
D | rulebasedcollator.cpp | 138 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator &other) in RuleBasedCollator() function in RuleBasedCollator 151 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator 152 const RuleBasedCollator *base, UErrorCode &errorCode) in RuleBasedCollator() 182 RuleBasedCollator::RuleBasedCollator(const CollationCacheEntry *entry) in RuleBasedCollator() function in RuleBasedCollator 194 RuleBasedCollator::~RuleBasedCollator() { in ~RuleBasedCollator() 200 RuleBasedCollator::adoptTailoring(CollationTailoring *t, UErrorCode &errorCode) { in adoptTailoring() 222 RuleBasedCollator::clone() const { in clone() 223 return new RuleBasedCollator(*this); in clone() 226 RuleBasedCollator &RuleBasedCollator::operator=(const RuleBasedCollator &other) { in operator =() 238 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RuleBasedCollator) [all …]
|