• Home
  • Raw
  • Download

Lines Matching refs:collator

180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator)  in getCollator()  argument
182 if (collator == NULL) { in getCollator()
185 if (strcmp(collator, "fr") == 0) { in getCollator()
188 else if (strcmp(collator, "de") == 0) { in getCollator()
191 else if (strcmp(collator, "es") == 0) { in getCollator()
464 Collator *collator = getCollator(search->collator); in assertEqual() local
486 collator->setStrength(getECollationStrength(search->strength)); in assertEqual()
487 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqual()
495 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
506 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
513 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
521 Collator *collator = getCollator(search->collator); in assertCanonicalEqual() local
545 collator->setStrength(getECollationStrength(search->strength)); in assertCanonicalEqual()
546 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in assertCanonicalEqual()
547 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertCanonicalEqual()
562 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertCanonicalEqual()
563 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status); in assertCanonicalEqual()
574 Collator *collator = getCollator(search->collator); in assertEqualWithAttribute() local
598 collator->setStrength(getECollationStrength(search->strength)); in assertEqualWithAttribute()
599 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqualWithAttribute()
610 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqualWithAttribute()
614 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqualWithAttribute()
908 RuleBasedCollator *collator = getCollator(search->collator); in TestBreakIterator() local
919 collator->setStrength(getECollationStrength(search->strength)); in TestBreakIterator()
921 strsrch = new StringSearch(pattern, text, collator, breaker, status); in TestBreakIterator()
930 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in TestBreakIterator()
1011 RuleBasedCollator *collator = getCollator(search->collator); in TestOverlap() local
1014 collator, NULL, in TestOverlap()
1601 RuleBasedCollator *collator = new RuleBasedCollator(rules, in TestContraction() local
1608 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL, in TestContraction()
1628 delete collator; in TestContraction()
1639 RuleBasedCollator *collator = new RuleBasedCollator(rules, in TestIgnorable() local
1648 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL, in TestIgnorable()
1652 delete collator; in TestIgnorable()
1669 delete collator; in TestIgnorable()
1687 coll = getCollator(search->collator); in TestDiacriticMatch()
1763 RuleBasedCollator *collator = getCollator(search->collator); in TestBreakIteratorCanonical() local
1764 collator->setStrength(getECollationStrength(search->strength)); in TestBreakIteratorCanonical()
1767 StringSearch *strsrch = new StringSearch(pattern, text, collator, in TestBreakIteratorCanonical()
1781 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in TestBreakIteratorCanonical()
1869 RuleBasedCollator *collator = getCollator(search->collator); in TestOverlapCanonical() local
1870 StringSearch *strsrch = new StringSearch(pattern, text, collator, in TestOverlapCanonical()
2108 Collator *collator = strsrch->getCollator(); in TestGetSetOffsetCanonical() local
2110 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestGetSetOffsetCanonical()
2182 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_OFF, status); in TestGetSetOffsetCanonical()
2206 RuleBasedCollator *collator = new RuleBasedCollator(rules, in TestContractionCanonical() local
2213 StringSearch *strsrch = new StringSearch(pattern, text, collator, NULL, in TestContractionCanonical()
2235 delete collator; in TestContractionCanonical()