Lines Matching refs:Collator

66     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()
129 …doAssert((col->compare("ab", "Aa", 2) == Collator::GREATER), "ab > Aa with length 2 comparison fa… in TestProperty()
130 …doAssert((col->compare("black-bird", "blackbird", 5) == Collator::EQUAL), "black-bird = blackbird … in TestProperty()
131 …doAssert((col->compare("black bird", "black-bird", 10) == Collator::LESS), "black bird < black-bir… in TestProperty()
132 …doAssert((col->compare("Hello", "hello", 5) == Collator::GREATER), "Hello > hello with length 5 co… in TestProperty()
138 doAssert((col->getStrength() == Collator::TERTIARY), "collation object has the wrong strength"); in TestProperty()
139 …doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
143 col->setStrength(Collator::SECONDARY); in TestProperty()
144 …doAssert((col->getStrength() != Collator::TERTIARY), "collation object's strength is secondary dif… in TestProperty()
145 …doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
146 … doAssert((col->getStrength() == Collator::SECONDARY), "collation object has the wrong strength"); in TestProperty()
151 logln(Collator::getDisplayName(Locale::getUS(), Locale::getGerman(), name)); in TestProperty()
155 logln(Collator::getDisplayName(Locale::getUS(), Locale::getEnglish(), name)); in TestProperty()
161 logln(Collator::getDisplayName(Locale::US, name)); in TestProperty()
165 RuleBasedCollator *rcol = (RuleBasedCollator *)Collator::createInstance("da_DK", in TestProperty()
179 col = Collator::createInstance(Locale::getFrench(), success); in TestProperty()
186 col->setStrength(Collator::PRIMARY); in TestProperty()
188 doAssert((col->getStrength() != Collator::TERTIARY), "collation object has the wrong strength"); in TestProperty()
189 …doAssert((col->getStrength() == Collator::PRIMARY), "collation object's strength is not primary di… in TestProperty()
192 col->setStrength(Collator::TERTIARY); in TestProperty()
193 …doAssert((col->getStrength() == Collator::TERTIARY), "collation object's strength is not tertiary … in TestProperty()
194 …doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
195 …doAssert((col->getStrength() != Collator::SECONDARY), "collation object's strength is secondary di… in TestProperty()
201 Collator *junk = 0; in TestProperty()
202 junk = Collator::createInstance(abcd, success); in TestProperty()
212 Collator *frCol = Collator::createInstance(Locale::getCanadaFrench(), success); in TestProperty()
225 Collator *aFrCol = frCol->clone(); in TestProperty()
264 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl()
275 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl()
324 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules()
348 Collator *en_US = Collator::createInstance("en_US", status), in TestDecomposition()
349 *el_GR = Collator::createInstance("el_GR", status), in TestDecomposition()
350 *vi_VN = Collator::createInstance("vi_VN", status); in TestDecomposition()
381 Collator *someCollators [CLONETEST_COLLATOR_COUNT]; in TestSafeClone()
382 Collator *col; in TestSafeClone()
390 someCollators[0] = Collator::createInstance("en_US", err); in TestSafeClone()
391 someCollators[1] = Collator::createInstance("ko", err); in TestSafeClone()
392 someCollators[2] = Collator::createInstance("ja_JP", err); in TestSafeClone()
410 col->setStrength(Collator::TERTIARY); in TestSafeClone()
411 someCollators[index]->setStrength(Collator::PRIMARY); in TestSafeClone()
427 Collator *col1 = 0; in TestHashCode()
428 col1 = Collator::createInstance(Locale::getEnglish(), success); in TestHashCode()
435 Collator *col2 = 0; in TestHashCode()
437 col2 = Collator::createInstance(dk, success); in TestHashCode()
444 Collator *col3 = 0; in TestHashCode()
445 col3 = Collator::createInstance(Locale::getEnglish(), success); in TestHashCode()
485 Collator *col = 0; in TestCollationKey()
487 col = Collator::createInstance(Locale::getEnglish(), success); in TestCollationKey()
493 col->setStrength(Collator::TERTIARY); in TestCollationKey()
514 doAssert(sortkNone.compareTo(sortkEmpty) == Collator::LESS, in TestCollationKey()
516 doAssert(sortkEmpty.compareTo(sortkNone) == Collator::GREATER, in TestCollationKey()
526 doAssert(sortkIgnorable.compareTo(sortkEmpty) == Collator::EQUAL, in TestCollationKey()
544 == Collator::GREATER, in TestCollationKey()
556 …doAssert(sortk1.compareTo(sortk3) == Collator::GREATER, "Result should be \"Abcda\" >>> \"abcda\""… in TestCollationKey()
557 … doAssert(sortk2.compareTo(sortk3) == Collator::EQUAL, "Result should be \"abcda\" == \"abcda\""); in TestCollationKey()
558 …doAssert(sortkEmpty.compareTo(sortk1) == Collator::LESS, "Result should be (empty key) <<< \"Abcda… in TestCollationKey()
559 …doAssert(sortk1.compareTo(sortkEmpty) == Collator::GREATER, "Result should be \"Abcda\" >>> (empty… in TestCollationKey()
560 …doAssert(sortkEmpty.compareTo(sortkEmpty) == Collator::EQUAL, "Result should be (empty key) == (em… in TestCollationKey()
581 …doAssert(sortk1.compareTo(sortk4) == Collator::EQUAL, "CollationKey::toByteArray(sortk1) Failed."); in TestCollationKey()
582 …doAssert(sortk2.compareTo(sortk5) == Collator::EQUAL, "CollationKey::toByteArray(sortk2) Failed."); in TestCollationKey()
583 doAssert(sortk4.compareTo(sortk5) == Collator::GREATER, "sortk4 >>> sortk5 Failed"); in TestCollationKey()
584 …doAssert(sortk1.compareTo(sortk6) == Collator::EQUAL, "CollationKey::getByteArray(sortk1) Failed."… in TestCollationKey()
585 …doAssert(sortk2.compareTo(sortk7) == Collator::EQUAL, "CollationKey::getByteArray(sortk2) Failed."… in TestCollationKey()
586 doAssert(sortk6.compareTo(sortk7) == Collator::GREATER, "sortk6 >>> sortk7 Failed"); in TestCollationKey()
604 col->setStrength(Collator::SECONDARY); in TestCollationKey()
607 == Collator::EQUAL, in TestCollationKey()
620 Collator *col = 0; in TestElemIter()
622 col = Collator::createInstance(Locale::getEnglish(), success); in TestElemIter()
778 Collator *colerror=NULL; in TestElemIter()
779 colerror=Collator::createInstance(Locale::getEnglish(), success); in TestElemIter()
834 Collator *col3 = Collator::createInstance(Locale::getEnglish(), success); in TestOperators()
840 Collator* col4 = col1->clone(); in TestOperators()
841 Collator* col5 = col3->clone(); in TestOperators()
856 RuleBasedCollator *col7 = new RuleBasedCollator(ruleset2, Collator::TERTIARY, success); in TestOperators()
868 RuleBasedCollator *col9 = new RuleBasedCollator(ruleset2, Collator::PRIMARY, UCOL_ON, success); in TestOperators()
894 Collator *col1 = Collator::createInstance(Locale::getEnglish(), status); in TestDuplicate()
899 Collator *col2 = col1->clone(); in TestDuplicate()
944 Collator *col = 0; in TestCompare()
946 col = Collator::createInstance(Locale::getEnglish(), success); in TestCompare()
958 col->setStrength(Collator::SECONDARY); in TestCompare()
965 col->setStrength(Collator::PRIMARY); in TestCompare()
978 doAssert((col->compare(test1, test2) == Collator::EQUAL), "Problem"); in TestCompare()
980 doAssert((col->compare(t1, t1Len, t2, t2Len) == Collator::EQUAL), "Problem"); in TestCompare()
982 doAssert((col->compare(test1, test2, t1Len) == Collator::EQUAL), "Problem"); in TestCompare()
986 doAssert((col->compare(test1, test2) == Collator::GREATER), "Problem"); in TestCompare()
988 doAssert((col->compare(t1, t1Len, t2, t2Len) == Collator::GREATER), "Problem"); in TestCompare()
990 doAssert((col->compare(test1, test2, t1Len) == Collator::GREATER), "Problem"); in TestCompare()
1007 const Locale* list = Collator::getAvailableLocales(count1); in TestGetAll()
1021 StringEnumeration* localeEnum = Collator::getAvailableLocales(); in TestGetAll()
1068 Collator *col = Collator::createInstance(Locale::getEnglish(), status); in TestSortKey()
1074 if (col->getStrength() != Collator::TERTIARY) in TestSortKey()
1101 doAssert(key1.compareTo(key2) == Collator::GREATER, in TestSortKey()
1103 doAssert(key2.compareTo(key1) == Collator::LESS, in TestSortKey()
1105 doAssert(key2.compareTo(key3) == Collator::EQUAL, in TestSortKey()
1160 col->setStrength(Collator::SECONDARY); in TestSortKey()
1166 doAssert(key1.compareTo(key2) == Collator::EQUAL, in TestSortKey()
1168 doAssert(key2.compareTo(key3) == Collator::EQUAL, in TestSortKey()
1223 LocalPointer<Collator> col(Collator::createInstance(Locale::getEnglish(), errorCode)); in TestSortKeyOverflow()
1390 Collator *coll = Collator::createInstance("en_US", error); in TestDisplayName()
1414 Collator *coll = Collator::createInstance(error); in TestAttribute()
1521 Collator *coll = Collator::createInstance(Locale::getRoot(), status); in TestVariableTopSetting()
1577 LocalPointer<Collator> coll(Collator::createInstance(Locale::getRoot(), errorCode)); in TestMaxVariable()
1606 Collator *coll = Collator::createInstance("root", status); in TestGetLocale()
1619 coll = Collator::createInstance("", status); in TestGetLocale()
1657 coll = Collator::createInstance(testStruct[i].requestedLocale, status); in TestGetLocale()
1684 LocalPointer<Collator> coll2(Collator::createInstance(locale, status)); in TestGetLocale()
1703 LocalPointer<Collator> coll(Collator::createInstance("blahaha", status)); in TestGetLocale()
1758 Collator *coll = Collator::createInstance(Locale("sh"), status); in TestBounds()
1937 = (RuleBasedCollator *)Collator::createInstance(status); in TestUClassID()
1971 class TestCollator : public Collator
1974 virtual Collator* clone(void) const;
1976 using Collator::compare;
2019 virtual UBool operator==(const Collator& other) const;
2022 TestCollator() : Collator() {}; in TestCollator()
2024 … UNormalizationMode decompositionMode) : Collator(collationStrength, decompositionMode) {}; in TestCollator()
2027 inline UBool TestCollator::operator==(const Collator& other) const { in operator ==()
2039 Collator* TestCollator::clone() const in clone()
2132 Collator::ECollationStrength TestCollator::getStrength() const in getStrength()
2137 void TestCollator::setStrength(Collator::ECollationStrength newStrength) in setStrength()
2209 return Collator::getTailoredSet(status); in getTailoredSet()
2214 Collator::setLocales(requestedLocale, validLocale, actualLocale); in setLocales()
2261 Collator::EComparisonResult result = Collator::EComparisonResult(a.compare(b)); in TestSubclass()
2296 RuleBasedCollator* c0 = (RuleBasedCollator*)Collator::createInstance(status); in TestClone()
2303 c0->setStrength(Collator::TERTIARY); in TestClone()
2307 RuleBasedCollator* c1 = (RuleBasedCollator*)Collator::createInstance(status); in TestClone()
2308 c1->setStrength(Collator::TERTIARY); in TestClone()
2343 LocalPointer<Collator> root(Collator::createInstance(Locale::getRoot(), errorCode)); in TestCloneBinary()
2344 LocalPointer<Collator> coll(Collator::createInstance("de@collation=phonebook", errorCode)); in TestCloneBinary()
2415 LocalPointer<Collator> coll(Collator::createInstance(bogusLocale, errorCode)); in TestBadKeywords()
2424 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
2433 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()
2445 coll.adoptInstead(Collator::createInstance(localeID, errorCode)); in TestBadKeywords()