/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationRegressionTest.java | 30 import com.ibm.icu.text.RuleBasedCollator; 42 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446() 90 RuleBasedCollator c1 = null; in Test4051866() 93 c1 = new RuleBasedCollator(rules); in Test4051866() 100 RuleBasedCollator c2 = null; in Test4051866() 102 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866() 121 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636() 136 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238() 161 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734() 280 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736() [all …]
|
D | CollationMiscTest.java | 38 import com.ibm.icu.text.RuleBasedCollator; 77 RuleBasedCollator coll; in TestComposeDecompose() 79 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 120 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() 380 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose() [all …]
|
D | CollationIteratorTest.java | 30 import com.ibm.icu.text.RuleBasedCollator; 45 RuleBasedCollator c = null; in TestClearBuffers() 47 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() 215 RuleBasedCollator en_us; in TestOffset() 217 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset() 260 RuleBasedCollator tailored = null; in TestOffset() 262 tailored = new RuleBasedCollator("& a < ch"); in TestOffset() [all …]
|
D | G7CollationTest.java | 26 import com.ibm.icu.text.RuleBasedCollator; 72 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1() 75 RuleBasedCollator myCollation = null; in TestDemo1() 77 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() 127 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3() 130 RuleBasedCollator myCollation = null; in TestDemo3() 132 myCollation = new RuleBasedCollator(newRules); in TestDemo3() [all …]
|
D | CollationAPITest.java | 37 import com.ibm.icu.text.RuleBasedCollator; 262 RuleBasedCollator col3 = null; in TestDuplicate() 264 col3 = new RuleBasedCollator(ruleset); in TestDuplicate() 270 col3 = (RuleBasedCollator)col1; in TestDuplicate() 292 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter() 296 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter() 298 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter() 533 String colrules = ((RuleBasedCollator)col).getRules(); 534 String junkrules = ((RuleBasedCollator)junk).getRules(); 557 RuleBasedCollator col1 = null, col2 = null, col3 = null, col4 = null; [all …]
|
D | CollationThaiTest.java | 32 import com.ibm.icu.text.RuleBasedCollator; 83 RuleBasedCollator coll = null; in TestCornerCases() 93 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray() 126 RuleBasedCollator coll = null; in TestDictionary() 225 RuleBasedCollator collator; in TestInvalidThai() 285 RuleBasedCollator collator; in TestReordering() 297 collator = new RuleBasedCollator(rule); in TestReordering() 325 private static RuleBasedCollator m_collator_; 329 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator() 332 m_collator_ = (RuleBasedCollator)Collator.getInstance( in getThaiCollator()
|
D | CollationDummyTest.java | 30 import com.ibm.icu.text.RuleBasedCollator; 175 private RuleBasedCollator myCollation; 184 myCollation = new RuleBasedCollator(ruleset); in init() 321 newCollation = new RuleBasedCollator(rules); in TestSurrogates() 373 myColl = new RuleBasedCollator(rule); in TestVariableTop() 381 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop() 382 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop() 384 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop() 465 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401() 466 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401() [all …]
|
D | UCAConformanceTest.java | 29 import com.ibm.icu.text.RuleBasedCollator; 42 UCA = (RuleBasedCollator) Collator.getInstance(ULocale.ROOT); in init() 46 private RuleBasedCollator UCA; 47 private RuleBasedCollator rbUCA; 115 private void setCollNonIgnorable(RuleBasedCollator coll) { in setCollNonIgnorable() 125 private void setCollShifted(RuleBasedCollator coll) { in setCollShifted() 139 rbUCA = new RuleBasedCollator(ucarules); in initRbUCA() 184 private void conformanceTest(RuleBasedCollator coll) { in conformanceTest()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationRegressionTest.java | 31 import android.icu.text.RuleBasedCollator; 45 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446() 93 RuleBasedCollator c1 = null; in Test4051866() 96 c1 = new RuleBasedCollator(rules); in Test4051866() 103 RuleBasedCollator c2 = null; in Test4051866() 105 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866() 124 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636() 139 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238() 164 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734() 283 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736() [all …]
|
D | CollationMiscTest.java | 39 import android.icu.text.RuleBasedCollator; 80 RuleBasedCollator coll; in TestComposeDecompose() 82 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose() 123 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose() 258 RuleBasedCollator coll = null; in genericRulesStarterWithResult() 260 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult() 269 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult() 271 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult() 287 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult() 383 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose() [all …]
|
D | CollationIteratorTest.java | 31 import android.icu.text.RuleBasedCollator; 48 RuleBasedCollator c = null; in TestClearBuffers() 50 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers() 106 RuleBasedCollator coll = null; in TestMaxExpansion() 108 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 198 coll = new RuleBasedCollator(rule); in TestMaxExpansion() 218 RuleBasedCollator en_us; in TestOffset() 220 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset() 263 RuleBasedCollator tailored = null; in TestOffset() 265 tailored = new RuleBasedCollator("& a < ch"); in TestOffset() [all …]
|
D | G7CollationTest.java | 27 import android.icu.text.RuleBasedCollator; 75 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1() 78 RuleBasedCollator myCollation = null; in TestDemo1() 80 myCollation = new RuleBasedCollator(newRules); in TestDemo1() 102 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2() 105 RuleBasedCollator myCollation = null; in TestDemo2() 107 myCollation = new RuleBasedCollator(newRules); in TestDemo2() 130 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3() 133 RuleBasedCollator myCollation = null; in TestDemo3() 135 myCollation = new RuleBasedCollator(newRules); in TestDemo3() [all …]
|
D | CollationAPITest.java | 38 import android.icu.text.RuleBasedCollator; 265 RuleBasedCollator col3 = null; in TestDuplicate() 267 col3 = new RuleBasedCollator(ruleset); in TestDuplicate() 273 col3 = (RuleBasedCollator)col1; in TestDuplicate() 295 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter() 299 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter() 301 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter() 536 String colrules = ((RuleBasedCollator)col).getRules(); 537 String junkrules = ((RuleBasedCollator)junk).getRules(); 560 RuleBasedCollator col1 = null, col2 = null, col3 = null, col4 = null; [all …]
|
D | CollationThaiTest.java | 33 import android.icu.text.RuleBasedCollator; 86 RuleBasedCollator coll = null; in TestCornerCases() 96 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray() 129 RuleBasedCollator coll = null; in TestDictionary() 228 RuleBasedCollator collator; in TestInvalidThai() 288 RuleBasedCollator collator; in TestReordering() 300 collator = new RuleBasedCollator(rule); in TestReordering() 328 private static RuleBasedCollator m_collator_; 332 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator() 335 m_collator_ = (RuleBasedCollator)Collator.getInstance( in getThaiCollator()
|
D | CollationDummyTest.java | 31 import android.icu.text.RuleBasedCollator; 178 private RuleBasedCollator myCollation; 187 myCollation = new RuleBasedCollator(ruleset); in init() 324 newCollation = new RuleBasedCollator(rules); in TestSurrogates() 376 myColl = new RuleBasedCollator(rule); in TestVariableTop() 384 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop() 385 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop() 387 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop() 468 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401() 469 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401() [all …]
|
D | UCAConformanceTest.java | 30 import android.icu.text.RuleBasedCollator; 45 UCA = (RuleBasedCollator) Collator.getInstance(ULocale.ROOT); in init() 49 private RuleBasedCollator UCA; 50 private RuleBasedCollator rbUCA; 118 private void setCollNonIgnorable(RuleBasedCollator coll) { in setCollNonIgnorable() 128 private void setCollShifted(RuleBasedCollator coll) { in setCollShifted() 142 rbUCA = new RuleBasedCollator(ucarules); in initRbUCA() 187 private void conformanceTest(RuleBasedCollator coll) { in conformanceTest()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateCldrCollationTests.java | 21 import com.ibm.icu.text.RuleBasedCollator; 29 …Map<String, Map<String, RuleBasedCollator>> locale_types_rules = new TreeMap<String, Map<String, R… 30 …Map<RuleBasedCollator, RuleBasedCollator> collation_collation = new HashMap<RuleBasedCollator, Rul… 31 RuleBasedCollator emptyCollator = (RuleBasedCollator) Collator.getInstance(new ULocale("")); 37 public RuleBasedCollator getInstance(String locale) { in getInstance() 38 return (RuleBasedCollator) ulocale_rules.get(locale); in getInstance() 46 RuleBasedCollator col = (RuleBasedCollator) ulocale_rules.get(locale); in show() 62 Map<String, RuleBasedCollator> types_rules = locale_types_rules.get(locale); in GenerateCldrCollationTests() 81 Map<String, RuleBasedCollator> types_rules = locale_types_rules.get(locale); in GenerateCldrCollationTests() 88 RuleBasedCollator col = (RuleBasedCollator) types_rules.get(type); in GenerateCldrCollationTests() [all …]
|
/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 | 159 RuleBasedCollator *rcol = (RuleBasedCollator *)Collator::createInstance("da_DK", in TestProperty() 204 doAssert(((RuleBasedCollator *)junk)->getRules().isEmpty(), in TestProperty() 254 RuleBasedCollator *col1, *col2, *col3, *col4; in TestRuleBasedColl() 260 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl() 270 col2 = new RuleBasedCollator(ruleset2, status); in TestRuleBasedColl() 281 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl() 292 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl() 309 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl() 337 RuleBasedCollator *coll; in TestRules() 341 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 …]
|
/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 …]
|
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/ |
D | RuleBasedCollator.java.patch | 1 --- android_icu4j/src/main/java/android/icu/text/RuleBasedCollator.java 2018-10-22 05:12:21.6405963… 2 +++ android_icu4j/src/main/java/android/icu/text/RuleBasedCollator.java 2018-10-22 05:12:45.7646761… 4 * Gets the collation tailoring rules for this RuleBasedCollator. 8 + * constructed using {@link #RuleBasedCollator(String)}.
|