Lines Matching refs:collator
277 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable()
344 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable()
466 ucol_getLocaleByType(strsrch->collator, ULOC_VALID_LOCALE, &status), in getBreakIterator()
560 UCollator *collator = ucol_open(locale, status); in usearch_open() local
564 collator, breakiter, status); in usearch_open()
567 if (collator) { in usearch_open()
568 ucol_close(collator); in usearch_open()
586 const UCollator *collator, in usearch_openFromCollator() argument
599 if (pattern == nullptr || text == nullptr || collator == nullptr) { in usearch_openFromCollator()
605 if(ucol_getAttribute(collator, UCOL_NUMERIC_COLLATION, status) == UCOL_ON) { in usearch_openFromCollator()
634 result->collator = collator; in usearch_openFromCollator()
635 result->strength = ucol_getStrength(collator); in usearch_openFromCollator()
638 ucol_getAttribute(collator, UCOL_ALTERNATE_HANDLING, status) == in usearch_openFromCollator()
640 result->variableTop = ucol_getVariableTop(collator, status); in usearch_openFromCollator()
676 result->textIter = ucol_openElements(collator, text, in usearch_openFromCollator()
719 if (strsrch->ownCollator && strsrch->collator) { in usearch_close()
720 ucol_close((UCollator *)strsrch->collator); in usearch_close()
964 const UCollator *collator, in usearch_setCollator() argument
968 if (collator == nullptr) { in usearch_setCollator()
979 if (strsrch->ownCollator && (strsrch->collator != collator)) { in usearch_setCollator()
980 ucol_close((UCollator *)strsrch->collator); in usearch_setCollator()
983 strsrch->collator = collator; in usearch_setCollator()
984 strsrch->strength = ucol_getStrength(collator); in usearch_setCollator()
994 ucol_getAttribute(collator, UCOL_ALTERNATE_HANDLING, status) == in usearch_setCollator()
997 strsrch->variableTop = ucol_getVariableTop(collator, status); in usearch_setCollator()
998 strsrch->textIter = ucol_openElements(collator, in usearch_setCollator()
1003 collator, strsrch->pattern.text, strsrch->pattern.textLength, status); in usearch_setCollator()
1021 return (UCollator *)strsrch->collator; in usearch_getCollator()
1327 UCollationStrength newStrength = ucol_getStrength(strsrch->collator); in usearch_reset()
1333 strsrch->strength = ucol_getStrength(strsrch->collator); in usearch_reset()
1341 shift = ucol_getAttribute(strsrch->collator, UCOL_ALTERNATE_HANDLING, in usearch_reset()
1349 varTop = ucol_getVariableTop(strsrch->collator, &status); in usearch_reset()