Lines Matching refs:coll
87 void UCAConformanceTest::setCollNonIgnorable(Collator *coll)
89 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
90 coll->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status);
91 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, status);
92 coll->setAttribute(UCOL_STRENGTH, isAtLeastUCA62 ? UCOL_IDENTICAL : UCOL_TERTIARY, status);
93 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_NON_IGNORABLE, status);
96 void UCAConformanceTest::setCollShifted(Collator *coll)
98 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
99 coll->setAttribute(UCOL_CASE_FIRST, UCOL_OFF, status);
100 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, status);
101 coll->setAttribute(UCOL_STRENGTH, isAtLeastUCA62 ? UCOL_IDENTICAL : UCOL_QUATERNARY, status);
102 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status);
180 void UCAConformanceTest::testConformance(const Collator *coll)
186 if(coll->getAttribute(UCOL_ALTERNATE_HANDLING, status) == UCOL_SHIFTED) {
189 if(coll == rbUCA) {
229 int32_t resLen = coll->getSortKey(buffer, buflen, newSk, 1024);
233 int32_t cmpres = coll->compare(oldB, oldBlen, buffer, buflen, status);
234 int32_t cmpres2 = coll->compare(buffer, buflen, oldB, oldBlen, status);
241 errln("Difference between coll->compare (%d) and sortkey compare (%d) on line %i",