Lines Matching defs:TestCollator

1984 class TestCollator  : public Collator
2035 TestCollator() : Collator() {};
2036 TestCollator(UCollationStrength collationStrength,
2040 inline UBool TestCollator::operator==(const Collator& other) const {
2041 // TestCollator has no fields, so we test for identity.
2048 // const TestCollator &o = (const TestCollator&)other;
2052 Collator* TestCollator::clone() const
2054 return new TestCollator();
2057 UCollationResult TestCollator::compare(const UnicodeString& source,
2068 UCollationResult TestCollator::compare(const UnicodeString& source,
2080 UCollationResult TestCollator::compare(const UChar* source,
2091 CollationKey& TestCollator::getCollationKey(const UnicodeString& source,
2104 CollationKey& TestCollator::getCollationKey(const UChar*source,
2114 int32_t TestCollator::getSortKey(const UnicodeString& source, uint8_t* result,
2124 int32_t TestCollator::getSortKey(const UChar*source, int32_t sourceLength,
2131 int32_t TestCollator::hashCode() const
2136 Locale TestCollator::getLocale(ULocDataLocaleType type, UErrorCode& status) const
2145 Collator::ECollationStrength TestCollator::getStrength() const
2150 void TestCollator::setStrength(Collator::ECollationStrength newStrength)
2156 UClassID TestCollator::getDynamicClassID(void) const
2161 void TestCollator::getVersion(UVersionInfo info) const
2167 void TestCollator::setAttribute(UColAttribute /*attr*/, UColAttributeValue /*value*/,
2172 UColAttributeValue TestCollator::getAttribute(UColAttribute attr,
2182 uint32_t TestCollator::setVariableTop(const UChar *varTop, int32_t len,
2192 uint32_t TestCollator::setVariableTop(const UnicodeString &varTop,
2202 void TestCollator::setVariableTop(uint32_t varTop, UErrorCode &status)
2210 uint32_t TestCollator::getVariableTop(UErrorCode &status) const
2220 UnicodeSet * TestCollator::getTailoredSet(UErrorCode &status) const
2225 void TestCollator::setLocales(const Locale& requestedLocale, const Locale& validLocale, const Locale& actualLocale)
2233 TestCollator col1;
2234 TestCollator col2;
2235 doAssert(col1 != col2, "2 instances of TestCollator should be different");
2237 errln("Every TestCollator has the same hashcode");
2242 errln("TestCollator compare should be the same as the default "
2252 errln("TestCollator collationkey API is returning wrong values");
2271 TestCollator col3(UCOL_TERTIARY, UNORM_NONE);