Home | History | Annotate | Download | only in intltest

Lines Matching refs:COLLATOR

28                   dataerrln(__FILE__ " cannot test - failed to create collator.");  \
46 m_en_us_ = (RuleBasedCollator *)Collator::createInstance("en_US", status);
47 m_fr_fr_ = (RuleBasedCollator *)Collator::createInstance("fr_FR", status);
48 m_de_ = (RuleBasedCollator *)Collator::createInstance("de_DE", status);
49 m_es_ = (RuleBasedCollator *)Collator::createInstance("es_ES", status);
59 errln("Collator creation failed with %s", u_errorName(status));
178 RuleBasedCollator * StringSearchTest::getCollator(const char *collator)
180 if (collator == NULL) {
183 if (strcmp(collator, "fr") == 0) {
186 else if (strcmp(collator, "de") == 0) {
189 else if (strcmp(collator, "es") == 0) {
236 Collator::ECollationStrength StringSearchTest::getECollationStrength(
242 return Collator::PRIMARY;
244 return Collator::SECONDARY;
246 return Collator::TERTIARY;
248 return Collator::IDENTICAL;
359 Collator *collator = getCollator(search->collator);
381 collator->setStrength(getECollationStrength(search->strength));
382 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
390 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
401 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
408 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
416 Collator *collator = getCollator(search->collator);
440 collator->setStrength(getECollationStrength(search->strength));
441 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
442 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
457 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
458 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status);
469 Collator *collator = getCollator(search->collator);
493 collator->setStrength(getECollationStrength(search->strength));
494 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
505 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
509 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
803 RuleBasedCollator *collator = getCollator(search->collator);
814 collator->setStrength(getECollationStrength(search->strength));
816 strsrch = new StringSearch(pattern, text, collator, breaker, status);
825 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
906 RuleBasedCollator *collator = getCollator(search->collator);
909 collator, NULL,
941 // test collator that thinks "o" and "p" are the same thing
943 u_unescape(COLLATOR[0].text, temp, 128);
946 u_unescape(COLLATOR[0].pattern, temp, 128);
958 if (!assertEqualWithStringSearch(strsrch, &COLLATOR[0])) {
967 tailored->setStrength(getECollationStrength(COLLATOR[1].strength));
970 errln("Error opening rule based collator %s", u_errorName(status));
980 errln("Error setting rule based collator");
987 if (!assertEqualWithStringSearch(strsrch, &COLLATOR[1])) {
998 errln("Error setting rule based collator");
1004 if (!assertEqualWithStringSearch(strsrch, &COLLATOR[0])) {
1005 errln("Error searching collator test");
1506 RuleBasedCollator *collator = new RuleBasedCollator(rules,
1509 errln("Error opening collator %s", u_errorName(status));
1513 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1533 delete collator;
1544 RuleBasedCollator *collator = new RuleBasedCollator(rules,
1548 errln("Error opening collator %s", u_errorName(status));
1553 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1557 delete collator;
1574 delete collator;
1592 coll = getCollator(search->collator);
1668 RuleBasedCollator *collator = getCollator(search->collator);
1669 collator->setStrength(getECollationStrength(search->strength));
1672 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1686 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
1774 RuleBasedCollator *collator = getCollator(search->collator);
1775 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1806 /* test collator that thinks "o" and "p" are the same thing */
1835 errln("Error opening rule based collator %s", u_errorName(status));
1840 errln("Error setting rule based collator");
1856 errln("Error setting rule based collator");
2013 Collator *collator = strsrch->getCollator();
2015 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
2087 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status);
2111 RuleBasedCollator *collator = new RuleBasedCollator(rules,
2114 errln("Error opening collator %s", u_errorName(status));
2118 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
2140 delete collator;