Searched defs:collator (Results 1 - 25 of 72) sorted by relevance

123

/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 Dprotected-icu-internals.js32 var collator = new Intl.Collator([]);
35 collator.collator = {'zzz':'some random object'};
37 assertFalse(collator.collator.hasOwnProperty('zzz'));
42 Object.defineProperty(collator, 'collator', {value: undefined});
49 assertFalse(delete collator.collator);
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 Dde-sort.js33 var collator = Intl.Collator(['de']); variable
34 var result = strings.sort(collator.compare);
H A Den-sort.js32 var collator = Intl.Collator(['en']); variable
33 var result = strings.sort(collator.compare);
H A Dsr-sort.js33 var collator = Intl.Collator(['sr']); variable
34 var result = strings.sort(collator.compare);
/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');
/external/chromium_org/v8/src/extensions/i18n/
H A Doverrides.js36 'collator': Intl.Collator,
44 // Default (created with undefined locales and options parameters) collator,
47 'collator': undefined,
87 var collator = cachedOrNewService('collator', locales, options);
88 return compare(collator, this, that);
/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_search.cc27 UCollator* collator = usearch_getCollator(search_); local
28 ucol_setStrength(collator, UCOL_PRIMARY);
/external/chromium_org/third_party/icu/source/i18n/unicode/
H A Drbnf.h909 * end of the default collator for the locale, enabling additional equivalences
995 Collator* collator; member in class:RuleBasedNumberFormat
H A Dtblcoll.h181 /** Opens a collator from a collator binary image created using
183 * collator remains owned by the user and should stay around for
184 * the lifetime of the collator. The API also takes a base collator
187 * lifetime of the collator
190 * @param base fallback collator, usually UCA. Base is required to be
191 * present through the lifetime of the collator. Currently
194 * @return newly created collator
453 * @return locale where the collation data lives. If the collator
895 setUCollator(UCollator *collator) argument
[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),
62 // a string. Sorting is done using a collator, unless a collator can not be
70 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error));
78 StringMethodComparatorWithCollator<T, Method>(collator.get(), method));
91 explicit StringComparator(icu::Collator* collator) argument
92 : collator_(collator) { }
127 scoped_ptr<icu::Collator> collator(ic
[all...]
/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/icu4c/i18n/unicode/
H A Drbnf.h909 * end of the default collator for the locale, enabling additional equivalences
1018 Collator* collator; member in class:RuleBasedNumberFormat
H A Dtblcoll.h181 /** Opens a collator from a collator binary image created using
183 * collator remains owned by the user and should stay around for
184 * the lifetime of the collator. The API also takes a base collator
187 * lifetime of the collator
190 * @param base fallback collator, usually UCA. Base is required to be
191 * present through the lifetime of the collator. Currently
194 * @return newly created collator
377 * @return locale where the collation data lives. If the collator
834 setUCollator(UCollator *collator) argument
[all...]
/external/chromium/chrome/browser/chromeos/options/
H A Dwifi_config_model.cc37 explicit CertNameComparator(icu::Collator* collator) argument
38 : collator_(collator) {
93 scoped_ptr<icu::Collator> collator; local
95 collator.reset(
100 collator.reset(NULL);
101 CertNameComparator cert_name_comparator(collator.get());
/external/icu4c/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/chrome/browser/autofill/
H A Dautofill_country.cc376 // Returns an ICU collator -- i.e. string comparator -- appropriate for the
380 // Returns the ICU sort key corresponding to |str| for the given |collator|.
384 const std::string GetSortKey(const icu::Collator& collator,
466 const icu::Collator* collator = GetCollatorForLocale(locale); local
479 std::string sort_key = GetSortKey(*collator,
495 icu::Collator* collator = GetCollatorForLocale(locale); local
502 std::string sort_key = GetSortKey(*collator,
522 icu::Collator* collator(icu::Collator::createInstance(icu_locale, ignored));
526 collator->setAttribute(UCOL_STRENGTH, UCOL_SECONDARY, ignored);
528 collator
536 GetSortKey(const icu::Collator& collator, const icu::UnicodeString& str, scoped_array<uint8_t>* buffer, int32_t* buffer_size) const argument
[all...]
/external/chromium/chrome/browser/
H A Dbackground_application_list_model.cc27 explicit ExtensionNameComparator(icu::Collator* collator);
34 ExtensionNameComparator::ExtensionNameComparator(icu::Collator* collator) argument
35 : collator_(collator) {
85 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error));
87 ExtensionNameComparator(collator.get()));
/external/chromium_org/chrome/browser/background/
H A Dbackground_application_list_model.cc45 explicit ExtensionNameComparator(icu::Collator* collator);
53 ExtensionNameComparator::ExtensionNameComparator(icu::Collator* collator) argument
54 : collator_(collator) {
117 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error));
119 ExtensionNameComparator(collator.get()));
/external/chromium_org/chrome/browser/chromeos/cros/
H A Dcert_library.cc79 explicit CertNameComparator(icu::Collator* collator) argument
80 : collator_(collator) {
244 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(
247 collator.reset();
248 CertNameComparator cert_name_comparator(collator.get());
/external/chromium_org/components/autofill/core/browser/
H A Dautofill_country.cc865 // Returns an ICU collator -- i.e. string comparator -- appropriate for the
869 // Returns the ICU sort key corresponding to |str| for the given |collator|.
873 const std::string GetSortKey(const icu::Collator& collator,
953 const icu::Collator* collator = GetCollatorForLocale(locale); local
963 std::string sort_key = GetSortKey(*collator,
979 icu::Collator* collator = GetCollatorForLocale(locale); local
986 std::string sort_key = GetSortKey(*collator,
1006 icu::Collator* collator(icu::Collator::createInstance(icu_locale, ignored));
1010 collator->setAttribute(UCOL_STRENGTH, UCOL_SECONDARY, ignored);
1012 collator
1020 GetSortKey(const icu::Collator& collator, const base::string16& str, scoped_ptr<uint8_t[]>* buffer, int32_t* buffer_size) const argument
[all...]
/external/chromium_org/ppapi/proxy/
H A Dpdf_resource.cc75 UCollator* collator = usearch_getCollator(searcher); local
76 if (ucol_getStrength(collator) != strength) {
77 ucol_setStrength(collator, strength);
/external/chromium_org/third_party/icu/source/i18n/
H A Dusrchimp.h63 const UCollator *collator; member in struct:UStringSearch
87 * For tertiary we can't use the collator->tertiaryMask, that is a

Completed in 723 milliseconds

123