/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
CollationKeyTest.java | 20 import java.text.Collator; 31 Collator collator = Collator.getInstance(); local 32 collator.setStrength(Collator.PRIMARY); 33 CollationKey key1 = collator.getCollationKey("abc"); 34 CollationKey key2 = collator.getCollationKey("ABC"); 44 Collator collator = Collator.getInstance() local 55 Collator collator = Collator.getInstance(); local 66 Collator collator = Collator.getInstance(); local 78 Collator collator = Collator.getInstance(); local 91 Collator collator = Collator.getInstance(); local [all...] |
CollatorTest.java | 19 import java.text.Collator; 27 * @tests java.text.Collator#clone() 30 Collator c = Collator.getInstance(Locale.GERMAN); 31 Collator c2 = (Collator) c.clone(); 37 * @tests java.text.Collator#compare(java.lang.Object, java.lang.Object) 40 Collator c = Collator.getInstance(Locale.FRENCH); 43 c.setStrength(Collator.IDENTICAL) 207 RuleBasedCollator collator; local 238 RuleBasedCollator collator; local [all...] |
/external/chromium_org/ui/base/models/ |
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; 90 icu::Collator* TableModel::GetCollator() { 91 if (!collator) { [all...] |
/external/chromium_org/base/i18n/ |
string_compare.cc | 14 // specified Collator instance. 15 UCollationResult CompareString16WithCollator(const icu::Collator* collator, 18 DCHECK(collator); 20 UCollationResult result = collator->compare(
|
string_compare.h | 19 // Compares the two strings using the specified collator. 21 const icu::Collator* collator,
|
string_search.cc | 27 UCollator* collator = usearch_getCollator(search_); local 28 ucol_setStrength(collator, UCOL_PRIMARY);
|
file_util_icu.cc | 139 // Use the default collator. The default locale should have been properly 141 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(error_code)); 144 collator->setStrength(icu::Collator::TERTIARY); 147 return base::i18n::CompareString16WithCollator(collator.get(), 153 return base::i18n::CompareString16WithCollator(collator.get(),
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldCollationKeyTest.java | 20 import java.text.Collator; 29 Collator collator = Collator.getInstance(); local 30 collator.setStrength(Collator.PRIMARY); 31 CollationKey key1 = collator.getCollationKey("abc"); 36 collator = new RuleBasedCollator("= 1 , 2 ; 3 , 4 < 5 ; 6 , 7"); 43 * ((RuleBasedCollator)collator).getCollationElementIterator("1234567"); 52 // bytes = collator.getCollationKey("1234567").toByteArray() [all...] |
CollatorTest.java | 21 import java.text.Collator; 29 Collator collator = Collator.getInstance(); local 30 collator.setStrength(Collator.PRIMARY); 31 assertEquals(Collator.PRIMARY, collator.getStrength()); 32 collator.setStrength(Collator.SECONDARY) [all...] |
/external/icu4c/samples/coll/ |
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); 171 fprintf(stderr, "Collator creation failed.: %d\n", 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, [all...] |
/external/icu4c/samples/strsrch/ |
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); 162 fprintf(stderr, "Collator creation failed.: %d\n", 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, [all...] |
/external/chromium_org/ui/base/l10n/ |
l10n_util_collator.h | 21 // operator (), comparing the string results using a collator. 28 StringMethodComparatorWithCollator(icu::Collator* collator, Method method) 29 : collator_(collator), 39 icu::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)) [all...] |
/external/chromium_org/v8/test/intl/collator/ |
protected-icu-internals.js | 32 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); [all...] |
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(); [all...] |
/external/sqlite/android/ |
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) 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/chrome/browser/chromeos/options/ |
wifi_config_model.cc | 15 #include "unicode/coll.h" // icu::Collator 37 explicit CertNameComparator(icu::Collator* collator) 38 : collator_(collator) { 52 icu::Collator* collator_; 93 scoped_ptr<icu::Collator> collator; local 95 collator.reset( 96 icu::Collator::createInstance( 100 collator.reset(NULL) [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
colldata.h | 27 * The size of the internal buffer for the Collator's short description string. 72 * @param coll - the Collator used to collect the CEs. 264 * This class holds the Collator-specific data needed to 285 * @param collator - the collator 297 static CollData *open(UCollator *collator, UErrorCode &status); 425 CollData(UCollator *collator, char *cacheKey, int32_t cachekeyLength, UErrorCode &status); 430 static char *getCollatorKey(UCollator *collator, char *buffer, int32_t bufferLength);
|
/external/chromium_org/v8/src/ |
i18n.cc | 515 icu::Collator* CreateICUCollator( 519 // Make collator from options. 520 icu::Collator* collator = NULL; local 522 collator = icu::Collator::createInstance(icu_locale, status); 525 delete collator; 532 collator->setAttribute( 539 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); 544 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status) 963 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options); local [all...] |
/libcore/luni/src/main/java/java/text/ |
Collator.java | 61 * This {@code Collator} deals only with two decomposition modes, the canonical 64 * {@code java.text.Collator.FULL_DECOMPOSITION} is not supported here. If the 65 * canonical decomposition mode is set, {@code Collator} handles un-normalized 75 * // Get the Collator for US English and set its strength to PRIMARY 76 * Collator usCollator = Collator.getInstance(Locale.US); 77 * usCollator.setStrength(Collator.PRIMARY); 85 * The following example shows how to compare two strings using the collator for 91 * Collator myCollator = Collator.getInstance() 226 Collator collator = (Collator) object; local [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
stsearch.cpp | 46 // 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/icu4c/i18n/ |
stsearch.cpp | 46 // 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/cintltst/ |
usrchtst.c | 60 log_err_status(*status, "Error opening collator\n"); 157 * Getting the collator 159 static UCollator *getCollator(const char *collator) 161 if (collator == NULL) { 164 if (strcmp(collator, "fr") == 0) { 167 else if (strcmp(collator, "de") == 0) { 170 else if (strcmp(collator, "es") == 0) { 261 log_data_err("Opening collator failed.\n"); 286 log_data_err("Opening collator failed.\n"); 448 UCollator *collator = getCollator(search.collator) local 479 UCollator *collator = getCollator(search.collator); local 520 UCollator *collator = getCollator(search.collator); local 676 UCollator *collator = getCollator(search->collator); local 783 UCollator *collator = getCollator(search->collator); local 1556 UCollator *collator; local 1599 UCollator *collator; local 1766 UCollator *collator = getCollator(search->collator); local 1884 UCollator *collator = getCollator(search->collator); local 2170 UCollator *collator; local 2284 UCollator *collator = NULL; local [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
srchtest.cpp | 30 dataerrln(__FILE__ " cannot test - failed to create collator."); \ 48 m_en_us_ = (RuleBasedCollator *)Collator::createInstance("en_US", status); 49 m_fr_fr_ = (RuleBasedCollator *)Collator::createInstance("fr_FR", status); 50 m_de_ = (RuleBasedCollator *)Collator::createInstance("de_DE", status); 51 m_es_ = (RuleBasedCollator *)Collator::createInstance("es_ES", status); 61 errln("Collator creation failed with %s", u_errorName(status)); 180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) 182 if (collator == NULL) { 185 if (strcmp(collator, "fr") == 0) { 188 else if (strcmp(collator, "de") == 0) 361 Collator *collator = getCollator(search->collator); local 418 Collator *collator = getCollator(search->collator); local 471 Collator *collator = getCollator(search->collator); local 805 RuleBasedCollator *collator = getCollator(search->collator); local 908 RuleBasedCollator *collator = getCollator(search->collator); local 1508 RuleBasedCollator *collator = new RuleBasedCollator(rules, local 1546 RuleBasedCollator *collator = new RuleBasedCollator(rules, local 1670 RuleBasedCollator *collator = getCollator(search->collator); local 1776 RuleBasedCollator *collator = getCollator(search->collator); local 2015 Collator *collator = strsrch->getCollator(); local 2113 RuleBasedCollator *collator = new RuleBasedCollator(rules, local [all...] |
/external/icu4c/test/intltest/ |
srchtest.cpp | 30 dataerrln(__FILE__ " cannot test - failed to create collator."); \ 48 m_en_us_ = (RuleBasedCollator *)Collator::createInstance("en_US", status); 49 m_fr_fr_ = (RuleBasedCollator *)Collator::createInstance("fr_FR", status); 50 m_de_ = (RuleBasedCollator *)Collator::createInstance("de_DE", status); 51 m_es_ = (RuleBasedCollator *)Collator::createInstance("es_ES", status); 61 errln("Collator creation failed with %s", u_errorName(status)); 180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) 182 if (collator == NULL) { 185 if (strcmp(collator, "fr") == 0) { 188 else if (strcmp(collator, "de") == 0) 464 Collator *collator = getCollator(search->collator); local 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/chromium/chrome/browser/autofill/ |
autofill_country.cc | 376 // Returns an ICU collator -- i.e. string comparator -- appropriate for the 378 icu::Collator* GetCollatorForLocale(const std::string& locale); 380 // Returns the ICU sort key corresponding to |str| for the given |collator|. 384 const std::string GetSortKey(const icu::Collator& collator, 403 std::map<std::string, icu::Collator*> collators_; 466 const icu::Collator* collator = GetCollatorForLocale(locale); local 479 std::string sort_key = GetSortKey(*collator, 495 icu::Collator* collator = GetCollatorForLocale(locale) local [all...] |