Lines Matching refs:coll
380 RuleBasedCollator *coll; in TestRules() local
384 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules()
393 coll->getRules(UCOL_TAILORING_ONLY, rules); in TestRules()
398 coll->getRules(UCOL_FULL_RULES, rules); in TestRules()
402 delete coll; in TestRules()
1315 RuleBasedCollator coll(rule, status); in TestMaxExpansion() local
1322 coll.createCollationElementIterator(str); in TestMaxExpansion()
1343 size = coll.getMaxExpansion(order); in TestMaxExpansion()
1358 size = coll.getMaxExpansion(order); in TestMaxExpansion()
1370 size = coll.getMaxExpansion(temporder); in TestMaxExpansion()
1380 size = coll.getMaxExpansion(temporder); in TestMaxExpansion()
1389 size = coll.getMaxExpansion(sorder); in TestMaxExpansion()
1400 size = coll.getMaxExpansion(temporder); in TestMaxExpansion()
1426 Collator *coll = Collator::createInstance("en_US", error); in TestDisplayName() local
1433 coll->getDisplayName(Locale::getCanadaFrench(), result); in TestDisplayName()
1439 coll->getDisplayName(Locale::getSimplifiedChinese(), result); in TestDisplayName()
1444 delete coll; in TestDisplayName()
1450 Collator *coll = Collator::createInstance(error); in TestAttribute() local
1457 coll->setAttribute(UCOL_FRENCH_COLLATION, UCOL_OFF, error); in TestAttribute()
1458 if (coll->getAttribute(UCOL_FRENCH_COLLATION, error) != UCOL_OFF || in TestAttribute()
1463 coll->setAttribute(UCOL_FRENCH_COLLATION, UCOL_ON, error); in TestAttribute()
1464 if (coll->getAttribute(UCOL_FRENCH_COLLATION, error) != UCOL_ON || in TestAttribute()
1469 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, error); in TestAttribute()
1470 if (coll->getAttribute(UCOL_ALTERNATE_HANDLING, error) != UCOL_SHIFTED || in TestAttribute()
1475 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_NON_IGNORABLE, error); in TestAttribute()
1476 if (coll->getAttribute(UCOL_ALTERNATE_HANDLING, error) != UCOL_NON_IGNORABLE || in TestAttribute()
1481 coll->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, error); in TestAttribute()
1482 if (coll->getAttribute(UCOL_CASE_FIRST, error) != UCOL_LOWER_FIRST || in TestAttribute()
1487 coll->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, error); in TestAttribute()
1488 if (coll->getAttribute(UCOL_CASE_FIRST, error) != UCOL_UPPER_FIRST || in TestAttribute()
1493 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_ON, error); in TestAttribute()
1494 if (coll->getAttribute(UCOL_CASE_LEVEL, error) != UCOL_ON || in TestAttribute()
1499 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, error); in TestAttribute()
1500 if (coll->getAttribute(UCOL_CASE_LEVEL, error) != UCOL_OFF || in TestAttribute()
1505 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, error); in TestAttribute()
1506 if (coll->getAttribute(UCOL_NORMALIZATION_MODE, error) != UCOL_ON || in TestAttribute()
1511 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, error); in TestAttribute()
1512 if (coll->getAttribute(UCOL_NORMALIZATION_MODE, error) != UCOL_OFF || in TestAttribute()
1517 coll->setAttribute(UCOL_STRENGTH, UCOL_PRIMARY, error); in TestAttribute()
1518 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_PRIMARY || in TestAttribute()
1523 coll->setAttribute(UCOL_STRENGTH, UCOL_SECONDARY, error); in TestAttribute()
1524 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_SECONDARY || in TestAttribute()
1529 coll->setAttribute(UCOL_STRENGTH, UCOL_TERTIARY, error); in TestAttribute()
1530 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_TERTIARY || in TestAttribute()
1535 coll->setAttribute(UCOL_STRENGTH, UCOL_QUATERNARY, error); in TestAttribute()
1536 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_QUATERNARY || in TestAttribute()
1541 coll->setAttribute(UCOL_STRENGTH, UCOL_IDENTICAL, error); in TestAttribute()
1542 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_IDENTICAL || in TestAttribute()
1547 delete coll; in TestAttribute()
1555 Collator *coll = Collator::createInstance(status); in TestVariableTopSetting() local
1557 delete coll; in TestVariableTopSetting()
1562 uint32_t oldVarTop = coll->getVariableTop(status); in TestVariableTopSetting()
1566 uint32_t newVarTop = coll->setVariableTop(vt, 1, status); in TestVariableTopSetting()
1568 if((newVarTop & 0xFFFF0000) != (coll->getVariableTop(status) & 0xFFFF0000)) { in TestVariableTopSetting()
1572 coll->setVariableTop(oldVarTop, status); in TestVariableTopSetting()
1574 uint32_t newerVarTop = coll->setVariableTop(UnicodeString(vt, 1), status); in TestVariableTopSetting()
1580 delete coll; in TestVariableTopSetting()
1589 Collator *coll = NULL; in TestGetLocale() local
1610 coll = Collator::createInstance(testStruct[i].requestedLocale, status); in TestGetLocale()
1613 delete coll; in TestGetLocale()
1616 locale = coll->getLocale(ULOC_REQUESTED_LOCALE, status); in TestGetLocale()
1620 locale = coll->getLocale(ULOC_VALID_LOCALE, status); in TestGetLocale()
1624 locale = coll->getLocale(ULOC_ACTUAL_LOCALE, status); in TestGetLocale()
1628 delete coll; in TestGetLocale()
1634 coll = Collator::createInstance("blahaha", status); in TestGetLocale()
1637 delete coll; in TestGetLocale()
1641 if(coll->getLocale(ULOC_REQUESTED_LOCALE, status) != "blahaha") { in TestGetLocale()
1644 if(coll->getLocale(ULOC_VALID_LOCALE, status) != in TestGetLocale()
1649 if(coll->getLocale(ULOC_ACTUAL_LOCALE, status) != in TestGetLocale()
1654 delete coll; in TestGetLocale()
1661 coll = new RuleBasedCollator(rlz, status); in TestGetLocale()
1662 locale = coll->getLocale(ULOC_REQUESTED_LOCALE, status); in TestGetLocale()
1666 locale = coll->getLocale(ULOC_VALID_LOCALE, status); in TestGetLocale()
1670 locale = coll->getLocale(ULOC_ACTUAL_LOCALE, status); in TestGetLocale()
1674 delete coll; in TestGetLocale()
1695 Collator *coll = Collator::createInstance(Locale("sh"), status); in TestBounds() local
1697 delete coll; in TestBounds()
1784 skSize = coll->getSortKey(buffer, buffSize, tests[i].key, 512); in TestBounds()
1791 lowerSize = coll->getBound(tests[i].key, -1, UCOL_BOUND_LOWER, 1, lower, 512, status); in TestBounds()
1792 upperSize = coll->getBound(tests[j].key, -1, UCOL_BOUND_UPPER, 1, upper, 512, status); in TestBounds()
1807 skSize = coll->getSortKey(buffer, buffSize, sortkey, 512); in TestBounds()
1812 skSize = coll->getSortKey(buffer, buffSize, sortkey, 512); in TestBounds()
1821 delete coll; in TestBounds()
1839 RuleBasedCollator *coll = NULL; in TestGetTailoredSet() local
1845 coll = new RuleBasedCollator(buff, status); in TestGetTailoredSet()
1847 set = coll->getTailoredSet(status); in TestGetTailoredSet()
1861 delete coll; in TestGetTailoredSet()
1872 RuleBasedCollator *coll in TestUClassID() local
1875 delete coll; in TestUClassID()
1879 id = *((char *)coll->getDynamicClassID()); in TestUClassID()
1897 CollationElementIterator *iter = coll->createCollationElementIterator(str); in TestUClassID()
1904 delete coll; in TestUClassID()
2250 RuleBasedCollator *coll = new RuleBasedCollator(UnicodeString(buf, len), status); in TestNULLCharTailoring() local
2252 delete coll; in TestNULLCharTailoring()
2256 UCollationResult res = coll->compare(first, second, status); in TestNULLCharTailoring()
2260 delete coll; in TestNULLCharTailoring()