/external/icu4c/i18n/unicode/ |
H A D | rbnf.h | 909 * end of the default collator for the locale, enabling additional equivalences 995 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 453 * @return locale where the collation data lives. If the collator 922 setUCollator(UCollator *collator) argument [all...] |
/external/chromium/chrome/browser/chromeos/options/ |
H A D | wifi_config_model.cc | 37 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 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/chrome/browser/autofill/ |
H A D | autofill_country.cc | 376 // 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 D | background_application_list_model.cc | 27 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/icu4c/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
|
H A D | bmsearch.cpp | 610 UCollator *collator = data->getCollator(); local 612 patCEs = new CEList(collator, patternString, status); 627 target = new Target(collator, targetString, patCEs->size(), status);
|
H A D | coll.cpp | 60 * Release all static memory held by collator. 385 Collator *collator; local 388 collator=new RuleBasedCollator(loc, status); 390 if (collator == 0) { 396 collator->getVersion(info); 398 delete collator; 403 return collator;
|
H A D | colldata.cpp | 461 CollData *get(UCollator *collator, UErrorCode &status); 467 static char *getKey(UCollator *collator, char *keyBuffer, int32_t *charBufferLength); 515 CollData *CollDataCache::get(UCollator *collator, UErrorCode &status) argument 519 char *key = getKey(collator, keyBuffer, &keyLength); 529 newData = new CollData(collator, key, keyLength, status); 584 char *CollDataCache::getKey(UCollator *collator, char *keyBuffer, int32_t *keyBufferLength) argument 587 int32_t len = ucol_getShortDefinitionString(collator, NULL, keyBuffer, *keyBufferLength, &status); 594 len = ucol_getShortDefinitionString(collator, NULL, keyBuffer, *keyBufferLength, &status); 640 CollData::CollData(UCollator *collator, char *cacheKey, int32_t cacheKeyLength, UErrorCode &status) argument 693 coll = ucol_safeClone(collator, NUL 1017 open(UCollator *collator, UErrorCode &status) argument [all...] |
H A D | nfrule.cpp | 1119 * text with a collator). If there's no match, this is 0. 1133 // get the formatter's collator and use it to create two 1136 // exception if the collator we get back from the formatter 1140 RuleBasedCollator* collator = (RuleBasedCollator*)formatter->getCollator(); local 1141 CollationElementIterator* strIter = collator->createCollationElementIterator(str); 1142 CollationElementIterator* prefixIter = collator->createCollationElementIterator(prefix); 1144 if (collator == NULL || strIter == NULL || prefixIter == NULL) { 1145 delete collator; 1249 // ugly contortions. First, use the collator to compare the 1252 collator 1442 RuleBasedCollator* collator = (RuleBasedCollator*)(formatter->getCollator()); local [all...] |
H A D | usearch.cpp | 155 // note for tertiary we can't use the collator->tertiaryMask, that 306 coleiter = ucol_openElements(strsrch->collator, pattern->text, 314 uprv_init_collIterate(strsrch->collator, pattern->text, 381 coleiter = ucol_openElements(strsrch->collator, pattern->text, 388 uprv_init_collIterate(strsrch->collator, pattern->text, 795 * @param collator collation sata 802 inline int32_t getNextSafeOffset(const UCollator *collator, argument 808 while (result != textlength && ucol_unsafeCP(text[result], collator)) { 853 int32_t safeoffset = getNextSafeOffset(strsrch->collator, 1179 const UCollator *collator local 1538 getPreviousSafeOffset(const UCollator *collator, const UChar *text, int32_t textoffset) argument 1591 const UCollator *collator = strsrch->collator; local 1829 const UCollator *collator = strsrch->collator; local 2026 const UCollator *collator = strsrch->collator; local 2251 const UCollator *collator = strsrch->collator; local 2466 const UCollator *collator = strsrch->collator; local 2621 UCollator *collator = ucol_open(locale, status); local 2642 usearch_openFromCollator( const UChar *pattern, int32_t patternlength, const UChar *text, int32_t textlength, const UCollator *collator, UBreakIterator *breakiter, UErrorCode *status) argument 3002 usearch_setCollator( UStringSearch *strsrch, const UCollator *collator, UErrorCode *status) argument [all...] |
H A D | ucol.cpp | 100 inline void IInit_collIterate(const UCollator *collator, const UChar *sourceString, argument 122 (s)->coll = (collator); 125 if(collator->normalizationMode == UCOL_ON) { 128 if(collator->hiraganaQ == UCOL_ON && collator->strength >= UCOL_QUATERNARY) { 136 uprv_init_collIterate(const UCollator *collator, const UChar *sourceString, argument 140 IInit_collIterate(collator, sourceString, sourceLen, s, status); 528 /* copy the collator options */ 656 // collator reordering 798 /* copy the collator option [all...] |
/external/icu4c/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/icu4c/test/cintltst/ |
H A D | usrchdat.c | 29 const char *collator; /* currently supported "fr" "es" "de", plus NULL/other => "en" */ member in struct:SearchData
|
H A D | usrchtst.c | 60 log_err_status(*status, "Error opening collator\n"); 157 * Getting the collator 159 static UCollator *getCollator(const char *collator) argument 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"); 547 UCollator *collator local 578 UCollator *collator = getCollator(search.collator); local 619 UCollator *collator = getCollator(search.collator); local 775 UCollator *collator = getCollator(search->collator); local 882 UCollator *collator = getCollator(search->collator); local 1655 UCollator *collator; local 1698 UCollator *collator; local 1865 UCollator *collator = getCollator(search->collator); local 1983 UCollator *collator = getCollator(search->collator); local 2269 UCollator *collator; local 2383 UCollator *collator = NULL; local [all...] |
/external/chromium/chrome/browser/bookmarks/ |
H A D | bookmark_model.cc | 99 explicit SortComparator(icu::Collator* collator) : collator_(collator) { } argument 436 scoped_ptr<icu::Collator> collator( 441 collator.reset(NULL); 445 SortComparator(collator.get()));
|
/external/chromium/chrome/browser/chromeos/input_method/ |
H A D | input_method_util.cc | 279 // corresponding language names, using the ICU collator. 282 explicit CompareLanguageCodesByLanguageName(icu::Collator* collator) argument 283 : collator_(collator) { 541 // We should build collator outside of the comparator. We cannot have 545 scoped_ptr<icu::Collator> collator( 548 collator.reset(); 551 CompareLanguageCodesByLanguageName(collator.get()));
|
/external/icu4c/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...] |
H A D | svccoll.cpp | 51 { // try override en_US collator 56 errln("register of french collator for en_US failed on request for en_US_FOO"); 58 // ensure original collator's params not touched 61 errln(UnicodeString("fr collator's requested locale changed to ") + loc.getName()); 65 errln(UnicodeString("fr collator's valid locale changed to ") + loc.getName()); 83 errln("failed to unregister french collator"); 89 errln("collator after unregister does not match original"); 99 { // try create collator for new locale 107 errln("register of fr collator for fu_FU failed"); 178 errln("collator fuf 217 Collator* collator; member in struct:CollatorInfo [all...] |
H A D | ssearch.cpp | 213 // Get the collator normalization flag. Default is UCOL_OFF. 288 // Open a collator and StringSearch based on the parameters 292 LocalUCollatorPointer collator(ucol_open(clocale, &status)); 293 ucol_setStrength(collator.getAlias(), collatorStrength); 294 ucol_setAttribute(collator.getAlias(), UCOL_NORMALIZATION_MODE, normalize, &status); 295 ucol_setAttribute(collator.getAlias(), UCOL_ALTERNATE_HANDLING, alternateHandling, &status); 298 collator.getAlias(), 336 collator.getAlias(), 442 errln("Could not open collator for %s", testCases[t].locale); 551 // Get the collator normalizatio 630 UCollator *collator = ucol_open(clocale, &status); local [all...] |
/external/sqlite/android/ |
H A D | sqlite3_android.cpp | 274 UCollator* collator; member in struct:SqliteUserData 328 UCollator* collator = (UCollator*)sqlite3_user_data(context); local 411 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1); 454 static void localized_collator_dtor(UCollator* collator) argument 456 ucol_close(collator); 461 // This collator may be removed in the near future, so you MUST not use now. 470 UCollator* collator = ucol_open(systemLocale, &status); local 475 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status); 482 ucol_getShortDefinitionString(collator, NULL, buf, 1024, &status); 485 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF16, collator, 554 UCollator * collator = ucol_open(NULL, &status); local [all...] |
/external/chromium/chrome/browser/ui/webui/options/ |
H A D | certificate_manager_handler.cc | 104 explicit DictionaryIdComparator(icu::Collator* collator) argument 105 : collator_(collator) { 883 scoped_ptr<icu::Collator> collator; local 885 collator.reset( 890 collator.reset(NULL); 891 DictionaryIdComparator comparator(collator.get());
|
/external/icu4c/tools/dumpce/ |
H A D | dumpce.cpp | 287 * Prints the attribute values in the argument collator into the output stream 288 * @param collator 290 void outputAttribute(UCollator *collator, UErrorCode *error) argument 304 int attributeval = ucol_getAttribute(collator, attribute, error); 306 fprintf(stdout, "Failure in reading collator attribute\n"); 322 * Prints the normalization mode in the argument collator into the output stream 323 * @param collator 325 void outputNormalization(UCollator *collator) argument 328 int normmode = ucol_getAttribute(collator, UCOL_NORMALIZATION_MODE, &status); 437 * Sets the collator wit 441 setAttributes(UCollator *collator, UErrorCode *error) argument [all...] |
/external/webkit/Source/WebCore/editing/ |
H A D | TextIterator.cpp | 1959 UCollator* collator = usearch_getCollator(searcher); local 1962 if (ucol_getStrength(collator) != strength) { 1963 ucol_setStrength(collator, strength);
|