/external/chromium_org/v8/test/intl/collator/ |
H A D | wellformed-unsupported-locale.js | 30 var collator = Intl.Collator(['xx']); variable 32 assertEquals(collator.resolvedOptions().locale, %GetDefaultICULocale());
|
H A 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'));
|
H A D | de-sort.js | 33 var collator = Intl.Collator(['de']); variable 34 var result = strings.sort(collator.compare);
|
H A D | en-sort.js | 32 var collator = Intl.Collator(['en']); variable 33 var result = strings.sort(collator.compare);
|
H A D | sr-sort.js | 33 var collator = Intl.Collator(['sr']); variable 34 var result = strings.sort(collator.compare);
|
/external/chromium_org/v8/test/intl/overrides/ |
H A D | caching.js | 47 // 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 D | string_compare.cc | 15 UCollationResult CompareString16WithCollator(const icu::Collator* collator, argument 18 DCHECK(collator); 20 UCollationResult result = collator->compare(
|
H A D | string_search.cc | 27 UCollator* collator = usearch_getCollator(search_); local 28 ucol_setStrength(collator, UCOL_PRIMARY);
|
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
H A D | rbnf.h | 854 * end of the default collator for the locale, enabling additional equivalences 963 Collator* collator; member in class:RuleBasedNumberFormat
|
H A D | tblcoll.h | 181 /** 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 837 setUCollator(UCollator *collator) argument [all...] |
/external/chromium_org/ui/base/l10n/ |
H A D | l10n_util_collator.h | 21 // 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/chromium_org/ui/base/models/ |
H A D | table_model.cc | 39 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 D | rbnf.h | 851 * end of the default collator for the locale, enabling additional equivalences 975 RuleBasedCollator* collator; member in class:RuleBasedNumberFormat
|
/external/chromium_org/components/enhanced_bookmarks/ |
H A D | enhanced_bookmark_utils.cc | 45 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/third_party/icu/source/samples/coll/ |
H A D | coll.cpp | 54 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/coll/ |
H A D | coll.cpp | 54 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 D | cert_library.cc | 80 explicit CertNameComparator(icu::Collator* collator) argument 81 : collator_(collator) { 241 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance( 244 collator.reset(); 245 CertNameComparator cert_name_comparator(collator.get());
|
/external/chromium_org/components/autofill/core/browser/ |
H A D | autofill_country.cc | 868 // Returns an ICU collator -- i.e. string comparator -- appropriate for the 872 // Returns the ICU sort key corresponding to |str| for the given |collator|. 876 const std::string GetSortKey(const icu::Collator& collator, 959 const icu::Collator* collator = GetCollatorForLocale(locale); local 969 std::string sort_key = GetSortKey(*collator, 985 icu::Collator* collator = GetCollatorForLocale(locale); local 992 std::string sort_key = GetSortKey(*collator, 1012 icu::Collator* collator(icu::Collator::createInstance(icu_locale, ignored)); 1016 collator->setAttribute(UCOL_STRENGTH, UCOL_SECONDARY, ignored); 1018 collator 1026 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 D | pdf_resource.cc | 78 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 D | usrchimp.h | 63 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/samples/strsrch/ |
H A D | strsrch.cpp | 59 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/third_party/icu/source/test/cintltst/ |
H A D | usrchdat.c | 29 const char *collator; /* currently supported "fr" "es" "de", plus NULL/other => "en" */ member in struct:SearchData
|
/external/icu/icu4c/source/samples/strsrch/ |
H A D | strsrch.cpp | 59 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 D | usrchdat.c | 29 const char *collator; /* currently supported "fr" "es" "de", plus NULL/other => "en" */ member in struct:SearchData
|
/external/chromium_org/chrome/browser/background/ |
H A D | background_application_list_model.cc | 54 explicit ExtensionNameComparator(icu::Collator* collator); 62 ExtensionNameComparator::ExtensionNameComparator(icu::Collator* collator) argument 63 : collator_(collator) { 127 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error)); 129 ExtensionNameComparator(collator.get()));
|