/external/v8/test/intl/collator/ |
D | normalization.js | 42 var collator = Intl.Collator([], {normalization: false}); variable 44 assertEquals(0, collator.compare(toCompare[0], toCompare[1])); 45 assertFalse(collator.resolvedOptions().hasOwnProperty('normalization')); 48 collator = Intl.Collator(['de-u-kk-false']); 50 assertEquals(0, collator.compare(toCompare[0], toCompare[1])); 51 assertFalse(collator.resolvedOptions().hasOwnProperty('normalization')); 54 collator = Intl.Collator(); 55 assertEquals(0, collator.compare(toCompare[0], toCompare[1])); 56 assertFalse(collator.resolvedOptions().hasOwnProperty('normalization'));
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
D | Collator.java | 121 private final java.text.Collator collator; field in Collator 127 this.collator = delegate; in Collator() 137 this.collator = null; in Collator() 270 collator.setStrength(newStrength); in setStrength() 308 collator.setDecomposition(decomposition); in setDecomposition() 335 return new Collator((java.text.Collator)collator.clone()); in clone() 733 return collator.getStrength(); in getStrength() 751 return collator.getDecomposition(); in getDecomposition() 804 return collator.compare(source, target); in compare() 839 return new CollationKey(collator.getCollationKey(source)); in getCollationKey() [all …]
|
/external/icu/icu4c/source/samples/coll/ |
D | coll.cpp | 54 UCollator * collator = 0; variable 143 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1); in strcmp() 164 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, in processCollator() 168 collator = ucol_open(opt_locale, &status); in processCollator() 183 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in processCollator() 186 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); in processCollator() 189 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, in processCollator() 193 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, in processCollator() 197 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status); in processCollator() 200 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in processCollator() [all …]
|
/external/icu/icu4c/source/samples/strsrch/ |
D | strsrch.cpp | 59 UCollator * collator = 0; variable 155 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, in processCollator() 159 collator = ucol_open(opt_locale, &status); in processCollator() 174 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in processCollator() 177 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); in processCollator() 180 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, in processCollator() 184 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, in processCollator() 188 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status); in processCollator() 191 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in processCollator() 197 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status); in processCollator() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 95 RuleBasedCollator collator = null; in createScanner() local 101 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale()); in createScanner() 103 String rules = collator.getRules() + extras; in createScanner() 104 collator = new RuleBasedCollator(rules); in createScanner() 106 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in createScanner() 115 collator = null; in createScanner() 119 return new RbnfLenientScannerImpl(collator); in createScanner() 123 private final RuleBasedCollator collator; field in RbnfScannerProviderImpl.RbnfLenientScannerImpl 126 this.collator = rbc; in RbnfLenientScannerImpl() 130 CollationElementIterator iter = collator.getCollationElementIterator(s); in allIgnorable() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 97 RuleBasedCollator collator = null; in createScanner() local 103 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale()); in createScanner() 105 String rules = collator.getRules() + extras; in createScanner() 106 collator = new RuleBasedCollator(rules); in createScanner() 108 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in createScanner() 117 collator = null; in createScanner() 121 return new RbnfLenientScannerImpl(collator); in createScanner() 125 private final RuleBasedCollator collator; field in RbnfScannerProviderImpl.RbnfLenientScannerImpl 128 this.collator = rbc; in RbnfLenientScannerImpl() 132 CollationElementIterator iter = collator.getCollationElementIterator(s); in allIgnorable() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationThaiTest.java | 14 package android.icu.dev.test.collator; 223 RuleBasedCollator collator; in TestInvalidThai() local 226 collator = getThaiCollator(); in TestInvalidThai() 238 if (collator.compare(tests[i], tests[j]) > 0) { in TestInvalidThai() 245 = collator.getCollationElementIterator(tests[i]); in TestInvalidThai() 282 RuleBasedCollator collator; in TestReordering() local 284 collator = (RuleBasedCollator)getThaiCollator(); in TestReordering() 289 compareArray(collator, tests); in TestReordering() 294 collator = new RuleBasedCollator(rule); in TestReordering() 299 compareArray(collator, testcontraction); in TestReordering() [all …]
|
D | CollationThreadTest.java | 9 package android.icu.dev.test.collator; 28 final Collator collator = Collator.getInstance(new Locale("pl", "", "")); 139 sort(temporaryData, collator); in sort() argument 152 private static void sort(String[] data, Collator collator) { in sort() argument 153 Arrays.sort(data, collator); in sort() 191 private Collator collator; field in CollationThreadTest.Test 196 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test() argument 199 this.collator = collator; in Test() 214 sort(this.data, this.collator); in run()
|
D | CollationAPITest.java | 14 package android.icu.dev.test.collator; 836 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); 837 int decomp = collator.getDecomposition(); 838 int strength = collator.getStrength(); 839 boolean alt = collator.isAlternateHandlingShifted(); 840 boolean caselevel = collator.isCaseLevel(); 841 boolean french = collator.isFrenchCollation(); 842 boolean hquart = collator.isHiraganaQuaternary(); 843 boolean lowercase = collator.isLowerCaseFirst(); 844 boolean uppercase = collator.isUpperCaseFirst(); [all …]
|
D | CollationChineseTest.java | 14 package android.icu.dev.test.collator; 39 RuleBasedCollator collator = null; in TestPinYin() local 41 collator = (RuleBasedCollator)Collator.getInstance( in TestPinYin() 48 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1); in TestPinYin()
|
D | CollationFrenchTest.java | 14 package android.icu.dev.test.collator; 177 RuleBasedCollator collator = new RuleBasedCollator(rule); in TestContinuationReordering() local 178 collator.setFrenchCollation(true); in TestContinuationReordering() 180 = collator.getCollationKey("a\u0325\u2f00\u2f01b\u0325"); in TestContinuationReordering() 182 = collator.getCollationKey("a\u0325\u2f01\u2f01b\u0325"); in TestContinuationReordering()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationThaiTest.java | 13 package com.ibm.icu.dev.test.collator; 219 RuleBasedCollator collator; in TestInvalidThai() local 222 collator = getThaiCollator(); in TestInvalidThai() 234 if (collator.compare(tests[i], tests[j]) > 0) { in TestInvalidThai() 241 = collator.getCollationElementIterator(tests[i]); in TestInvalidThai() 278 RuleBasedCollator collator; in TestReordering() local 280 collator = (RuleBasedCollator)getThaiCollator(); in TestReordering() 285 compareArray(collator, tests); in TestReordering() 290 collator = new RuleBasedCollator(rule); in TestReordering() 295 compareArray(collator, testcontraction); in TestReordering() [all …]
|
D | CollationThreadTest.java | 8 package com.ibm.icu.dev.test.collator; 24 final Collator collator = Collator.getInstance(new Locale("pl", "", "")); 135 sort(temporaryData, collator); in sort() argument 148 private static void sort(String[] data, Collator collator) { in sort() argument 149 Arrays.sort(data, collator); in sort() 187 private Collator collator; field in CollationThreadTest.Test 192 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test() argument 195 this.collator = collator; in Test() 210 sort(this.data, this.collator); in run()
|
D | CollationAPITest.java | 13 package com.ibm.icu.dev.test.collator; 832 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); 833 int decomp = collator.getDecomposition(); 834 int strength = collator.getStrength(); 835 boolean alt = collator.isAlternateHandlingShifted(); 836 boolean caselevel = collator.isCaseLevel(); 837 boolean french = collator.isFrenchCollation(); 838 boolean hquart = collator.isHiraganaQuaternary(); 839 boolean lowercase = collator.isLowerCaseFirst(); 840 boolean uppercase = collator.isUpperCaseFirst(); [all …]
|
D | CollationChineseTest.java | 13 package com.ibm.icu.dev.test.collator; 35 RuleBasedCollator collator = null; in TestPinYin() local 37 collator = (RuleBasedCollator)Collator.getInstance( in TestPinYin() 44 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1); in TestPinYin()
|
/external/sqlite/android/ |
D | sqlite3_android.cpp | 226 UCollator* collator; member 280 UCollator* collator = (UCollator*)sqlite3_user_data(context); in tokenize() local 363 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1); in tokenize() 406 static void localized_collator_dtor(UCollator* collator) in localized_collator_dtor() argument 408 ucol_close(collator); in localized_collator_dtor() 422 UCollator* collator = ucol_open(systemLocale, &status); in register_localized_collators() local 427 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status); in register_localized_collators() 434 ucol_getShortDefinitionString(collator, NULL, buf, 1024, &status); in register_localized_collators() 437 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF16, collator, in register_localized_collators() 440 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF8, collator, in register_localized_collators() [all …]
|
/external/v8/src/ |
D | i18n.cc | 470 icu::Collator* collator = NULL; in CreateICUCollator() local 472 collator = icu::Collator::createInstance(icu_locale, status); in CreateICUCollator() 475 delete collator; in CreateICUCollator() 482 collator->setAttribute( in CreateICUCollator() 489 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in CreateICUCollator() 494 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status); in CreateICUCollator() 496 collator->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, status); in CreateICUCollator() 499 collator->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status); in CreateICUCollator() 506 collator->setStrength(icu::Collator::PRIMARY); in CreateICUCollator() 508 collator->setStrength(icu::Collator::SECONDARY); in CreateICUCollator() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | srchtest.cpp | 180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) in getCollator() argument 182 if (collator == NULL) { in getCollator() 185 if (strcmp(collator, "fr") == 0) { in getCollator() 188 else if (strcmp(collator, "de") == 0) { in getCollator() 191 else if (strcmp(collator, "es") == 0) { in getCollator() 464 Collator *collator = getCollator(search->collator); in assertEqual() local 486 collator->setStrength(getECollationStrength(search->strength)); in assertEqual() 487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqual() 495 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual() 506 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/ |
D | SearchTest.java | 45 this.collator = coll; in SearchData() 54 String collator; field in SearchTest.SearchData 552 RuleBasedCollator getCollator(String collator) { in getCollator() argument 553 if (collator == null) { in getCollator() 555 } if (collator.equals("fr")) { in getCollator() 557 } else if (collator.equals("de")) { in getCollator() 559 } else if (collator.equals("es")) { in getCollator() 577 Collator collator = getCollator(search.collator); in assertCanonicalEqual() local 587 collator.setStrength(search.strength); in assertCanonicalEqual() 588 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in assertCanonicalEqual() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/search/ |
D | SearchTest.java | 49 this.collator = coll; in SearchData() 58 String collator; field in SearchTest.SearchData 556 RuleBasedCollator getCollator(String collator) { in getCollator() argument 557 if (collator == null) { in getCollator() 559 } if (collator.equals("fr")) { in getCollator() 561 } else if (collator.equals("de")) { in getCollator() 563 } else if (collator.equals("es")) { in getCollator() 581 Collator collator = getCollator(search.collator); in assertCanonicalEqual() local 591 collator.setStrength(search.strength); in assertCanonicalEqual() 592 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in assertCanonicalEqual() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | usrchtst.c | 159 static UCollator *getCollator(const char *collator) in getCollator() argument 161 if (collator == NULL) { in getCollator() 164 if (strcmp(collator, "fr") == 0) { in getCollator() 167 else if (strcmp(collator, "de") == 0) { in getCollator() 170 else if (strcmp(collator, "es") == 0) { in getCollator() 547 UCollator *collator = getCollator(search.collator); in assertEqual() local 555 ucol_setStrength(collator, search.strength); in assertEqual() 556 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in assertEqual() 564 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual() 568 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CollationElementIterator.java | 190 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() argument 192 rbc_ = collator; in CollationElementIterator() 208 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() argument 209 this(collator); in CollationElementIterator() 231 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument 232 this(collator); in CollationElementIterator() 246 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument 247 this(collator); in CollationElementIterator()
|
D | LocaleDisplayNames.java | 251 … List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { in getUiList() argument 252 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); in getUiList() 354 private final Comparator<Object> collator; field in LocaleDisplayNames.UiListItem.UiListItemComparator 356 UiListItemComparator(Comparator<Object> collator, boolean useSelf) { in UiListItemComparator() argument 357 this.collator = collator; in UiListItemComparator() 361 int result = useSelf ? collator.compare(o1.nameInSelf, o2.nameInSelf) in compare() 362 : collator.compare(o1.nameInDisplayLocale, o2.nameInDisplayLocale); in compare()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | LocaleDisplayNames.java | 272 … List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { in getUiList() argument 273 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); in getUiList() 386 private final Comparator<Object> collator; field in LocaleDisplayNames.UiListItem.UiListItemComparator 388 UiListItemComparator(Comparator<Object> collator, boolean useSelf) { in UiListItemComparator() argument 389 this.collator = collator; in UiListItemComparator() 393 int result = useSelf ? collator.compare(o1.nameInSelf, o2.nameInSelf) in compare() 394 : collator.compare(o1.nameInDisplayLocale, o2.nameInDisplayLocale); in compare()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | CollationElementIterator.java | 195 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() argument 197 rbc_ = collator; in CollationElementIterator() 214 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() argument 215 this(collator); in CollationElementIterator() 238 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument 239 this(collator); in CollationElementIterator() 254 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument 255 this(collator); in CollationElementIterator()
|