• Home
  • Raw
  • Download

Lines Matching refs:coll

378     RuleBasedCollator *coll;  in TestRules()  local
382 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules()
391 coll->getRules(UCOL_TAILORING_ONLY, rules); in TestRules()
396 coll->getRules(UCOL_FULL_RULES, rules); in TestRules()
400 delete coll; in TestRules()
1264 RuleBasedCollator coll(rule, status); in TestMaxExpansion() local
1271 coll.createCollationElementIterator(str); in TestMaxExpansion()
1292 size = coll.getMaxExpansion(order); in TestMaxExpansion()
1307 size = coll.getMaxExpansion(order); in TestMaxExpansion()
1319 size = coll.getMaxExpansion(temporder); in TestMaxExpansion()
1329 size = coll.getMaxExpansion(temporder); in TestMaxExpansion()
1338 size = coll.getMaxExpansion(sorder); in TestMaxExpansion()
1349 size = coll.getMaxExpansion(temporder); in TestMaxExpansion()
1375 Collator *coll = Collator::createInstance("en_US", error); in TestDisplayName() local
1382 coll->getDisplayName(Locale::getCanadaFrench(), result); in TestDisplayName()
1388 coll->getDisplayName(Locale::getSimplifiedChinese(), result); in TestDisplayName()
1393 delete coll; in TestDisplayName()
1399 Collator *coll = Collator::createInstance(error); in TestAttribute() local
1406 coll->setAttribute(UCOL_FRENCH_COLLATION, UCOL_OFF, error); in TestAttribute()
1407 if (coll->getAttribute(UCOL_FRENCH_COLLATION, error) != UCOL_OFF || in TestAttribute()
1412 coll->setAttribute(UCOL_FRENCH_COLLATION, UCOL_ON, error); in TestAttribute()
1413 if (coll->getAttribute(UCOL_FRENCH_COLLATION, error) != UCOL_ON || in TestAttribute()
1418 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, error); in TestAttribute()
1419 if (coll->getAttribute(UCOL_ALTERNATE_HANDLING, error) != UCOL_SHIFTED || in TestAttribute()
1424 coll->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_NON_IGNORABLE, error); in TestAttribute()
1425 if (coll->getAttribute(UCOL_ALTERNATE_HANDLING, error) != UCOL_NON_IGNORABLE || in TestAttribute()
1430 coll->setAttribute(UCOL_CASE_FIRST, UCOL_LOWER_FIRST, error); in TestAttribute()
1431 if (coll->getAttribute(UCOL_CASE_FIRST, error) != UCOL_LOWER_FIRST || in TestAttribute()
1436 coll->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, error); in TestAttribute()
1437 if (coll->getAttribute(UCOL_CASE_FIRST, error) != UCOL_UPPER_FIRST || in TestAttribute()
1442 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_ON, error); in TestAttribute()
1443 if (coll->getAttribute(UCOL_CASE_LEVEL, error) != UCOL_ON || in TestAttribute()
1448 coll->setAttribute(UCOL_CASE_LEVEL, UCOL_OFF, error); in TestAttribute()
1449 if (coll->getAttribute(UCOL_CASE_LEVEL, error) != UCOL_OFF || in TestAttribute()
1454 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, error); in TestAttribute()
1455 if (coll->getAttribute(UCOL_NORMALIZATION_MODE, error) != UCOL_ON || in TestAttribute()
1460 coll->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, error); in TestAttribute()
1461 if (coll->getAttribute(UCOL_NORMALIZATION_MODE, error) != UCOL_OFF || in TestAttribute()
1466 coll->setAttribute(UCOL_STRENGTH, UCOL_PRIMARY, error); in TestAttribute()
1467 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_PRIMARY || in TestAttribute()
1472 coll->setAttribute(UCOL_STRENGTH, UCOL_SECONDARY, error); in TestAttribute()
1473 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_SECONDARY || in TestAttribute()
1478 coll->setAttribute(UCOL_STRENGTH, UCOL_TERTIARY, error); in TestAttribute()
1479 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_TERTIARY || in TestAttribute()
1484 coll->setAttribute(UCOL_STRENGTH, UCOL_QUATERNARY, error); in TestAttribute()
1485 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_QUATERNARY || in TestAttribute()
1490 coll->setAttribute(UCOL_STRENGTH, UCOL_IDENTICAL, error); in TestAttribute()
1491 if (coll->getAttribute(UCOL_STRENGTH, error) != UCOL_IDENTICAL || in TestAttribute()
1496 delete coll; in TestAttribute()
1504 Collator *coll = Collator::createInstance(status); in TestVariableTopSetting() local
1506 delete coll; in TestVariableTopSetting()
1511 uint32_t oldVarTop = coll->getVariableTop(status); in TestVariableTopSetting()
1515 uint32_t newVarTop = coll->setVariableTop(vt, 1, status); in TestVariableTopSetting()
1517 if((newVarTop & 0xFFFF0000) != (coll->getVariableTop(status) & 0xFFFF0000)) { in TestVariableTopSetting()
1521 coll->setVariableTop(oldVarTop, status); in TestVariableTopSetting()
1523 uint32_t newerVarTop = coll->setVariableTop(UnicodeString(vt, 1), status); in TestVariableTopSetting()
1529 delete coll; in TestVariableTopSetting()
1538 Collator *coll = NULL; in TestGetLocale() local
1559 coll = Collator::createInstance(testStruct[i].requestedLocale, status); in TestGetLocale()
1562 delete coll; in TestGetLocale()
1565 locale = coll->getLocale(ULOC_REQUESTED_LOCALE, status); in TestGetLocale()
1569 locale = coll->getLocale(ULOC_VALID_LOCALE, status); in TestGetLocale()
1573 locale = coll->getLocale(ULOC_ACTUAL_LOCALE, status); in TestGetLocale()
1577 delete coll; in TestGetLocale()
1583 coll = Collator::createInstance("blahaha", status); in TestGetLocale()
1586 delete coll; in TestGetLocale()
1590 if(coll->getLocale(ULOC_REQUESTED_LOCALE, status) != "blahaha") { in TestGetLocale()
1593 if(coll->getLocale(ULOC_VALID_LOCALE, status) != in TestGetLocale()
1598 if(coll->getLocale(ULOC_ACTUAL_LOCALE, status) != in TestGetLocale()
1603 delete coll; in TestGetLocale()
1610 coll = new RuleBasedCollator(rlz, status); in TestGetLocale()
1611 locale = coll->getLocale(ULOC_REQUESTED_LOCALE, status); in TestGetLocale()
1615 locale = coll->getLocale(ULOC_VALID_LOCALE, status); in TestGetLocale()
1619 locale = coll->getLocale(ULOC_ACTUAL_LOCALE, status); in TestGetLocale()
1623 delete coll; in TestGetLocale()
1644 Collator *coll = Collator::createInstance(Locale("sh"), status); in TestBounds() local
1646 delete coll; in TestBounds()
1733 skSize = coll->getSortKey(buffer, buffSize, tests[i].key, 512); in TestBounds()
1740 lowerSize = coll->getBound(tests[i].key, -1, UCOL_BOUND_LOWER, 1, lower, 512, status); in TestBounds()
1741 upperSize = coll->getBound(tests[j].key, -1, UCOL_BOUND_UPPER, 1, upper, 512, status); in TestBounds()
1756 skSize = coll->getSortKey(buffer, buffSize, sortkey, 512); in TestBounds()
1761 skSize = coll->getSortKey(buffer, buffSize, sortkey, 512); in TestBounds()
1770 delete coll; in TestBounds()
1788 RuleBasedCollator *coll = NULL; in TestGetTailoredSet() local
1794 coll = new RuleBasedCollator(buff, status); in TestGetTailoredSet()
1796 set = coll->getTailoredSet(status); in TestGetTailoredSet()
1810 delete coll; in TestGetTailoredSet()
1821 RuleBasedCollator *coll in TestUClassID() local
1824 delete coll; in TestUClassID()
1828 id = *((char *)coll->getDynamicClassID()); in TestUClassID()
1846 CollationElementIterator *iter = coll->createCollationElementIterator(str); in TestUClassID()
1853 delete coll; in TestUClassID()
2199 RuleBasedCollator *coll = new RuleBasedCollator(UnicodeString(buf, len), status); in TestNULLCharTailoring() local
2201 delete coll; in TestNULLCharTailoring()
2205 UCollationResult res = coll->compare(first, second, status); in TestNULLCharTailoring()
2209 delete coll; in TestNULLCharTailoring()