Searched defs:collator (Results 1 - 25 of 58) 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 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/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),
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) { }
128 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/icu/icu4c/source/i18n/unicode/
H A Drbnf.h851 * end of the default collator for the locale, enabling additional equivalences
975 RuleBasedCollator* collator; member in class:RuleBasedNumberFormat
/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/chromium_org/chrome/browser/chromeos/options/
H A Dcert_library.cc80 explicit CertNameComparator(icu::Collator* collator) argument
81 : collator_(collator) {
240 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(
243 collator.reset();
244 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.cc78 UCollator* collator = usearch_getCollator(searcher); local
79 if (ucol_getStrength(collator) != strength) {
80 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
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dusrchdat.c29 const char *collator; /* currently supported "fr" "es" "de", plus NULL/other => "en" */ member in struct:SearchData
/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/icu/icu4c/source/test/cintltst/
H A Dusrchdat.c29 const char *collator; /* currently supported "fr" "es" "de", plus NULL/other => "en" */ member in struct:SearchData
/external/chromium_org/chrome/browser/background/
H A Dbackground_application_list_model.cc52 explicit ExtensionNameComparator(icu::Collator* collator);
60 ExtensionNameComparator::ExtensionNameComparator(icu::Collator* collator) argument
61 : collator_(collator) {
125 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error));
127 ExtensionNameComparator(collator.get()));
/external/chromium_org/chrome/browser/notifications/
H A Dmessage_center_settings_controller.cc103 explicit NotifierComparator(icu::Collator* collator) : collator_(collator) {} argument
213 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(error));
216 comparator.reset(new NotifierComparator(collator.get()));
/external/chromium_org/chrome/renderer/pepper/
H A Dppb_pdf_impl.cc254 UCollator* collator = usearch_getCollator(searcher); local
255 if (ucol_getStrength(collator) != strength) {
256 ucol_setStrength(collator, strength);
/external/chromium_org/v8/src/
H A Di18n.cc485 // Make collator from options.
486 icu::Collator* collator = NULL; local
488 collator = icu::Collator::createInstance(icu_locale, status);
491 delete collator;
498 collator->setAttribute(
505 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
510 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status);
512 collator->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, status);
515 collator->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status);
522 collator
545 SetResolvedCollatorSettings(Isolate* isolate, const icu::Locale& icu_locale, icu::Collator* collator, Handle<JSObject> resolved) argument
935 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options); local
[all...]

Completed in 3494 milliseconds

123