/external/icu/icu4c/source/test/intltest/ |
g7coll.cpp | 101 LocalPointer<Collator> myCollation(Collator::createInstance(locale, status)); 103 errcheckln(status, "Couldn't instantiate collator. Error: %s", u_errorName(status)); 106 myCollation->setStrength(Collator::QUATERNARY); 116 dataerrln("%s Collator missing rule string", locale.getName()); 142 doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); 152 Collator *col = Collator::createInstance("en_US", status); 155 errcheckln(status, "Couldn't instantiate collator. Error: %s", u_errorName(status)); 174 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS) [all...] |
mnkytst.h | 36 // perform monkey tests using Collator::compare 49 Collator *myCollator;
|
tscoll.cpp | 60 logln("TestSuite Collator: "); 126 IntlTestCollator::doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result) 132 Collator::EComparisonResult compareResult = col->compare(source, target); 140 Collator::EComparisonResult keyResult = srckey.compareTo(tgtkey); 239 IntlTestCollator::doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult result) { 244 IntlTestCollator::doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result) 248 if(result == Collator::LESS) [all...] |
mnkytst.cpp | 35 myCollator = Collator::createInstance("en_US", status); 92 myCollator->setStrength(Collator::TERTIARY); 99 myCollator->setStrength(Collator::SECONDARY); 106 myCollator->setStrength(Collator::PRIMARY); 164 myCollator->setStrength(Collator::TERTIARY); 169 myCollator->setStrength(Collator::SECONDARY); 174 myCollator->setStrength(Collator::PRIMARY); 220 Collator *col = Collator::createInstance("en_US", status); 231 doTest(myCollation, testSourceCases[i], testTargetCases[i], Collator::LESS) [all...] |
regcoll.cpp | 27 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); 31 errcheckln(status, "Collator creation failed with %s", u_errorName(status)); 84 // Collator -> rules -> Collator round-trip broken for expanding characters 103 // Build a collator containing expanding characters 122 // Collator thinks "black-bird" == "black" 135 // Collator object's mode is changed 154 // Collator::IDENTICAL documented but not implemented 185 c->setStrength(Collator::IDENTICAL); 202 c->setStrength(Collator::SECONDARY) [all...] |
thcoll.cpp | 40 coll = Collator::createInstance(Locale("th", "TH", ""), status); 42 //coll->setStrength(Collator::TERTIARY); 57 dataerrln(__FILE__ " cannot test - failed to create collator."); 73 * Read the external names list, and confirms that the collator 79 errln("Error: could not construct Thai collator"); 108 Collator::EComparisonResult result = coll->compare(lastWord, word); 121 * sorted order, and confirm that the collator compares each line as 126 errln("Error: could not construct Thai collator"); 245 errln("Error: could not construct Thai collator"); 255 void CollationThaiTest::compareArray(Collator& c, const char* tests[] [all...] |
/external/chromium_org/third_party/libaddressinput/chromium/ |
canonicalize_string.cc | 25 icu::Collator::createInstance( 27 collator_->setStrength(icu::Collator::PRIMARY); 56 scoped_ptr<icu::Collator> collator_;
|
string_compare.cc | 23 icu::Collator::createInstance(icu::Locale::getRoot(), error_code)); 25 collator_->setStrength(icu::Collator::PRIMARY); 41 ::scoped_ptr<icu::Collator> collator_;
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
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...] |
regcoll.cpp | 26 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); 30 errcheckln(status, "Collator creation failed with %s", u_errorName(status)); 83 // Collator -> rules -> Collator round-trip broken for expanding characters 111 // Build a collator containing expanding characters 129 // Collator thinks "black-bird" == "black" 142 // Collator object's mode is changed 161 // Collator::IDENTICAL documented but not implemented 192 c->setStrength(Collator::IDENTICAL); 209 c->setStrength(Collator::SECONDARY) [all...] |
mnkytst.cpp | 35 myCollator = Collator::createInstance("en_US", status); 92 myCollator->setStrength(Collator::TERTIARY); 99 myCollator->setStrength(Collator::SECONDARY); 106 myCollator->setStrength(Collator::PRIMARY); 164 myCollator->setStrength(Collator::TERTIARY); 169 myCollator->setStrength(Collator::SECONDARY); 174 myCollator->setStrength(Collator::PRIMARY); 220 Collator *col = Collator::createInstance("en_US", status); 231 doTest(myCollation, testSourceCases[i], testTargetCases[i], Collator::LESS) [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...] |
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...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
CollationElementIteratorTest.java | 21 import java.text.Collator; 39 coll = (RuleBasedCollator) Collator.getInstance(Locale.US); 82 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US); 128 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance( 139 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance(new Locale("de", "DE")); 151 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance(new Locale("fr", "FR")); 164 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance(new Locale("fr", "FR")); 181 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance( 194 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance( 214 RuleBasedCollator rbColl = (RuleBasedCollator) Collator.getInstance [all...] |
/external/icu/icu4c/source/i18n/ |
ucol.cpp | 93 Collator *newColl = Collator::fromUCollator(coll)->clone(); 108 delete Collator::fromUCollator(coll); 201 int32_t keySize = Collator::fromUCollator(coll)-> 224 int32_t i = Collator::fromUCollator(coll)-> 305 Collator::fromUCollator(coll)->setMaxVariable(group, *pErrorCode); 310 return Collator::fromUCollator(coll)->getMaxVariable(); 318 return Collator::fromUCollator(coll)->setVariableTop(varTop, len, *status); 325 return Collator::fromUCollator(coll)->getVariableTop(*status); 333 Collator::fromUCollator(coll)->setVariableTop(varTop, *status) [all...] |
/libcore/luni/src/main/java/java/text/ |
RuleBasedCollator.java | 23 * A concrete subclass of {@link Collator}. 27 * <p>Most of the time, you create a {@link Collator} instance for a {@link java.util.Locale} 28 * by calling the {@link Collator#getInstance} factory method. 31 * <p>The root collator's sort order is the CLDR root collation order 78 public class RuleBasedCollator extends Collator { 149 * Returns the collation rules of this collator. These {@code rules} can be 160 * Returns a new collator with the same collation rules, decomposition mode and 161 * strength value as this collator. 163 * @return a shallow copy of this collator. 175 * {@code RuleBasedCollator}. See the {@code Collator} class descriptio [all...] |
/external/chromium_org/v8/test/intl/collator/ |
default-locale.js | 28 // Constructing Collator with no locale arguments or with [] 31 var collator = new Intl.Collator([]); 33 var options = collator.resolvedOptions(); 43 var collatorNone = new Intl.Collator(); 47 var collatorBraket = new Intl.Collator({}); 50 var collatorWithOptions = new Intl.Collator(undefined, {usage: 'search'});
|
/external/chromium_org/components/enhanced_bookmarks/ |
enhanced_bookmark_utils.cc | 45 explicit BookmarkNameComparator(icu::Collator* collator) 46 : collator_(collator) {} 59 icu::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/ui/base/models/ |
table_model.h | 83 // Reset the collator. 89 // Returns the collator used by CompareValues. 90 icu::Collator* GetCollator();
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
NameLookupBuilderTest.java | 24 import java.text.Collator; 187 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.CHINA)) { 200 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) { 214 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) {
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
InputMethodSubtypePreference.java | 27 import java.text.Collator; 60 int compareTo(final Preference rhs, final Collator collator) { 89 return collator.compare(t0.toString(), t1.toString());
|
/external/icu/icu4c/source/i18n/unicode/ |
tblcoll.h | 10 * \brief C++ API: The RuleBasedCollator class implements the Collator abstract base class. 31 * to be used by Collator::createDefault(). General 49 * 11/02/99 helena Collator performance enhancements. Eliminates the 93 * Collator, using data-driven tables. The user can create a customized 108 * @see Collator 110 class U_I18N_API RuleBasedCollator : public Collator { 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 collato [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
ICUTest.java | 20 import java.text.Collator; 204 Collator.getInstance(sr_Cyrl_BA); 205 Collator.getInstance(sr_Cyrl_ME); 206 Collator.getInstance(sr_Latn_BA); 207 Collator.getInstance(sr_Latn_ME); 213 Collator c = Collator.getInstance(l);
|
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
tblcoll.h | 10 * \brief C++ API: RuleBasedCollator class provides the simple implementation of Collator. 31 * to be used by Collator::createDefault(). General 49 * 11/02/99 helena Collator performance enhancements. Eliminates the 85 * Collator, using data-driven tables. The user can create a customized 108 * @see Collator 111 class U_I18N_API RuleBasedCollator : public Collator 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 collato [all...] |
/external/icu/icu4c/source/test/perf/collperf2/ |
collperf2.cpp | 464 // Test case taking a single test data array, calling Collator::compare by permuting the test data 469 CppCompare(const Collator* coll, const CA_uchar* source, UBool useLen); 475 const Collator *coll; 481 CppCompare::CppCompare(const Collator* coll, const CA_uchar* source, UBool useLen) 523 // Test case taking two test data arrays, calling Collator::compare for strings at a same index 528 CppCompare_2(const Collator* coll, const CA_uchar* source, const CA_uchar* target, UBool useLen); 534 const Collator *coll; 540 CppCompare_2::CppCompare_2(const Collator* coll, const CA_uchar* source, const CA_uchar* target, UBool useLen) 574 // Test case taking a single test data array, calling Collator::compareUTF8 by permuting the test data 579 CppCompareUTF8(const Collator* coll, const CA_char* source, UBool useLen) [all...] |