Home
last modified time | relevance | path

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

123456789

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DCollatorTest.java13 import com.ibm.icu.text.Collator;
27 Collator c = Collator.getInstance(); in testHashCode()
28 c.setStrength(Collator.SECONDARY); in testHashCode()
29 Collator c2 = Collator.getInstance(); in testHashCode()
30 c2.setStrength(Collator.SECONDARY); in testHashCode()
31 Collator cn = Collator.getInstance(); in testHashCode()
32 cn.setStrength(Collator.TERTIARY); in testHashCode()
47 Collator c = Collator.getInstance(); in testSetStrength()
48 c.setStrength(Collator.PRIMARY); in testSetStrength()
50 c.setStrength(Collator.SECONDARY); in testSetStrength()
[all …]
DCollationKeyTest.java11 import com.ibm.icu.text.Collator;
19 Collator c = Collator.getInstance(); in testHashCode()
20 c.setStrength(Collator.PRIMARY); in testHashCode()
23 c.setStrength(Collator.TERTIARY); in testHashCode()
39 Collator c = Collator.getInstance(); in testCompareToCollationKey()
40 c.setStrength(Collator.PRIMARY); in testCompareToCollationKey()
43 c.setStrength(Collator.TERTIARY); in testCompareToCollationKey()
53 Collator c = Collator.getInstance(); in testCompareToObject()
54 c.setStrength(Collator.PRIMARY); in testCompareToObject()
64 Collator c = Collator.getInstance(); in testEqualsObject()
[all …]
/external/icu/icu4c/source/test/intltest/
Dallcoll.cpp49 const Collator::EComparisonResult CollationDummyTest::results[] = {
50 Collator::LESS,
51 Collator::LESS, /*Collator::GREATER,*/
52 Collator::LESS,
53 Collator::LESS,
54 Collator::LESS,
55 Collator::LESS,
56 Collator::LESS,
57 Collator::GREATER,
58 Collator::GREATER,
[all …]
Dencoll.cpp21 myCollation = Collator::createInstance(Locale::getEnglish(), status); in CollationEnglishTest()
133 static const Collator::EComparisonResult results[] = {
134 Collator::LESS,
135 Collator::LESS, /*Collator::GREATER,*/
136 Collator::LESS,
137 Collator::GREATER,
138 Collator::GREATER,
139 Collator::EQUAL,
140 Collator::LESS,
141 Collator::LESS,
[all …]
Ddecoll.cpp39 myCollation = Collator::createInstance(Locale::getGermany(), status); in CollationGermanTest()
85 const Collator::EComparisonResult CollationGermanTest::results[][2] =
88 { Collator::LESS, Collator::LESS },
89 { Collator::EQUAL, Collator::LESS },
90 { Collator::GREATER, Collator::GREATER },
91 { Collator::GREATER, Collator::GREATER },
92 { Collator::GREATER, Collator::GREATER },
93 { Collator::EQUAL, Collator::LESS },
94 { Collator::EQUAL, Collator::EQUAL },
95 { Collator::LESS, Collator::LESS },
[all …]
Dfrcoll.cpp30 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); in CollationFrenchTest()
76 const Collator::EComparisonResult CollationFrenchTest::results[] =
78 Collator::LESS,
79 Collator::LESS,
80 Collator::LESS, /*Collator::GREATER,*/
81 Collator::LESS,
82 Collator::GREATER,
83 Collator::GREATER,
84 Collator::LESS,
85 Collator::GREATER,
[all …]
Dtrcoll.cpp22 myCollation = Collator::createInstance(Locale("tr", "", ""),status); in CollationTurkishTest()
58 const Collator::EComparisonResult CollationTurkishTest::results[] = {
59 Collator::LESS,
60 Collator::LESS,
61 Collator::LESS,
62 Collator::LESS,
63 Collator::GREATER,
64 Collator::LESS,
65 Collator::LESS,
66 Collator::GREATER,
[all …]
Dsvccoll.cpp41 Collator* frcol = Collator::createInstance(FR, status); in TestRegister()
42 Collator* uscol = Collator::createInstance(US, status); in TestRegister()
51 Collator *clone = frcol->clone(); in TestRegister()
52 URegistryKey key = Collator::registerInstance(frcol, US, status); in TestRegister()
56 Collator* ncol = Collator::createInstance(US_FOO, status); in TestRegister()
79 if (!Collator::unregister(key, status)) { in TestRegister()
83 ncol = Collator::createInstance(US, status); in TestRegister()
91 frcol = Collator::createInstance(FR, status); in TestRegister()
99 Collator* fucol = Collator::createInstance(fu_FU, status); in TestRegister()
100 Collator *clone = frcol->clone(); in TestRegister()
[all …]
Djacoll.cpp23 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest()
56 const Collator::EComparisonResult CollationKanaTest::results[] = {
57 Collator::LESS,
58Collator::EQUAL, //Collator::LESS, /* Katakanas and Hiraganas are equal on tertiary level(ICU 2.…
59 Collator::LESS,
60Collator::GREATER, // Collator::LESS, /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU 2…
61 Collator::LESS,
62Collator::LESS, //Collator::GREATER /* Prolonged sound mark sorts BEFORE equivalent vowel (ICU …
108 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
122 myCollation->setStrength(Collator::PRIMARY); in TestBase()
[all …]
Descoll.cpp38 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); in CollationSpanishTest()
70 const Collator::EComparisonResult CollationSpanishTest::results[] = {
71 Collator::LESS,
72 Collator::LESS,
73 Collator::GREATER,
74 Collator::LESS,
75 Collator::LESS,
77 Collator::LESS,
78 Collator::EQUAL,
79 Collator::LESS,
[all …]
Dtscoll.h33 …void doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult r…
35 …void doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::ECo…
36 …void doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collat…
39 Collator::EComparisonResult compareResult,
40 Collator::EComparisonResult keyResult,
41 Collator::EComparisonResult incResult,
42 Collator::EComparisonResult expectedResult );
45 …static UnicodeString &appendCompareResult(Collator::EComparisonResult result, UnicodeString &targe…
Dapicoll.cpp64 Collator *col = 0; in TestProperty()
80 col = Collator::createInstance(Locale::getEnglish(), success); in TestProperty()
104 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
105 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
106 …doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
107 …doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
108 …doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
124 …doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison fai… in TestProperty()
125 …doAssert((col->compare("ab", "AB", 2) == Collator::LESS), "ab < AB with length 2 comparison faile… in TestProperty()
126 …doAssert((col->compare("ab", "Aa", 1) == Collator::LESS), "ab < Aa with length 1 comparison faile… in TestProperty()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DCollatorICU.java11 import com.ibm.icu.text.Collator;
17 public class CollatorICU extends java.text.Collator {
19 private Collator fIcuCollator;
21 private CollatorICU(Collator icuCollator) { in CollatorICU()
25 public static java.text.Collator wrap(Collator icuCollator) { in wrap()
29 public Collator unwrap() { in unwrap()
36 other.fIcuCollator = (Collator)fIcuCollator.clone(); in clone()
71 int mode = java.text.Collator.NO_DECOMPOSITION; in getDecomposition()
73 if (fIcuCollator.getStrength() == Collator.IDENTICAL) { in getDecomposition()
74 return java.text.Collator.FULL_DECOMPOSITION; in getDecomposition()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DCollator.java116 public class Collator implements Comparator<Object>, Cloneable class
121 private final java.text.Collator collator;
126 private Collator(java.text.Collator delegate) { in Collator() method in Collator
136 protected Collator() { in Collator() method in Collator
149 public final static int PRIMARY = java.text.Collator.PRIMARY;
161 public final static int SECONDARY = java.text.Collator.SECONDARY;
173 public final static int TERTIARY = java.text.Collator.TERTIARY;
187 public final static int QUATERNARY = java.text.Collator.IDENTICAL;
201 public final static int IDENTICAL = java.text.Collator.FULL_DECOMPOSITION;
209 public final static int FULL_DECOMPOSITION = java.text.Collator.FULL_DECOMPOSITION;
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationServiceTest.java22 import android.icu.text.Collator;
23 import android.icu.text.Collator.CollatorFactory;
36 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
37 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
40 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
41 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
47 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
52 if (!Collator.unregister(key)) { in TestRegister()
55 ncol = Collator.getInstance(ULocale.US); in TestRegister()
64 Collator fucol = Collator.getInstance(fu_FU); in TestRegister()
[all …]
DCollationRegressionTest.java24 import android.icu.text.Collator;
42 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
119 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()
157 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
158 c.setStrength(Collator.IDENTICAL); in Test4054734()
159 c.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in Test4054734()
163 void compareArray(Collator c, String[] tests) { in compareArray()
275 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationAPITest.java29 import android.icu.text.Collator;
30 import android.icu.text.Collator.CollatorFactory;
57 Collator col = Collator.getInstance(); in TestCollationKey()
58 col.setStrength(Collator.TERTIARY); in TestCollationKey()
97 col = Collator.getInstance(); in TestCollationKey()
101 if (col.getStrength() != Collator.TERTIARY){ in TestCollationKey()
106 col.setStrength(Collator.IDENTICAL); in TestCollationKey()
122 col.setStrength(Collator.SECONDARY); in TestCollationKey()
198 Collator col = Collator.getInstance(Locale.ENGLISH); in TestCompare()
207 col.setStrength(Collator.SECONDARY); in TestCompare()
[all …]
DCollationDummyTest.java22 import android.icu.text.Collator;
189 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
198 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
207 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
216 myCollation.setStrength(Collator.TERTIARY); in TestExtra()
226 myCollation.setStrength(Collator.IDENTICAL); in TestIdentical()
235 Collator coll = null; in TestJB581()
237 coll = Collator.getInstance(Locale.ENGLISH); in TestJB581()
251 coll.setStrength(Collator.PRIMARY); in TestJB581()
292 Collator enCollation; in TestSurrogates()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationServiceTest.java21 import com.ibm.icu.text.Collator;
22 import com.ibm.icu.text.Collator.CollatorFactory;
32 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
33 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
36 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
37 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
43 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
48 if (!Collator.unregister(key)) { in TestRegister()
51 ncol = Collator.getInstance(ULocale.US); in TestRegister()
60 Collator fucol = Collator.getInstance(fu_FU); in TestRegister()
[all …]
DCollationRegressionTest.java23 import com.ibm.icu.text.Collator;
38 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
115 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
129 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
133 c.setDecomposition(Collator.NO_DECOMPOSITION); in Test4054238()
153 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
154 c.setStrength(Collator.IDENTICAL); in Test4054734()
155 c.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in Test4054734()
159 void compareArray(Collator c, String[] tests) { in compareArray()
271 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationAPITest.java28 import com.ibm.icu.text.Collator;
29 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()
194 Collator col = Collator.getInstance(Locale.ENGLISH); in TestCompare()
203 col.setStrength(Collator.SECONDARY); in TestCompare()
[all …]
DCollationDummyTest.java21 import com.ibm.icu.text.Collator;
185 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
194 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
203 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
212 myCollation.setStrength(Collator.TERTIARY); in TestExtra()
222 myCollation.setStrength(Collator.IDENTICAL); in TestIdentical()
231 Collator coll = null; in TestJB581()
233 coll = Collator.getInstance(Locale.ENGLISH); in TestJB581()
247 coll.setStrength(Collator.PRIMARY); in TestJB581()
288 Collator enCollation; in TestSurrogates()
[all …]
/external/icu/icu4c/source/i18n/
Dcoll.cpp143 return Collator::makeInstance(loc, status); in create()
162 return ((Collator*)instance)->clone(); in cloneInstance()
175 return Collator::makeInstance(loc, status); in handleDefault()
183 return (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
316 void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) { in setAttributesFromKeywords()
422 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
427 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
438 Collator* coll; in createInstance()
442 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
457 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.java10 import java.text.Collator;
26 for (Locale loc : Collator.getAvailableLocales()) { in TestGetInstance()
32 Collator coll = Collator.getInstance(loc); in TestGetInstance()
45 Collator collIcu = Collator.getInstance(iculoc); in TestGetInstance()
86 Collator jdkColl = Collator.getInstance(iculoc); in TestICUEquivalent()
87 com.ibm.icu.text.Collator icuColl = com.ibm.icu.text.Collator.getInstance(loc); in TestICUEquivalent()
93 jdkColl.setStrength(Collator.PRIMARY); in TestICUEquivalent()
94 icuColl.setStrength(com.ibm.icu.text.Collator.PRIMARY); in TestICUEquivalent()
98 jdkColl.setStrength(Collator.SECONDARY); in TestICUEquivalent()
99 icuColl.setStrength(com.ibm.icu.text.Collator.SECONDARY); in TestICUEquivalent()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dcoll.h163 class U_I18N_API Collator : public UObject {
225 virtual ~Collator();
247 virtual UBool operator==(const Collator& other) const;
256 virtual UBool operator!=(const Collator& other) const;
263 virtual Collator* clone(void) const = 0;
284 static Collator* U_EXPORT2 createInstance(UErrorCode& err);
319 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err);
801 …static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode…
890 virtual Collator &setMaxVariable(UColReorderCode group, UErrorCode &errorCode);
977 virtual Collator* safeClone(void) const;
[all …]

123456789