Home
last modified time | relevance | path

Searched refs:Collator (Results 1 – 25 of 193) sorted by relevance

12345678

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DCollatorTest.java15 import com.ibm.icu.text.Collator;
29 Collator c = Collator.getInstance(); in testHashCode()
30 c.setStrength(Collator.SECONDARY); in testHashCode()
31 Collator c2 = Collator.getInstance(); in testHashCode()
32 c2.setStrength(Collator.SECONDARY); in testHashCode()
33 Collator cn = Collator.getInstance(); in testHashCode()
34 cn.setStrength(Collator.TERTIARY); in testHashCode()
49 Collator c = Collator.getInstance(); in testSetStrength()
50 c.setStrength(Collator.PRIMARY); in testSetStrength()
52 c.setStrength(Collator.SECONDARY); in testSetStrength()
[all …]
DCollationKeyTest.java13 import com.ibm.icu.text.Collator;
21 Collator c = Collator.getInstance(); in testHashCode()
22 c.setStrength(Collator.PRIMARY); in testHashCode()
25 c.setStrength(Collator.TERTIARY); in testHashCode()
41 Collator c = Collator.getInstance(); in testCompareToCollationKey()
42 c.setStrength(Collator.PRIMARY); in testCompareToCollationKey()
45 c.setStrength(Collator.TERTIARY); in testCompareToCollationKey()
55 Collator c = Collator.getInstance(); in testCompareToObject()
56 c.setStrength(Collator.PRIMARY); in testCompareToObject()
66 Collator c = Collator.getInstance(); in testEqualsObject()
[all …]
/external/icu/icu4c/source/test/intltest/
Dallcoll.cpp52 const Collator::EComparisonResult CollationDummyTest::results[] = {
53 Collator::LESS,
54 Collator::LESS, /*Collator::GREATER,*/
55 Collator::LESS,
56 Collator::LESS,
57 Collator::LESS,
58 Collator::LESS,
59 Collator::LESS,
60 Collator::GREATER,
61 Collator::GREATER,
[all …]
Dencoll.cpp24 myCollation = Collator::createInstance(Locale::getEnglish(), status); in CollationEnglishTest()
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,
144 Collator::LESS,
[all …]
Ddecoll.cpp41 myCollation = Collator::createInstance(Locale::getGermany(), status); in CollationGermanTest()
87 const Collator::EComparisonResult CollationGermanTest::results[][2] =
90 { Collator::LESS, Collator::LESS },
91 { Collator::EQUAL, Collator::LESS },
92 { Collator::GREATER, Collator::GREATER },
93 { Collator::GREATER, Collator::GREATER },
94 { Collator::GREATER, Collator::GREATER },
95 { Collator::EQUAL, Collator::LESS },
96 { Collator::EQUAL, Collator::EQUAL },
97 { Collator::LESS, Collator::LESS },
[all …]
Dfrcoll.cpp33 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); in CollationFrenchTest()
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,
88 Collator::GREATER,
[all …]
Dtrcoll.cpp24 myCollation = Collator::createInstance(Locale("tr", "", ""),status); in CollationTurkishTest()
60 const Collator::EComparisonResult CollationTurkishTest::results[] = {
61 Collator::LESS,
62 Collator::LESS,
63 Collator::LESS,
64 Collator::LESS,
65 Collator::GREATER,
66 Collator::LESS,
67 Collator::LESS,
68 Collator::GREATER,
[all …]
Dsvccoll.cpp44 Collator* frcol = Collator::createInstance(FR, status); in TestRegister()
45 Collator* uscol = Collator::createInstance(US, status); in TestRegister()
54 Collator *clone = frcol->clone(); in TestRegister()
55 URegistryKey key = Collator::registerInstance(frcol, US, status); in TestRegister()
59 Collator* ncol = Collator::createInstance(US_FOO, status); in TestRegister()
82 if (!Collator::unregister(key, status)) { in TestRegister()
86 ncol = Collator::createInstance(US, status); in TestRegister()
94 frcol = Collator::createInstance(FR, status); in TestRegister()
102 Collator* fucol = Collator::createInstance(fu_FU, status); in TestRegister()
103 Collator *clone = frcol->clone(); in TestRegister()
[all …]
Djacoll.cpp25 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest()
58 const Collator::EComparisonResult CollationKanaTest::results[] = {
59 Collator::LESS,
60Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.…
61 Collator::LESS,
62Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2…
63 Collator::LESS,
64Collator::LESS, //Collator::GREATER /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU …
110 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
124 myCollation->setStrength(Collator::PRIMARY); in TestBase()
[all …]
Descoll.cpp40 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); in CollationSpanishTest()
72 const Collator::EComparisonResult CollationSpanishTest::results[] = {
73 Collator::LESS,
74 Collator::LESS,
75 Collator::GREATER,
76 Collator::LESS,
77 Collator::LESS,
79 Collator::LESS,
80 Collator::EQUAL,
81 Collator::LESS,
[all …]
Dapicoll.cpp66 Collator *col = 0; in TestProperty()
82 col = Collator::createInstance(Locale::getEnglish(), success); in TestProperty()
106 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
107 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
108 …doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
109 …doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
110 …doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
126 …doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison fai… in TestProperty()
127 …doAssert((col->compare("ab", "AB", 2) == Collator::LESS), "ab < AB with length 2 comparison faile… in TestProperty()
128 …doAssert((col->compare("ab", "Aa", 1) == Collator::LESS), "ab < Aa with length 1 comparison faile… in TestProperty()
[all …]
Dtscoll.h35 …void doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult r…
37 …void doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::ECo…
38 …void doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collat…
41 Collator::EComparisonResult compareResult,
42 Collator::EComparisonResult keyResult,
43 Collator::EComparisonResult incResult,
44 Collator::EComparisonResult expectedResult );
47 …static UnicodeString &appendCompareResult(Collator::EComparisonResult result, UnicodeString &targe…
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DCollatorICU.java13 import com.ibm.icu.text.Collator;
19 public class CollatorICU extends java.text.Collator {
21 private Collator fIcuCollator;
23 private CollatorICU(Collator icuCollator) { in CollatorICU()
27 public static java.text.Collator wrap(Collator icuCollator) { in wrap()
31 public Collator unwrap() { in unwrap()
39 other.fIcuCollator = (Collator)fIcuCollator.clone(); in clone()
80 int mode = java.text.Collator.NO_DECOMPOSITION; in getDecomposition()
82 if (fIcuCollator.getStrength() == Collator.IDENTICAL) { in getDecomposition()
83 return java.text.Collator.FULL_DECOMPOSITION; in getDecomposition()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationServiceTest.java25 import com.ibm.icu.text.Collator;
26 import com.ibm.icu.text.Collator.CollatorFactory;
33 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
34 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
37 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
38 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
44 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
49 if (!Collator.unregister(key)) { in TestRegister()
52 ncol = Collator.getInstance(ULocale.US); in TestRegister()
61 Collator fucol = Collator.getInstance(fu_FU); in TestRegister()
[all …]
DCollationAPITest.java32 import com.ibm.icu.text.Collator;
33 import com.ibm.icu.text.Collator.CollatorFactory;
53 Collator col = Collator.getInstance(); in TestCollationKey()
54 col.setStrength(Collator.TERTIARY); in TestCollationKey()
93 col = Collator.getInstance(); in TestCollationKey()
97 if (col.getStrength() != Collator.TERTIARY){ in TestCollationKey()
102 col.setStrength(Collator.IDENTICAL); in TestCollationKey()
118 col.setStrength(Collator.SECONDARY); in TestCollationKey()
196 Collator col = Collator.getInstance(Locale.ENGLISH); in TestCompare()
205 col.setStrength(Collator.SECONDARY); in TestCompare()
[all …]
DCollationRegressionTest.java27 import com.ibm.icu.text.Collator;
39 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
118 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
133 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
137 c.setDecomposition(Collator.NO_DECOMPOSITION); in Test4054238()
158 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
159 c.setStrength(Collator.IDENTICAL); in Test4054734()
160 c.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in Test4054734()
164 void compareArray(Collator c, String[] tests) { in compareArray()
277 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationDummyTest.java26 import com.ibm.icu.text.Collator;
188 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
198 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
208 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
218 myCollation.setStrength(Collator.TERTIARY); in TestExtra()
229 myCollation.setStrength(Collator.IDENTICAL); in TestIdentical()
239 Collator coll = null; in TestJB581()
241 coll = Collator.getInstance(Locale.ENGLISH); in TestJB581()
255 coll.setStrength(Collator.PRIMARY); in TestJB581()
297 Collator enCollation; in TestSurrogates()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationServiceTest.java26 import android.icu.text.Collator;
27 import android.icu.text.Collator.CollatorFactory;
34 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
35 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
38 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
39 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
45 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
50 if (!Collator.unregister(key)) { in TestRegister()
53 ncol = Collator.getInstance(ULocale.US); in TestRegister()
62 Collator fucol = Collator.getInstance(fu_FU); in TestRegister()
[all …]
DCollationAPITest.java33 import android.icu.text.Collator;
34 import android.icu.text.Collator.CollatorFactory;
54 Collator col = Collator.getInstance(); in TestCollationKey()
55 col.setStrength(Collator.TERTIARY); in TestCollationKey()
94 col = Collator.getInstance(); in TestCollationKey()
98 if (col.getStrength() != Collator.TERTIARY){ in TestCollationKey()
103 col.setStrength(Collator.IDENTICAL); in TestCollationKey()
119 col.setStrength(Collator.SECONDARY); in TestCollationKey()
197 Collator col = Collator.getInstance(Locale.ENGLISH); in TestCompare()
206 col.setStrength(Collator.SECONDARY); in TestCompare()
[all …]
DCollationRegressionTest.java28 import android.icu.text.Collator;
40 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
119 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
134 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
138 c.setDecomposition(Collator.NO_DECOMPOSITION); in Test4054238()
159 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
160 c.setStrength(Collator.IDENTICAL); in Test4054734()
161 c.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in Test4054734()
165 void compareArray(Collator c, String[] tests) { in compareArray()
278 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationDummyTest.java27 import android.icu.text.Collator;
189 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
199 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
209 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
219 myCollation.setStrength(Collator.TERTIARY); in TestExtra()
230 myCollation.setStrength(Collator.IDENTICAL); in TestIdentical()
240 Collator coll = null; in TestJB581()
242 coll = Collator.getInstance(Locale.ENGLISH); in TestJB581()
256 coll.setStrength(Collator.PRIMARY); in TestJB581()
298 Collator enCollation; in TestSurrogates()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DCollator.java118 public class Collator implements Comparator<Object>, Cloneable class
123 private final java.text.Collator collator;
128 private Collator(java.text.Collator delegate) { in Collator() method in Collator
138 protected Collator() { in Collator() method in Collator
151 public final static int PRIMARY = java.text.Collator.PRIMARY;
163 public final static int SECONDARY = java.text.Collator.SECONDARY;
175 public final static int TERTIARY = java.text.Collator.TERTIARY;
189 public final static int QUATERNARY = java.text.Collator.IDENTICAL;
203 public final static int IDENTICAL = java.text.Collator.FULL_DECOMPOSITION;
211 public final static int FULL_DECOMPOSITION = java.text.Collator.FULL_DECOMPOSITION;
[all …]
/external/icu/icu4c/source/i18n/
Dcoll.cpp145 return Collator::makeInstance(loc, status); in create()
164 return ((Collator*)instance)->clone(); in cloneInstance()
177 return Collator::makeInstance(loc, status); in handleDefault()
185 return (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
318 void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) { in setAttributesFromKeywords()
424 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
429 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
440 Collator* coll; in createInstance()
444 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
459 Collator* Collator::makeInstance(const Locale& desiredLocale, UErrorCode& status) { in makeInstance()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DCollatorTest.java12 import java.text.Collator;
27 for (Locale loc : Collator.getAvailableLocales()) { in TestGetInstance()
33 Collator coll = Collator.getInstance(loc); in TestGetInstance()
46 Collator collIcu = Collator.getInstance(iculoc); in TestGetInstance()
88 Collator jdkColl = Collator.getInstance(iculoc); in TestICUEquivalent()
89 com.ibm.icu.text.Collator icuColl = com.ibm.icu.text.Collator.getInstance(loc); in TestICUEquivalent()
95 jdkColl.setStrength(Collator.PRIMARY); in TestICUEquivalent()
96 icuColl.setStrength(com.ibm.icu.text.Collator.PRIMARY); in TestICUEquivalent()
100 jdkColl.setStrength(Collator.SECONDARY); in TestICUEquivalent()
101 icuColl.setStrength(com.ibm.icu.text.Collator.SECONDARY); in TestICUEquivalent()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dcoll.h165 class U_I18N_API Collator : public UObject {
230 virtual ~Collator();
252 virtual UBool operator==(const Collator& other) const;
261 virtual UBool operator!=(const Collator& other) const;
268 virtual Collator* clone(void) const = 0;
289 static Collator* U_EXPORT2 createInstance(UErrorCode& err);
324 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err);
806 …static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode…
895 virtual Collator &setMaxVariable(UColReorderCode group, UErrorCode &errorCode);
982 virtual Collator* safeClone(void) const;
[all …]

12345678