Home | History | Annotate | Download | only in intltest

Lines Matching refs:collator

30                   dataerrln(__FILE__ " cannot test - failed to create collator.");  \
48 m_en_us_ = (RuleBasedCollator *)Collator::createInstance("en_US", status);
49 m_fr_fr_ = (RuleBasedCollator *)Collator::createInstance("fr_FR", status);
50 m_de_ = (RuleBasedCollator *)Collator::createInstance("de_DE", status);
51 m_es_ = (RuleBasedCollator *)Collator::createInstance("es_ES", status);
61 errln("Collator creation failed with %s", u_errorName(status));
180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator)
182 if (collator == NULL) {
185 if (strcmp(collator, "fr") == 0) {
188 else if (strcmp(collator, "de") == 0) {
191 else if (strcmp(collator, "es") == 0) {
238 Collator::ECollationStrength StringSearchTest::getECollationStrength(
244 return Collator::PRIMARY;
246 return Collator::SECONDARY;
248 return Collator::TERTIARY;
250 return Collator::IDENTICAL;
464 Collator *collator = getCollator(search->collator);
486 collator->setStrength(getECollationStrength(search->strength));
487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
495 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
506 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
513 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
521 Collator *collator = getCollator(search->collator);
545 collator->setStrength(getECollationStrength(search->strength));
546 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
547 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
562 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
563 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status);
574 Collator *collator = getCollator(search->collator);
598 collator->setStrength(getECollationStrength(search->strength));
599 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator,
610 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
614 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
908 RuleBasedCollator *collator = getCollator(search->collator);
919 collator->setStrength(getECollationStrength(search->strength));
921 strsrch = new StringSearch(pattern, text, collator, breaker, status);
930 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
1011 RuleBasedCollator *collator = getCollator(search->collator);
1014 collator, NULL,
1046 // test collator that thinks "o" and "p" are the same thing
1048 u_unescape(COLLATOR[0].text, temp, 128);
1051 u_unescape(COLLATOR[0].pattern, temp, 128);
1063 if (!assertEqualWithStringSearch(strsrch, &COLLATOR[0])) {
1072 tailored->setStrength(getECollationStrength(COLLATOR[1].strength));
1075 errln("Error opening rule based collator %s", u_errorName(status));
1083 errln("Error setting rule based collator");
1088 if (!assertEqualWithStringSearch(strsrch, &COLLATOR[1])) {
1097 errln("Error setting rule based collator");
1101 if (!assertEqualWithStringSearch(strsrch, &COLLATOR[0])) {
1102 errln("Error searching collator test");
1601 RuleBasedCollator *collator = new RuleBasedCollator(rules,
1604 errln("Error opening collator %s", u_errorName(status));
1608 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1628 delete collator;
1639 RuleBasedCollator *collator = new RuleBasedCollator(rules,
1643 errln("Error opening collator %s", u_errorName(status));
1648 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
1652 delete collator;
1669 delete collator;
1687 coll = getCollator(search->collator);
1763 RuleBasedCollator *collator = getCollator(search->collator);
1764 collator->setStrength(getECollationStrength(search->strength));
1767 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1781 collator->setStrength(getECollationStrength(UCOL_TERTIARY));
1869 RuleBasedCollator *collator = getCollator(search->collator);
1870 StringSearch *strsrch = new StringSearch(pattern, text, collator,
1901 /* test collator that thinks "o" and "p" are the same thing */
1930 errln("Error opening rule based collator %s", u_errorName(status));
1935 errln("Error setting rule based collator");
1951 errln("Error setting rule based collator");
2108 Collator *collator = strsrch->getCollator();
2110 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
2182 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status);
2206 RuleBasedCollator *collator = new RuleBasedCollator(rules,
2209 errln("Error opening collator %s", u_errorName(status));
2213 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL,
2235 delete collator;