/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/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...] |
ucol_bld.h | 16 * This module builds a collator based on the rule set.
|
/external/icu4c/test/intltest/ |
g7coll.cpp | 97 Collator *myCollation= 0; 102 myCollation = Collator::createInstance(locales[i], status); 105 errcheckln(status, "Couldn't instantiate collator. Error: %s", u_errorName(status)); 108 myCollation->setStrength(Collator::QUATERNARY); 149 doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); 162 Collator *col = Collator::createInstance("en_US", status); 165 errcheckln(status, "Couldn't instantiate collator. Error: %s", u_errorName(status)); 184 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); 196 Collator *col = Collator::createInstance("en_US", status) [all...] |
itercoll.cpp | 29 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); 33 errcheckln(status, "Collator creation failed with %s", u_errorName(status)); 149 Collator *c4 = Collator::createInstance(Locale("th", "TH", ""), status); 151 errln("Couldn't create a collator"); 159 Collator *c5 = Collator::createInstance(Locale("ja", "JP", ""), status); 163 errln("Couldn't create Japanese collator\n"); 407 (RuleBasedCollator *)Collator::createInstance(status); 411 errln("Couldn't create a default collator.") [all...] |
tscoll.cpp | 72 logln("TestSuite Collator: "); 144 IntlTestCollator::doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result) 150 Collator::EComparisonResult compareResult = col->compare(source, target); 158 Collator::EComparisonResult keyResult = srckey.compareTo(tgtkey); 257 IntlTestCollator::doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult result) { 262 IntlTestCollator::doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result) 266 if(result == Collator::LESS) [all...] |
allcoll.h | 9 * a customized collator object. For example, number 1 to be sorted 50 static const Collator::EComparisonResult results[];
|
decoll.h | 43 static const Collator::EComparisonResult results[][2]; 45 Collator *myCollation;
|
escoll.h | 42 static const Collator::EComparisonResult results[]; 44 Collator *myCollation;
|
ficoll.h | 41 static const Collator::EComparisonResult results[]; 43 Collator *myCollation;
|
frcoll.h | 44 static const Collator::EComparisonResult results[]; 47 Collator *myCollation;
|
jacoll.h | 53 static const Collator::EComparisonResult results[]; 60 Collator *myCollation;
|
mnkytst.h | 36 // perform monkey tests using Collator::compare 49 Collator *myCollator;
|
srchtest.h | 39 RuleBasedCollator * getCollator(const char *collator); 42 Collator::ECollationStrength getECollationStrength(
|
trcoll.h | 42 static const Collator::EComparisonResult results[]; 44 Collator *myCollation;
|
thcoll.cpp | 39 coll = Collator::createInstance(Locale("th", "TH", ""), status); 41 //coll->setStrength(Collator::TERTIARY); 56 dataerrln(__FILE__ " cannot test - failed to create collator."); 72 * Read the external names list, and confirms that the collator 78 errln("Error: could not construct Thai collator"); 107 Collator::EComparisonResult result = coll->compare(lastWord, word); 120 * sorted order, and confirm that the collator compares each line as 125 errln("Error: could not construct Thai collator"); 244 errln("Error: could not construct Thai collator"); 254 void CollationThaiTest::compareArray(Collator& c, const char* tests[] [all...] |
/development/apps/Development/src/com/android/development/ |
AppHwConfigList.java | 34 import java.text.Collator; 149 return collator.compare(sa, sb); 151 private final Collator collator = Collator.getInstance();
|
RunningProcesses.java | 32 import java.text.Collator; 140 return collator.compare(sa, sb); 142 private final Collator collator = Collator.getInstance();
|
/external/chromium/chrome/browser/ |
background_application_list_model.cc | 27 explicit ExtensionNameComparator(icu::Collator* collator); 31 icu::Collator* collator_; 34 ExtensionNameComparator::ExtensionNameComparator(icu::Collator* collator) 35 : collator_(collator) { 85 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error)); 87 ExtensionNameComparator(collator.get())) [all...] |
/external/icu4c/i18n/unicode/ |
ucol.h | 24 * \brief C API: Collator 26 * <h2> Collator C API </h2> 28 * The C API for Collator performs locale-sensitive 55 /** A collator. 59 /** structure representing a collator object instance 211 * Use this to set the strength of a Collator object. 216 * differences. Use this to set the strength of a Collator object. 221 * all comparison differences. Use this to set the strength of a Collator 345 * The "UCA rules" are an <i>approximation</i> of the root collator's sort order. 356 * service. After finished, collator must be disposed of by callin [all...] |
/external/icu4c/samples/coll/ |
readme.txt | 2 coll: a sample program which compares 2 strings with a user-defined collator. 5 Creating a user-defined collator 6 Comparing 2 string using the collator created
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldCollationElementIteratorTest.java | 21 import java.text.Collator; 29 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US);
|
/external/chromium/base/i18n/ |
file_util_icu.cc | 91 // We are not sure if Collator::compare is thread-safe. 109 // Use the default collator. The default locale should have been properly 111 collator_.reset(icu::Collator::createInstance(error_code)); 114 collator_->setStrength(icu::Collator::TERTIARY); 122 scoped_ptr<icu::Collator> collator_; 189 // ICU's collator can take strings in OS native encoding. But we convert the
|
/external/icu4c/test/cintltst/ |
cjaptst.c | 122 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status)); 143 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", 164 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", 188 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", 213 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", 239 log_err_status(status, "ERROR: in creation of rule based collator: %s\n",
|
/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...] |