Home
last modified time | relevance | path

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

1234

/external/icu4c/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 …]
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 …]
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 …]
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 …]
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 …]
Dsvccoll.cpp42 Collator* frcol = Collator::createInstance(FR, status); in TestRegister()
43 Collator* uscol = Collator::createInstance(US, status); in TestRegister()
52 URegistryKey key = Collator::registerInstance(frcol, US, status); in TestRegister()
54 Collator* ncol = Collator::createInstance(US_FOO, status); in TestRegister()
82 if (!Collator::unregister(key, status)) { in TestRegister()
87 ncol = Collator::createInstance(US, status); in TestRegister()
95 frcol = Collator::createInstance(FR, status); in TestRegister()
103 Collator* fucol = Collator::createInstance(fu_FU, status); in TestRegister()
104 URegistryKey key = Collator::registerInstance(frcol, fu_FU, status); in TestRegister()
105 Collator* ncol = Collator::createInstance(fu_FU_FOO, status); in TestRegister()
[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 …]
Dapicoll.cpp66 Collator *collator1, *collator2; in TestOpenVersion()
70 collator1=Collator::createInstance(locale, errorCode); in TestOpenVersion()
77 collator2=Collator::createInstance(locale, version1, errorCode); in TestOpenVersion()
98 Collator *col = 0; in TestProperty()
114 col = Collator::createInstance(Locale::getEnglish(), success); in TestProperty()
138 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
139 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
140 …doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
141 …doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
142 …doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
[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…
Dficoll.cpp36 myCollation = Collator::createInstance(Locale("fi", "FI", "", "collation=standard"),status); in CollationFinnishTest()
60 const Collator::EComparisonResult CollationFinnishTest::results[] = {
61 Collator::GREATER,
62 Collator::LESS,
63 Collator::GREATER,
64 Collator::LESS,
66 Collator::EQUAL,
72 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
80 myCollation->setStrength(Collator::PRIMARY); in TestPrimary()
Dg7coll.cpp97 Collator *myCollation= 0; in TestG7Locales()
102 myCollation = Collator::createInstance(locales[i], status); in TestG7Locales()
108 myCollation->setStrength(Collator::QUATERNARY); in TestG7Locales()
149 … doTest(tblColl1, testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales()
162 Collator *col = Collator::createInstance("en_US", status); in TestDemo1()
184 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1()
196 Collator *col = Collator::createInstance("en_US", status); in TestDemo2()
218 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS); in TestDemo2()
230 Collator *col = Collator::createInstance("en_US", status); in TestDemo3()
252 … doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS); in TestDemo3()
[all …]
Dregcoll.cpp26 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationRegressionTest()
192 c->setStrength(Collator::IDENTICAL); in Test4054734()
209 c->setStrength(Collator::SECONDARY); in Test4054736()
242 Collator *c = NULL; in Test4058613()
244 c = Collator::createInstance("en_US", status); in Test4058613()
345 c->setStrength(Collator::TERTIARY); in Test4060154()
360 c->setStrength(Collator::PRIMARY); in Test4060154()
376 c = (RuleBasedCollator *) Collator::createInstance(Locale::getCanadaFrench(), status); in Test4062418()
385 c->setStrength(Collator::SECONDARY); in Test4062418()
456 c = (RuleBasedCollator *)Collator::createInstance(Locale::getCanadaFrench(), status); in Test4066696()
[all …]
Dcurrcoll.cpp83 Collator::EComparisonResult expectedResult = Collator::EQUAL; in currencyTest()
84 RuleBasedCollator *c = (RuleBasedCollator *)Collator::createInstance("en_US", status); in currencyTest()
103 expectedResult = Collator::LESS; in currencyTest()
107 expectedResult = Collator::EQUAL; in currencyTest()
111 expectedResult = Collator::GREATER; in currencyTest()
114 Collator::EComparisonResult compareResult = c->compare(source, target); in currencyTest()
135 Collator::EComparisonResult keyResult = sourceKey.compareTo(targetKey); in currencyTest()
Ddadrcoll.cpp42 UCA = (RuleBasedCollator*)Collator::createInstance("root", status); in DataDrivenCollatorTest()
107 el.relation = Collator::LESS; in getNextInSequence()
111 el.relation = Collator::EQUAL; in getNextInSequence()
115 el.relation = Collator::GREATER; in getNextInSequence()
149 DataDrivenCollatorTest::processArguments(Collator *col, const UChar *start, int32_t optLen) { in processArguments()
169 Collator *col = NULL; in processTest()
183 col = Collator::createInstance(localeName, status); in processTest()
261 DataDrivenCollatorTest::processSequence(Collator* col, const UnicodeString &sequence) { in processSequence()
262 Collator::EComparisonResult relation = Collator::EQUAL; in processSequence()
276 relation = Collator::EQUAL; in processSequence()
[all …]
Dtscoll.cpp142 IntlTestCollator::doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &ta… in doTestVariant()
148 Collator::EComparisonResult compareResult = col->compare(source, target); in doTestVariant()
156 Collator::EComparisonResult keyResult = srckey.compareTo(tgtkey); in doTestVariant()
255 IntlTestCollator::doTest(Collator* col, const UChar *source, const UChar *target, Collator::ECompar… in doTest()
260 IntlTestCollator::doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, C… in doTest()
264 if(result == Collator::LESS) { in doTest()
265 doTestVariant(col, target, source, Collator::GREATER); in doTest()
266 } else if (result == Collator::GREATER) { in doTest()
267 doTestVariant(col, target, source, Collator::LESS); in doTest()
286 Collator::EComparisonResult compareResult, in reportCResult()
[all …]
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DCollatorTest.java19 import java.text.Collator;
30 Collator c = Collator.getInstance(Locale.GERMAN); in test_clone()
31 Collator c2 = (Collator) c.clone(); in test_clone()
40 Collator c = Collator.getInstance(Locale.FRENCH); in test_compareLjava_lang_ObjectLjava_lang_Object()
43 c.setStrength(Collator.IDENTICAL); in test_compareLjava_lang_ObjectLjava_lang_Object()
62 c.setStrength(Collator.TERTIARY); in test_compareLjava_lang_ObjectLjava_lang_Object()
79 c.setStrength(Collator.SECONDARY); in test_compareLjava_lang_ObjectLjava_lang_Object()
96 c.setStrength(Collator.PRIMARY); in test_compareLjava_lang_ObjectLjava_lang_Object()
126 Collator c = Collator.getInstance(Locale.ENGLISH); in test_equalsLjava_lang_Object()
127 Collator c2 = (Collator) c.clone(); in test_equalsLjava_lang_Object()
[all …]
DCollationKeyTest.java20 import java.text.Collator;
31 Collator collator = Collator.getInstance(); in test_compareToLjava_text_CollationKey()
32 collator.setStrength(Collator.PRIMARY); in test_compareToLjava_text_CollationKey()
44 Collator collator = Collator.getInstance(); in test_compareToLjava_lang_Object()
45 collator.setStrength(Collator.PRIMARY); in test_compareToLjava_lang_Object()
55 Collator collator = Collator.getInstance(); in test_equalsLjava_lang_Object()
56 collator.setStrength(Collator.PRIMARY); in test_equalsLjava_lang_Object()
66 Collator collator = Collator.getInstance(); in test_getSourceString()
67 collator.setStrength(Collator.PRIMARY); in test_getSourceString()
78 Collator collator = Collator.getInstance(); in test_hashCode()
[all …]
DRuleBasedCollatorTest.java23 import java.text.Collator;
63 RuleBasedCollator coll = (RuleBasedCollator) Collator in testClone()
79 assertEquals(Collator.TERTIARY, coll.getStrength()); in testEqualsObject()
80 assertEquals(Collator.NO_DECOMPOSITION, coll.getDecomposition()); in testEqualsObject()
84 coll.setStrength(Collator.PRIMARY); in testEqualsObject()
87 coll.setStrength(Collator.TERTIARY); in testEqualsObject()
88 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in testEqualsObject()
102 RuleBasedCollator coll = (RuleBasedCollator) Collator in testGetCollationKey()
128 RuleBasedCollator coll = (RuleBasedCollator) Collator in testGetCollationElementIteratorString()
146 RuleBasedCollator coll = (RuleBasedCollator) Collator in testGetCollationElementIteratorString()
[all …]
/external/icu4c/i18n/
Dcoll.cpp130 return Collator::makeInstance(loc, status); in create()
147 return ((Collator*)instance)->clone(); in cloneInstance()
160 return Collator::makeInstance(loc, status); in handleDefault()
168 Collator* result = (Collator*)ICULocaleService::getKey(key, actualReturn, status); in getKey()
231 Collator::createUCollator(const char *loc, in createUCollator()
237 Collator *col = (Collator*)gService->get(desiredLocale, *status); in createUCollator()
306 Collator* U_EXPORT2 Collator::createInstance(UErrorCode& success) in createInstance()
311 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance()
320 Collator *result = in createInstance()
321 (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
[all …]
/external/webkit/Source/JavaScriptCore/wtf/unicode/
DCollatorDefault.cpp36 Collator::Collator(const char*) in Collator() function in WTF::Collator
40 Collator::~Collator() in ~Collator()
44 void Collator::setOrderLowerFirst(bool) in setOrderLowerFirst()
48 PassOwnPtr<Collator> Collator::userDefault() in userDefault()
50 return new Collator(0); in userDefault()
54 Collator::Result Collator::collate(const UChar* lhs, size_t lhsLength, const UChar* rhs, size_t rhs… in collate()
DCollator.h43 class Collator {
44 WTF_MAKE_NONCOPYABLE(Collator); WTF_MAKE_FAST_ALLOCATED;
48Collator(const char* locale); // Parsing is lenient; e.g. language identifiers (such as "en-US") a…
49 ~Collator();
52 static PassOwnPtr<Collator> userDefault();
67 using WTF::Collator;
/external/webkit/Source/JavaScriptCore/wtf/unicode/icu/
DCollatorICU.cpp53 Collator::Collator(const char* locale) in Collator() function in WTF::Collator
60 PassOwnPtr<Collator> Collator::userDefault() in userDefault()
73 return adoptPtr(new Collator("")); in userDefault()
75 return adoptPtr(new Collator(buf)); in userDefault()
77 return adoptPtr(new Collator(0)); in userDefault()
81 Collator::~Collator() in ~Collator()
87 void Collator::setOrderLowerFirst(bool lowerFirst) in setOrderLowerFirst()
92 Collator::Result Collator::collate(const UChar* lhs, size_t lhsLength, const UChar* rhs, size_t rhs… in collate()
100 void Collator::createCollator() const in createCollator()
136 void Collator::releaseCollator() in releaseCollator()
/external/icu4c/i18n/unicode/
Dtblcoll.h111 class U_I18N_API RuleBasedCollator : public Collator
224 virtual UBool operator==(const Collator& other) const;
232 virtual UBool operator!=(const Collator& other) const;
240 virtual Collator* clone(void) const;
619 virtual Collator* safeClone(void);
797 friend class Collator; variable
893 Collator::EComparisonResult getEComparisonResult(
901 Collator::ECollationStrength getECollationStrength(
910 const Collator::ECollationStrength &strength) const;
939 inline Collator::EComparisonResult RuleBasedCollator::getEComparisonResult( in getEComparisonResult()
[all …]
Dcoll.h177 class U_I18N_API Collator : public UObject {
239 virtual ~Collator();
249 virtual UBool operator==(const Collator& other) const;
257 virtual UBool operator!=(const Collator& other) const;
264 virtual Collator* clone(void) const = 0;
285 static Collator* U_EXPORT2 createInstance(UErrorCode& err);
310 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err);
336 static Collator *createInstance(const Locale &loc, UVersionInfo version, UErrorCode &err);
781 …static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode…
903 virtual Collator* safeClone(void) = 0;
[all …]

1234