Searched refs:collator (Results 1 - 25 of 88) sorted by relevance

1234

/external/chromium_org/v8/test/intl/collator/
H A Dwellformed-unsupported-locale.js30 var collator = Intl.Collator(['xx']); variable
32 assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());
H A Dnormalization.js42 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'));
H A Dresolved-options-is-method.js31 var collator = new Intl.Collator();
33 var result = collator.resolvedOptions();
H A Den-sort.js32 var collator = Intl.Collator(['en']); variable
33 var result = strings.sort(collator.compare);
H A Dde-sort.js33 var collator = Intl.Collator(['de']); variable
34 var result = strings.sort(collator.compare);
H A Dsr-sort.js33 var collator = Intl.Collator(['sr']); variable
34 var result = strings.sort(collator.compare);
H A Ddefault-locale.js31 var collator = new Intl.Collator([]);
33 var options = collator.resolvedOptions();
/external/chromium_org/ui/base/models/
H A Dtable_model.cc39 static icu::Collator* collator = NULL; member in namespace:ui
76 icu::Collator* collator = GetCollator(); local
78 if (collator)
79 return base::i18n::CompareString16WithCollator(collator, value1, value2);
86 delete collator;
87 collator = NULL;
91 if (!collator) {
93 collator = icu::Collator::createInstance(create_status);
95 collator = NULL;
99 return collator;
[all...]
/external/chromium_org/base/i18n/
H A Dstring_compare.cc15 UCollationResult CompareString16WithCollator(const icu::Collator* collator, argument
18 DCHECK(collator);
20 UCollationResult result = collator->compare(
H A Dstring_compare.h19 // Compares the two strings using the specified collator.
21 const icu::Collator* collator,
H A Dstring_search.cc27 UCollator* collator = usearch_getCollator(search_); local
28 ucol_setStrength(collator, UCOL_PRIMARY);
H A Dfile_util_icu.cc137 // Use the default collator. The default locale should have been properly
139 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(error_code));
142 collator->setStrength(icu::Collator::TERTIARY);
145 return CompareString16WithCollator(collator.get(),
152 collator.get(),
/external/chromium_org/v8/test/intl/overrides/
H A Dcaching.js47 // Using collator. Faster than default, but not by much.
48 var collator = Intl.Collator(); variable
51 collator.compare('a', 'c');
H A Dstring.js48 var collator = new Intl.Collator(locale, options);
49 var collatorResult = data.sort(collator.compare);
/external/chromium_org/third_party/icu/source/samples/coll/
H A Dcoll.cpp54 UCollator * collator = 0; variable
143 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1);
154 * Creates a collator
158 // Set up an ICU collator
164 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
168 collator = ucol_open(opt_locale, &status);
183 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
186 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
189 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST,
193 ucol_setAttribute(collator, UCOL_CASE_FIRS
[all...]
/external/chromium_org/third_party/icu/source/samples/strsrch/
H A Dstrsrch.cpp59 UCollator * collator = 0; variable
146 * Creates a collator
150 // Set up an ICU collator
155 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
159 collator = ucol_open(opt_locale, &status);
174 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
177 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
180 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST,
184 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST,
188 ucol_setAttribute(collator, UCOL_CASE_LEVE
[all...]
/external/icu/icu4c/source/samples/coll/
H A Dcoll.cpp54 UCollator * collator = 0; variable
143 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1);
154 * Creates a collator
158 // Set up an ICU collator
164 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
168 collator = ucol_open(opt_locale, &status);
183 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
186 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
189 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST,
193 ucol_setAttribute(collator, UCOL_CASE_FIRS
[all...]
/external/icu/icu4c/source/samples/strsrch/
H A Dstrsrch.cpp59 UCollator * collator = 0; variable
146 * Creates a collator
150 // Set up an ICU collator
155 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
159 collator = ucol_open(opt_locale, &status);
174 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
177 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
180 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST,
184 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST,
188 ucol_setAttribute(collator, UCOL_CASE_LEVE
[all...]
/external/chromium_org/ui/base/l10n/
H A Dl10n_util_collator.h21 // operator (), comparing the string results using a collator.
28 StringMethodComparatorWithCollator(icu::Collator* collator, Method method) argument
29 : collator_(collator),
63 // a string. Sorting is done using a collator, unless a collator can not be
71 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error));
79 StringMethodComparatorWithCollator<T, Method>(collator.get(), method));
92 explicit StringComparator(icu::Collator* collator) argument
93 : collator_(collator) { }
113 // If we can not get collator instanc
[all...]
/external/sqlite/android/
H A Dsqlite3_android.cpp226 UCollator* collator; member in struct:SqliteUserData
280 UCollator* collator = (UCollator*)sqlite3_user_data(context); local
363 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1);
406 static void localized_collator_dtor(UCollator* collator) argument
408 ucol_close(collator);
413 // This collator may be removed in the near future, so you MUST not use now.
422 UCollator* collator = ucol_open(systemLocale, &status); local
427 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status);
434 ucol_getShortDefinitionString(collator, NULL, buf, 1024, &status);
437 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF16, collator,
500 UCollator * collator = ucol_open(NULL, &status); local
[all...]
/external/chromium_org/components/enhanced_bookmarks/
H A Denhanced_bookmark_utils.cc45 explicit BookmarkNameComparator(icu::Collator* collator) argument
46 : collator_(collator) {}
64 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(error));
66 collator.reset(NULL);
67 std::sort(nodes.begin(), nodes.end(), BookmarkNameComparator(collator.get()));
/external/chromium_org/v8/src/
H A Di18n.cc438 // Make collator from options.
439 icu::Collator* collator = NULL; local
441 collator = icu::Collator::createInstance(icu_locale, status);
444 delete collator;
451 collator->setAttribute(
458 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
463 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status);
465 collator->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, status);
468 collator->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status);
475 collator
498 SetResolvedCollatorSettings(Isolate* isolate, const icu::Locale& icu_locale, icu::Collator* collator, Handle<JSObject> resolved) argument
834 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options); local
[all...]
/external/chromium_org/third_party/icu/source/i18n/
H A Dstsearch.cpp46 // wrapper around the internal collator and rules, which (here) are
49 // to the exposed collator (setStrength etc) _should_ modify the
50 // ucollator. thus the collator is not a copy-on-write alias, and it
56 // Alias the collator
57 m_collator_.setUCollator((UCollator *)m_strsrch_->collator);
91 // Alias the collator
92 m_collator_.setUCollator((UCollator *)m_strsrch_->collator);
119 // Alias the collator
120 m_collator_.setUCollator((UCollator *)m_strsrch_->collator);
154 // Alias the collator
[all...]
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dsrchtest.cpp30 dataerrln(__FILE__ " cannot test - failed to create collator."); \
180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) argument
182 if (collator == NULL) {
185 if (strcmp(collator, "fr") == 0) {
188 else if (strcmp(collator, "de") == 0) {
191 else if (strcmp(collator, "es") == 0) {
464 Collator *collator = getCollator(search->collator); local
486 collator->setStrength(getECollationStrength(search->strength));
487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
521 Collator *collator = getCollator(search->collator); local
574 Collator *collator = getCollator(search->collator); local
908 RuleBasedCollator *collator = getCollator(search->collator); local
1011 RuleBasedCollator *collator = getCollator(search->collator); local
1601 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
1639 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
1763 RuleBasedCollator *collator = getCollator(search->collator); local
1869 RuleBasedCollator *collator = getCollator(search->collator); local
2108 Collator *collator = strsrch->getCollator(); local
2206 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dsrchtest.cpp30 dataerrln(__FILE__ " cannot test - failed to create collator."); \
180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) argument
182 if (collator == NULL) {
185 if (strcmp(collator, "fr") == 0) {
188 else if (strcmp(collator, "de") == 0) {
191 else if (strcmp(collator, "es") == 0) {
464 Collator *collator = getCollator(search->collator); local
486 collator->setStrength(getECollationStrength(search->strength));
487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
521 Collator *collator = getCollator(search->collator); local
574 Collator *collator = getCollator(search->collator); local
908 RuleBasedCollator *collator = getCollator(search->collator); local
1011 RuleBasedCollator *collator = getCollator(search->collator); local
1601 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
1639 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
1763 RuleBasedCollator *collator = getCollator(search->collator); local
1869 RuleBasedCollator *collator = getCollator(search->collator); local
2108 Collator *collator = strsrch->getCollator(); local
2206 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
[all...]

Completed in 3186 milliseconds

1234