Lines Matching refs:col1

254     RuleBasedCollator *col1, *col2, *col3, *col4;  in TestRuleBasedColl()  local
260 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl()
301 UnicodeString rule1 = col1->getRules(); in TestRuleBasedColl()
328 delete col1; in TestRuleBasedColl()
444 Collator *col1 = 0; in TestHashCode() local
445 col1 = Collator::createInstance(Locale::getEnglish(), success); in TestHashCode()
471 doAssert(col1->hashCode() != col2->hashCode(), "Hash test1 result incorrect" ); in TestHashCode()
472 doAssert(!(col1->hashCode() == col2->hashCode()), "Hash test2 result incorrect" ); in TestHashCode()
473 doAssert(col1->hashCode() == col3->hashCode(), "Hash result not equal" ); in TestHashCode()
476 delete col1; in TestHashCode()
833 RuleBasedCollator *col1 = new RuleBasedCollator(ruleset1, success); in TestOperators() local
846 doAssert((*col1 != *col2), "The two different table collations compared equal"); in TestOperators()
847 *col1 = *col2; in TestOperators()
848 doAssert((*col1 == *col2), "Collator objects not equal after assignment (operator=)"); in TestOperators()
856 doAssert((*col1 != *col3), "The two different table collations compared equal"); in TestOperators()
857 Collator* col4 = col1->clone(); in TestOperators()
859 doAssert((*col1 == *col4), "Cloned collation objects not equal"); in TestOperators()
895 delete col1; in TestOperators()
911 Collator *col1 = Collator::createInstance(Locale::getEnglish(), status); in TestDuplicate() local
916 Collator *col2 = col1->clone(); in TestDuplicate()
917 doAssert((*col1 == *col2), "Cloned object is not equal to the orginal"); in TestDuplicate()
924 doAssert((*col1 != *col3), "Cloned object is equal to some dummy"); in TestDuplicate()
925 *col3 = *((RuleBasedCollator*)col1); in TestDuplicate()
926 doAssert((*col1 == *col3), "Copied object is not equal to the orginal"); in TestDuplicate()
931 UnicodeString copiedEnglishRules(((RuleBasedCollator*)col1)->getRules()); in TestDuplicate()
933 delete col1; in TestDuplicate()
2249 TestCollator col1; in TestSubclass() local
2251 doAssert(col1 != col2, "2 instances of TestCollator should be different"); in TestSubclass()
2252 if (col1.hashCode() != col2.hashCode()) { in TestSubclass()
2257 if (col1.compare(abc, bcd) != abc.compare(bcd)) { in TestSubclass()
2263 col1.getCollationKey(abc, key, status); in TestSubclass()
2272 UnicodeSet *defaultset = col1.getTailoredSet(status); in TestSubclass()
2282 col1.setLocales(loc1, loc2, loc2); // default implementation has no effect in TestSubclass()
2285 col1.getDisplayName(loc1, loc2, displayName); // de_DE collator in fr_FR locale in TestSubclass()
2291 if(col1.compare(a, b) != result) { in TestSubclass()
2294 if(col1.compare(a, b, 1) != result) { in TestSubclass()
2297 if(col1.compare(a.getBuffer(), a.length(), b.getBuffer(), b.length()) != result) { in TestSubclass()