Lines Matching refs:collator
183 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) in getCollator() argument
185 if (collator == NULL) { in getCollator()
188 if (strcmp(collator, "fr") == 0) { in getCollator()
191 else if (strcmp(collator, "de") == 0) { in getCollator()
194 else if (strcmp(collator, "es") == 0) { in getCollator()
467 Collator *collator = getCollator(search->collator); in assertEqual() local
489 collator->setStrength(getECollationStrength(search->strength)); in assertEqual()
490 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqual()
498 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
509 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
516 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
524 Collator *collator = getCollator(search->collator); in assertCanonicalEqual() local
548 collator->setStrength(getECollationStrength(search->strength)); in assertCanonicalEqual()
549 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in assertCanonicalEqual()
550 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertCanonicalEqual()
565 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertCanonicalEqual()
566 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status); in assertCanonicalEqual()
577 Collator *collator = getCollator(search->collator); in assertEqualWithAttribute() local
601 collator->setStrength(getECollationStrength(search->strength)); in assertEqualWithAttribute()
602 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqualWithAttribute()
613 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqualWithAttribute()
617 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqualWithAttribute()
911 RuleBasedCollator *collator = getCollator(search->collator); in TestBreakIterator() local
922 collator->setStrength(getECollationStrength(search->strength)); in TestBreakIterator()
924 strsrch = new StringSearch(pattern, text, collator, breaker, status); in TestBreakIterator()
933 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in TestBreakIterator()
1014 RuleBasedCollator *collator = getCollator(search->collator); in TestOverlap() local
1017 collator, NULL, in TestOverlap()
1604 RuleBasedCollator *collator = new RuleBasedCollator(rules, in TestContraction() local
1611 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL, in TestContraction()
1631 delete collator; in TestContraction()
1642 RuleBasedCollator *collator = new RuleBasedCollator(rules, in TestIgnorable() local
1651 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL, in TestIgnorable()
1655 delete collator; in TestIgnorable()
1672 delete collator; in TestIgnorable()
1690 coll = getCollator(search->collator); in TestDiacriticMatch()
1766 RuleBasedCollator *collator = getCollator(search->collator); in TestBreakIteratorCanonical() local
1767 collator->setStrength(getECollationStrength(search->strength)); in TestBreakIteratorCanonical()
1770 StringSearch *strsrch = new StringSearch(pattern, text, collator, in TestBreakIteratorCanonical()
1784 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in TestBreakIteratorCanonical()
1872 RuleBasedCollator *collator = getCollator(search->collator); in TestOverlapCanonical() local
1873 StringSearch *strsrch = new StringSearch(pattern, text, collator, in TestOverlapCanonical()
2111 Collator *collator = strsrch->getCollator(); in TestGetSetOffsetCanonical() local
2113 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestGetSetOffsetCanonical()
2185 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status); in TestGetSetOffsetCanonical()
2209 RuleBasedCollator *collator = new RuleBasedCollator(rules, in TestContractionCanonical() local
2216 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL, in TestContractionCanonical()
2238 delete collator; in TestContractionCanonical()