/external/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 | resolved-options-is-method.js | 31 var collator = new Intl.Collator(); 33 var result = collator.resolvedOptions();
|
H A D | en-sort.js | 32 var collator = Intl.Collator(['en']); variable 33 var result = strings.sort(collator.compare);
|
H A D | de-sort.js | 33 var collator = Intl.Collator(['de']); variable 34 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);
|
H A D | default-locale.js | 31 var collator = new Intl.Collator([]); 33 var options = collator.resolvedOptions();
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
H A D | CollationChineseTest.java | 13 package com.ibm.icu.dev.test.collator; 35 RuleBasedCollator collator = null; 37 collator = (RuleBasedCollator)Collator.getInstance( 40 warnln("ERROR: in creation of collator of zh__PINYIN locale"); 44 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1);
|
H A D | TestAll.java | 7 package com.ibm.icu.dev.test.collator;
|
H A D | CollationThreadTest.java | 8 package com.ibm.icu.dev.test.collator; 24 final Collator collator = Collator.getInstance(new Locale("pl", "", "")); 135 sort(temporaryData, collator); 148 private static void sort(String[] data, Collator collator) { argument 149 Arrays.sort(data, collator); 187 private Collator collator; field in class:CollationThreadTest.Test 192 Test(String name, String[] data, Collator collator, Random r, Control control) { argument 195 this.collator = collator; 210 sort(this.data, this.collator); [all...] |
H A D | CollationThaiTest.java | 13 package com.ibm.icu.dev.test.collator; 83 warnln("could not construct Thai collator"); 117 * sorted order, and confirm that the collator compares each line as 125 warnln("could not construct Thai collator"); 219 RuleBasedCollator collator; 222 collator = getThaiCollator(); 225 warnln("could not construct Thai collator"); 234 if (collator.compare(tests[i], tests[j]) > 0) { 241 = collator.getCollationElementIterator(tests[i]); 278 RuleBasedCollator collator; 312 Collator collator; field in class:CollationThaiTest.StrCmp [all...] |
H A D | CollationAPITest.java | 13 package com.ibm.icu.dev.test.collator; 187 * This tests the comparison convenience methods of a collator object. 246 * This tests the duplication of a collator object. 381 * This tests the hashCode method of a collator object. 426 * This tests the properties of a collator object. 522 errln("Creating fr_CA collator failed."); 526 doAssert(!(frCol.equals(junk)), "The junk is the same as the fr_CA collator."); 560 errln("Failure: Empty rules for the collator should fail"); 565 logln("PASS: Empty rules for the collator failed as expected"); 587 doAssert(!rule1.equals(rule2), "Default collator getRule [all...] |
/external/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');
|
H A D | string.js | 48 var collator = new Intl.Collator(locale, options); 49 var collatorResult = data.sort(collator.compare);
|
/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/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/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/ |
H A D | RbnfScannerProviderImpl.java | 61 * end of the default collator for the locale, enabling additional equivalences 95 RuleBasedCollator collator = null; 97 // create a default collator based on the locale, 98 // then pull out that collator's rules, append any additional 100 // collator based on the combination of those rules 101 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale()); 103 String rules = collator.getRules() + extras; 104 collator = new RuleBasedCollator(rules); 106 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 115 collator 123 private final RuleBasedCollator collator; field in class:RbnfScannerProviderImpl.RbnfLenientScannerImpl [all...] |
/external/sqlite/android/ |
H A D | sqlite3_android.cpp | 226 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/v8/src/ |
H A D | i18n.cc | 438 // 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/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
H A D | CollationElementIterator.java | 89 * the comparison level of the collator. The method previous() returns the 91 * the collator. The Collation Element Iterator moves only in one direction 199 private CollationElementIterator(RuleBasedCollator collator) { argument 201 rbc_ = collator; 211 * collator. If the source string is empty, NULLORDER will be 215 * @param collator the RuleBasedCollator 218 CollationElementIterator(String source, RuleBasedCollator collator) { argument 219 this(collator); 222 // Note: The constructors should take settings & tailoring, not a collator, 235 * the collator 242 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) argument 258 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) argument [all...] |
H A D | CollatorServiceShim.java | 51 Object registerInstance(Collator collator, ULocale locale) { argument 52 // Set the collator locales while registering so that getInstance() 53 // need not guess whether the collator's locales are already set properly 55 collator.setLocale(locale, locale); 56 return service.registerObject(collator, locale);
|
H A D | StringSearch.java | 39 * handled, e.g. for the German collator, characters ß and SS will be matched 104 * Though collator attributes will be taken into consideration while 106 * attributes. These attributes can be set by getting the collator 108 * Lastly to update <tt>StringSearch</tt> to the new collator attributes, 157 * the argument collator to search for argument pattern in the argument 163 * @param collator {@link RuleBasedCollator} that defines the language rules 172 public StringSearch(String pattern, CharacterIterator target, RuleBasedCollator collator, argument 180 if (collator.getNumericCollation()) { 184 collator_ = collator; 185 strength_ = collator 227 StringSearch(String pattern, CharacterIterator target, RuleBasedCollator collator) argument 310 setCollator(RuleBasedCollator collator) argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | LocaleDisplayNames.java | 264 * @param collator how to collate—should normally be Collator.getInstance(getDisplayLocale()) 274 public List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { argument 275 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); 388 private final Comparator<Object> collator; field in class:LocaleDisplayNames.UiListItem.UiListItemComparator 390 UiListItemComparator(Comparator<Object> collator, boolean useSelf) { argument 391 this.collator = collator; 395 int result = useSelf ? collator.compare(o1.nameInSelf, o2.nameInSelf) 396 : collator.compare(o1.nameInDisplayLocale, o2.nameInDisplayLocale);
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/ |
H A D | SearchTest.java | 45 this.collator = coll; 54 String collator; field in class:SearchTest.SearchData 543 RuleBasedCollator getCollator(String collator) { argument 544 if (collator == null) { 546 } if (collator.equals("fr")) { 548 } else if (collator.equals("de")) { 550 } else if (collator.equals("es")) { 568 Collator collator = getCollator(search.collator); 578 collator [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | srchtest.cpp | 30 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...] |