/external/chromium_org/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'));
|
D | wellformed-unsupported-locale.js | 30 var collator = Intl.Collator(['xx']); variable 32 assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());
|
D | resolved-options-is-method.js | 31 var collator = new Intl.Collator(); variable 33 var result = collator.resolvedOptions();
|
D | en-sort.js | 32 var collator = Intl.Collator(['en']); variable 33 var result = strings.sort(collator.compare);
|
D | de-sort.js | 33 var collator = Intl.Collator(['de']); variable 34 var result = strings.sort(collator.compare);
|
D | sr-sort.js | 33 var collator = Intl.Collator(['sr']); variable 34 var result = strings.sort(collator.compare);
|
D | default-locale.js | 31 var collator = new Intl.Collator([]); variable 33 var options = collator.resolvedOptions();
|
/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/chromium_org/ui/base/models/ |
D | table_model.cc | 39 static icu::Collator* collator = NULL; variable 76 icu::Collator* collator = GetCollator(); in CompareValues() local 78 if (collator) in CompareValues() 79 return base::i18n::CompareString16WithCollator(collator, value1, value2); in CompareValues() 86 delete collator; in ClearCollator() 87 collator = NULL; in ClearCollator() 91 if (!collator) { in GetCollator() 93 collator = icu::Collator::createInstance(create_status); in GetCollator() 95 collator = NULL; in GetCollator() 99 return collator; in GetCollator()
|
/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/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/chromium_org/ui/base/l10n/ |
D | l10n_util_collator.h | 28 StringMethodComparatorWithCollator(icu::Collator* collator, Method method) in StringMethodComparatorWithCollator() argument 29 : collator_(collator), in StringMethodComparatorWithCollator() 71 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error)); in SortStringsUsingMethod() 79 StringMethodComparatorWithCollator<T, Method>(collator.get(), method)); in SortStringsUsingMethod() 92 explicit StringComparator(icu::Collator* collator) in StringComparator() argument 93 : collator_(collator) { } in StringComparator() 128 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error)); in SortVectorWithStringKey() 130 collator.reset(); in SortVectorWithStringKey() 131 StringComparator<Element> c(collator.get()); in SortVectorWithStringKey()
|
/external/chromium_org/v8/src/ |
D | i18n.cc | 486 icu::Collator* collator = NULL; in CreateICUCollator() local 488 collator = icu::Collator::createInstance(icu_locale, status); in CreateICUCollator() 491 delete collator; in CreateICUCollator() 498 collator->setAttribute( in CreateICUCollator() 505 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in CreateICUCollator() 510 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status); in CreateICUCollator() 512 collator->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, status); in CreateICUCollator() 515 collator->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status); in CreateICUCollator() 522 collator->setStrength(icu::Collator::PRIMARY); in CreateICUCollator() 524 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/chromium_org/third_party/icu/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() 361 Collator *collator = getCollator(search->collator); in assertEqual() local 383 collator->setStrength(getECollationStrength(search->strength)); in assertEqual() 384 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqual() 392 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual() 403 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual() [all …]
|
/external/chromium_org/third_party/icu/source/i18n/ |
D | stsearch.cpp | 57 m_collator_.setUCollator((UCollator *)m_strsrch_->collator); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 92 m_collator_.setUCollator((UCollator *)m_strsrch_->collator); in StringSearch() 120 m_collator_.setUCollator((UCollator *)m_strsrch_->collator); in StringSearch() 155 m_collator_.setUCollator((UCollator *)m_strsrch_->collator); in StringSearch() 182 that.m_strsrch_->collator, in StringSearch() 187 m_collator_.setUCollator((UCollator *)m_strsrch_->collator); in StringSearch() 221 that.m_strsrch_->collator, in operator =() 226 m_collator_.setUCollator((UCollator *)m_strsrch_->collator); in operator =() 241 this->m_strsrch_->collator == thatsrch.m_strsrch_->collator); in operator ==() 285 m_collator_.setUCollator((UCollator *)m_strsrch_->collator); in setCollator()
|
D | usearch.cpp | 306 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() 314 uprv_init_collIterate(strsrch->collator, pattern->text, in initializePatternCETable() 381 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable() 388 uprv_init_collIterate(strsrch->collator, pattern->text, in initializePatternPCETable() 802 inline int32_t getNextSafeOffset(const UCollator *collator, in getNextSafeOffset() argument 808 while (result != textlength && ucol_unsafeCP(text[result], collator)) { in getNextSafeOffset() 853 int32_t safeoffset = getNextSafeOffset(strsrch->collator, in checkExtraMatchAccents() 1179 const UCollator *collator = strsrch->collator; in checkNextExactContractionMatch() local 1190 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextExactContractionMatch() 1192 && ucol_unsafeCP(text[*start + 1], collator))) { in checkNextExactContractionMatch() [all …]
|
D | colldata.cpp | 462 CollData *get(UCollator *collator, UErrorCode &status); 468 static char *getKey(UCollator *collator, char *keyBuffer, int32_t *charBufferLength); 518 CollData *CollDataCache::get(UCollator *collator, UErrorCode &status) in get() argument 522 char *key = getKey(collator, keyBuffer, &keyLength); in get() 532 newData = new CollData(collator, key, keyLength, status); in get() 587 char *CollDataCache::getKey(UCollator *collator, char *keyBuffer, int32_t *keyBufferLength) in getKey() argument 590 … int32_t len = ucol_getShortDefinitionString(collator, NULL, keyBuffer, *keyBufferLength, &status); in getKey() 597 len = ucol_getShortDefinitionString(collator, NULL, keyBuffer, *keyBufferLength, &status); in getKey() 643 CollData::CollData(UCollator *collator, char *cacheKey, int32_t cacheKeyLength, UErrorCode &status) in CollData() argument 696 coll = ucol_safeClone(collator, NULL, NULL, &status); in CollData() [all …]
|
/external/chromium_org/base/i18n/ |
D | string_compare.cc | 15 UCollationResult CompareString16WithCollator(const icu::Collator* collator, in CompareString16WithCollator() argument 18 DCHECK(collator); in CompareString16WithCollator() 20 UCollationResult result = collator->compare( in CompareString16WithCollator()
|
D | file_util_icu.cc | 141 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(error_code)); in LocaleAwareCompareFilenames() local 144 collator->setStrength(icu::Collator::TERTIARY); in LocaleAwareCompareFilenames() 147 return base::i18n::CompareString16WithCollator(collator.get(), in LocaleAwareCompareFilenames() 154 collator.get(), in LocaleAwareCompareFilenames()
|
/external/chromium_org/third_party/icu/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() 448 UCollator *collator = getCollator(search.collator); in assertEqual() local 456 ucol_setStrength(collator, search.strength); in assertEqual() 457 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in assertEqual() 465 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual() 469 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual() [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/icu4c/source/i18n/ |
D | usearch.cpp | 298 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() 370 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable() 789 inline int32_t getNextSafeOffset(const UCollator *collator, in getNextSafeOffset() argument 795 while (result != textlength && ucol_unsafeCP(text[result], collator)) { in getNextSafeOffset() 840 int32_t safeoffset = getNextSafeOffset(strsrch->collator, in checkExtraMatchAccents() 1166 const UCollator *collator = strsrch->collator; in checkNextExactContractionMatch() local 1177 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextExactContractionMatch() 1179 && ucol_unsafeCP(text[*start + 1], collator))) { in checkNextExactContractionMatch() 1525 inline uint32_t getPreviousSafeOffset(const UCollator *collator, in getPreviousSafeOffset() argument 1530 while (result != 0 && ucol_unsafeCP(text[result - 1], collator)) { in getPreviousSafeOffset() [all …]
|
/external/chromium_org/v8/test/intl/overrides/ |
D | caching.js | 48 var collator = Intl.Collator(); variable 51 collator.compare('a', 'c');
|
/external/chromium_org/components/autofill/core/browser/ |
D | autofill_country.cc | 873 const std::string GetSortKey(const icu::Collator& collator, 953 const icu::Collator* collator = GetCollatorForLocale(locale); in AddLocalizedNamesForLocale() local 963 std::string sort_key = GetSortKey(*collator, in AddLocalizedNamesForLocale() 979 icu::Collator* collator = GetCollatorForLocale(locale); in GetCountryCodeForLocalizedName() local 986 std::string sort_key = GetSortKey(*collator, in GetCountryCodeForLocalizedName() 1006 icu::Collator* collator(icu::Collator::createInstance(icu_locale, ignored)); in GetCollatorForLocale() local 1010 collator->setAttribute(UCOL_STRENGTH, UCOL_SECONDARY, ignored); in GetCollatorForLocale() 1012 collator->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, ignored); in GetCollatorForLocale() 1014 collators_.insert(std::make_pair(locale, collator)); in GetCollatorForLocale() 1020 const std::string CountryNames::GetSortKey(const icu::Collator& collator, in GetSortKey() argument [all …]
|