• Home
  • Raw
  • Download

Lines Matching refs:collator

159 static UCollator *getCollator(const char *collator)   in getCollator()  argument
161 if (collator == NULL) { in getCollator()
164 if (strcmp(collator, "fr") == 0) { in getCollator()
167 else if (strcmp(collator, "de") == 0) { in getCollator()
170 else if (strcmp(collator, "es") == 0) { in getCollator()
547 UCollator *collator = getCollator(search.collator); in assertEqual() local
555 ucol_setStrength(collator, search.strength); in assertEqual()
556 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in assertEqual()
564 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual()
568 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual()
578 UCollator *collator = getCollator(search.collator); in assertCanonicalEqual() local
586 ucol_setStrength(collator, search.strength); in assertCanonicalEqual()
587 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in assertCanonicalEqual()
588 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in assertCanonicalEqual()
599 ucol_setStrength(collator, UCOL_TERTIARY); in assertCanonicalEqual()
606 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_OFF, &status); in assertCanonicalEqual()
607 ucol_setStrength(collator, UCOL_TERTIARY); in assertCanonicalEqual()
619 UCollator *collator = getCollator(search.collator); in assertEqualWithAttribute() local
626 ucol_setStrength(collator, search.strength); in assertEqualWithAttribute()
627 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in assertEqualWithAttribute()
639 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqualWithAttribute()
643 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqualWithAttribute()
775 UCollator *collator = getCollator(search->collator); in TestBreakIterator() local
780 ucol_setStrength(collator, search->strength); in TestBreakIterator()
782 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in TestBreakIterator()
792 ucol_setStrength(collator, UCOL_TERTIARY); in TestBreakIterator()
882 UCollator *collator = getCollator(search->collator); in TestOverlap() local
888 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in TestOverlap()
1655 UCollator *collator; in TestContraction() local
1664 collator = ucol_openRules(rules, u_strlen(rules), UCOL_ON, in TestContraction()
1673 strsrch = usearch_openFromCollator(pattern, 1, text, 1, collator, NULL, in TestContraction()
1690 ucol_close(collator); in TestContraction()
1698 UCollator *collator; in TestIgnorable() local
1708 collator = ucol_openRules(rules, u_strlen(rules), UCOL_ON, in TestIgnorable()
1717 strsrch = usearch_openFromCollator(pattern, 1, text, 1, collator, NULL, in TestIgnorable()
1734 ucol_close(collator); in TestIgnorable()
1758 if (search.collator != NULL) { in TestDiacriticMatch()
1759 coll = ucol_openFromShortString(search.collator, FALSE, NULL, &status); in TestDiacriticMatch()
1766 …log_err("Error opening string search collator(\"%s\") %s\n", search.collator, u_errorName(status)); in TestDiacriticMatch()
1865 UCollator *collator = getCollator(search->collator); in TestBreakIteratorCanonical() local
1871 ucol_setStrength(collator, search->strength); in TestBreakIteratorCanonical()
1873 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in TestBreakIteratorCanonical()
1891 ucol_setStrength(collator, UCOL_TERTIARY); in TestBreakIteratorCanonical()
1983 UCollator *collator = getCollator(search->collator); in TestOverlapCanonical() local
1989 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in TestOverlapCanonical()
2269 UCollator *collator; in TestGetSetOffsetCanonical() local
2282 collator = usearch_getCollator(strsrch); in TestGetSetOffsetCanonical()
2283 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestGetSetOffsetCanonical()
2355 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_OFF, &status); in TestGetSetOffsetCanonical()
2383 UCollator *collator = NULL; in TestContractionCanonical() local
2392 collator = ucol_openRules(rules, u_strlen(rules), UCOL_ON, in TestContractionCanonical()
2401 strsrch = usearch_openFromCollator(pattern, 1, text, 1, collator, NULL, in TestContractionCanonical()
2421 ucol_close(collator); in TestContractionCanonical()