/packages/apps/Launcher3/src/com/android/launcher3/util/ |
LabelComparator.java | 18 import java.text.Collator; 22 * Extension of {@link java.text.Collator} with special handling for digits. Used for comparing 27 private final Collator mCollator = Collator.getInstance();
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
CollatorProviderICU.java | 11 import java.text.Collator; 21 public Collator getInstance(Locale locale) { 22 com.ibm.icu.text.Collator icuCollator = com.ibm.icu.text.Collator.getInstance(
|
/external/icu/icu4c/source/test/intltest/ |
encoll.cpp | 24 myCollation = Collator::createInstance(Locale::getEnglish(), status); 136 static const Collator::EComparisonResult results[] = { 137 Collator::LESS, 138 Collator::LESS, /*Collator::GREATER,*/ 139 Collator::LESS, 140 Collator::GREATER, 141 Collator::GREATER, 142 Collator::EQUAL, 143 Collator::LESS [all...] |
frcoll.h | 46 static const Collator::EComparisonResult results[]; 49 Collator *myCollation;
|
thcoll.h | 23 Collator* coll; // Thai collator 36 * sorted order, and confirm that the collator compares each line as 48 * Read the external names list, and confirms that the collator 66 void compareArray(Collator& c, const char* tests[],
|
frcoll.cpp | 33 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); 79 const Collator::EComparisonResult CollationFrenchTest::results[] = 81 Collator::LESS, 82 Collator::LESS, 83 Collator::LESS, /*Collator::GREATER,*/ 84 Collator::LESS, 85 Collator::GREATER, 86 Collator::GREATER, 87 Collator::LESS [all...] |
svccoll.cpp | 44 Collator* frcol = Collator::createInstance(FR, status); 45 Collator* uscol = Collator::createInstance(US, status); 53 { // try override en_US collator 54 Collator *clone = frcol->clone(); 55 URegistryKey key = Collator::registerInstance(frcol, US, status); 59 Collator* ncol = Collator::createInstance(US_FOO, status); 61 errln("register of french collator for en_US failed on request for en_US_FOO") 220 Collator* collator; member in struct:CollatorInfo [all...] |
jacoll.cpp | 25 myCollation = Collator::createInstance(Locale::getJapan(), status); 58 const Collator::EComparisonResult CollationKanaTest::results[] = { 59 Collator::LESS, 60 Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.0)*/ 61 Collator::LESS, 62 Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2.0)*/ 63 Collator::LESS, 64 Collator::LESS, //Collator::GREATER /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2.0)*//* (…) [all...] |
currcoll.cpp | 84 Collator::EComparisonResult expectedResult = Collator::EQUAL; 85 RuleBasedCollator *c = (RuleBasedCollator *)Collator::createInstance("en_US", status); 89 errcheckln (status, "Collator::createInstance() failed! - %s", u_errorName(status)); 104 expectedResult = Collator::LESS; 108 expectedResult = Collator::EQUAL; 112 expectedResult = Collator::GREATER; 115 Collator::EComparisonResult compareResult = c->compare(source, target); 136 Collator::EComparisonResult keyResult = sourceKey.compareTo(targetKey);
|
jacoll.h | 55 static const Collator::EComparisonResult results[]; 62 Collator *myCollation;
|
allcoll.h | 11 * a customized collator object. For example, number 1 to be sorted 52 static const Collator::EComparisonResult results[];
|
encoll.h | 45 Collator *myCollation;
|
/libcore/benchmarks/src/benchmarks/regression/ |
CollatorBenchmark.java | 19 import java.text.Collator; 25 private static final RuleBasedCollator collator = (RuleBasedCollator) field in class:CollatorBenchmark 26 Collator.getInstance(Locale.US); 29 collator.setStrength(Collator.PRIMARY); 31 collator.compare("abcde", "abcdf"); 32 collator.compare("abcde", "abcde"); 33 collator.compare("abcdf", "abcde"); 38 collator.setStrength(Collator.SECONDARY) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
CollationAPITest.java | 16 package android.icu.dev.test.collator; 35 import android.icu.text.Collator; 36 import android.icu.text.Collator.CollatorFactory; 51 * - Collator.getCollationKey 59 Collator col = Collator.getInstance(); 60 col.setStrength(Collator.TERTIARY); 99 col = Collator.getInstance(); 101 errln("Collator.getInstance() failed"); 103 if (col.getStrength() != Collator.TERTIARY) 931 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); local [all...] |
CollationRegressionTest.java | 16 package android.icu.dev.test.collator; 30 import android.icu.text.Collator; 45 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); 86 // Collator -> rules -> Collator round-trip broken for expanding characters 92 // Build a collator containing expanding characters 120 // Collator thinks "black-bird" == "black" 124 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); 133 // Collator object's mode is changed 139 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US) 1050 RuleBasedCollator collator = new RuleBasedCollator("&a<\\u00e0=a\\u0300"); local 1131 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(Locale.US); local [all...] |
CollationThreadTest.java | 11 package android.icu.dev.test.collator; 21 import android.icu.text.Collator; 29 final Collator collator = Collator.getInstance(new Locale("pl", "", "")); external variable declarations 140 sort(temporaryData, collator); 153 private static void sort(String[] data, Collator collator) { 154 Arrays.sort(data, collator); 192 private Collator collator field in class:CollationThreadTest.Test [all...] |
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
CollationAPITest.java | 15 package com.ibm.icu.dev.test.collator; 34 import com.ibm.icu.text.Collator; 35 import com.ibm.icu.text.Collator.CollatorFactory; 48 * - Collator.getCollationKey 56 Collator col = Collator.getInstance(); 57 col.setStrength(Collator.TERTIARY); 96 col = Collator.getInstance(); 98 errln("Collator.getInstance() failed"); 100 if (col.getStrength() != Collator.TERTIARY) 928 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); local [all...] |
CollationRegressionTest.java | 15 package com.ibm.icu.dev.test.collator; 29 import com.ibm.icu.text.Collator; 42 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); 83 // Collator -> rules -> Collator round-trip broken for expanding characters 89 // Build a collator containing expanding characters 117 // Collator thinks "black-bird" == "black" 121 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); 130 // Collator object's mode is changed 136 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US) 1047 RuleBasedCollator collator = new RuleBasedCollator("&a<\\u00e0=a\\u0300"); local 1128 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(Locale.US); local [all...] |
CollationThreadTest.java | 10 package com.ibm.icu.dev.test.collator; 20 import com.ibm.icu.text.Collator; 26 final Collator collator = Collator.getInstance(new Locale("pl", "", "")); external variable declarations 137 sort(temporaryData, collator); 150 private static void sort(String[] data, Collator collator) { 151 Arrays.sort(data, collator); 189 private Collator collator field in class:CollationThreadTest.Test [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
coll.h | 42 * 11/02/99 helena Collator performance enhancements. Eliminates the 85 * The <code>Collator</code> class performs locale-sensitive string 90 * <code>Collator</code> is an abstract base class. Subclasses implement 98 * <code>Collator</code> object for a given locale. You will only need to 99 * look at the subclasses of <code>Collator</code> if you need to 104 * <code>Collator</code> for the default locale. 110 * Collator* myCollator = Collator::createInstance(success); 119 * You can set a <code>Collator</code>'s <em>strength</em> attribute to 131 * //Get the Collator for US English and set its strength to PRIMAR [all...] |
/libcore/ojluni/src/main/java/java/text/ |
PatternEntry.java | 120 if (strength == Collator.PRIMARY || lastEntry != null) 134 case Collator.IDENTICAL: toAddTo.append('='); break; 135 case Collator.TERTIARY: toAddTo.append(','); break; 136 case Collator.SECONDARY: toAddTo.append(';'); break; 137 case Collator.PRIMARY: toAddTo.append('<'); break; 228 newStrength = Collator.IDENTICAL; break; 230 newStrength = Collator.TERTIARY; break; 232 newStrength = Collator.SECONDARY; break; 234 newStrength = Collator.PRIMARY; break;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
RuleBasedCollatorTest.java | 23 import java.text.Collator; 51 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US); 63 assertEquals(Collator.TERTIARY, coll.getStrength()); 64 assertEquals(Collator.NO_DECOMPOSITION, coll.getDecomposition()); 68 coll.setStrength(Collator.PRIMARY); 71 coll.setStrength(Collator.TERTIARY); 72 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 83 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.GERMAN); 103 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(locale); 120 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(locale) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
NameNormalizer.java | 22 import java.text.Collator; 49 sCachedCompressingCollator = (RuleBasedCollator) Collator.getInstance(locale); 50 sCachedCompressingCollator.setStrength(Collator.PRIMARY); 51 sCachedCompressingCollator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 53 sCachedComplexityCollator = (RuleBasedCollator) Collator.getInstance(locale); 54 sCachedComplexityCollator.setStrength(Collator.SECONDARY);
|
/external/icu/icu4c/source/i18n/ |
coll.cpp | 73 * Release all static memory held by collator. 147 return Collator::makeInstance(loc, status); 157 : ICULocaleService(UNICODE_STRING_SIMPLE("Collator")) 166 return ((Collator*)instance)->clone(); 179 return Collator::makeInstance(loc, status); 187 return (Collator*)ICULocaleService::getKey(key, actualReturn, status); 261 // Collator public methods ----------------------------------------------- 320 void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) { 426 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
NodeSortKey.java | 23 import java.text.Collator; 48 /** Collator instance */ 49 Collator m_col; 119 m_col = Collator.getInstance(m_locale); 124 new Object[]{ langValue }); //"Could not find Collator for <sort xml:lang="+langValue); 126 m_col = Collator.getInstance();
|