Lines Matching refs:collator
302 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable()
374 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable()
793 inline int32_t getNextSafeOffset(const UCollator *collator, in getNextSafeOffset() argument
799 while (result != textlength && ucol_unsafeCP(text[result], collator)) { in getNextSafeOffset()
844 int32_t safeoffset = getNextSafeOffset(strsrch->collator, in checkExtraMatchAccents()
1170 const UCollator *collator = strsrch->collator; in checkNextExactContractionMatch() local
1181 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextExactContractionMatch()
1183 && ucol_unsafeCP(text[*start + 1], collator))) { in checkNextExactContractionMatch()
1529 inline uint32_t getPreviousSafeOffset(const UCollator *collator, in getPreviousSafeOffset() argument
1534 while (result != 0 && ucol_unsafeCP(text[result - 1], collator)) { in getPreviousSafeOffset()
1582 const UCollator *collator = strsrch->collator; in doNextCanonicalSuffixMatch() local
1591 collator)) { in doNextCanonicalSuffixMatch()
1592 safeoffset = getPreviousSafeOffset(collator, text, textoffset); in doNextCanonicalSuffixMatch()
1820 const UCollator *collator = strsrch->collator; in checkNextCanonicalContractionMatch() local
1824 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextCanonicalContractionMatch()
1826 && ucol_unsafeCP(text[*start + 1], collator))) { in checkNextCanonicalContractionMatch()
2017 const UCollator *collator = strsrch->collator; in checkPreviousExactContractionMatch() local
2024 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) { in checkPreviousExactContractionMatch()
2242 const UCollator *collator = strsrch->collator; in doPreviousCanonicalPrefixMatch() local
2252 ], collator)) { in doPreviousCanonicalPrefixMatch()
2253 safeoffset = getNextSafeOffset(collator, text, textoffset, in doPreviousCanonicalPrefixMatch()
2457 const UCollator *collator = strsrch->collator; in checkPreviousCanonicalContractionMatch() local
2464 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) { in checkPreviousCanonicalContractionMatch()
2612 UCollator *collator = ucol_open(locale, status); in usearch_open() local
2616 collator, breakiter, status); in usearch_open()
2619 if (collator) { in usearch_open()
2620 ucol_close(collator); in usearch_open()
2638 const UCollator *collator, in usearch_openFromCollator() argument
2651 if (pattern == NULL || text == NULL || collator == NULL) { in usearch_openFromCollator()
2657 if(ucol_getAttribute(collator, UCOL_NUMERIC_COLLATION, status) == UCOL_ON) { in usearch_openFromCollator()
2686 result->collator = collator; in usearch_openFromCollator()
2687 result->strength = ucol_getStrength(collator); in usearch_openFromCollator()
2690 ucol_getAttribute(collator, UCOL_ALTERNATE_HANDLING, status) == in usearch_openFromCollator()
2692 result->variableTop = ucol_getVariableTop(collator, status); in usearch_openFromCollator()
2718 …ernalBreakIter = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(result->collator, ULOC_VALID_LOCAL… in usearch_openFromCollator()
2728 result->textIter = ucol_openElements(collator, text, in usearch_openFromCollator()
2771 if (strsrch->ownCollator && strsrch->collator) { in usearch_close()
2772 ucol_close((UCollator *)strsrch->collator); in usearch_close()
3014 const UCollator *collator, in usearch_setCollator() argument
3018 if (collator == NULL) { in usearch_setCollator()
3029 if (strsrch->ownCollator && (strsrch->collator != collator)) { in usearch_setCollator()
3030 ucol_close((UCollator *)strsrch->collator); in usearch_setCollator()
3033 strsrch->collator = collator; in usearch_setCollator()
3034 strsrch->strength = ucol_getStrength(collator); in usearch_setCollator()
3038 …rch->internalBreakIter = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(collator, ULOC_VALID_LOCAL… in usearch_setCollator()
3043 ucol_getAttribute(collator, UCOL_ALTERNATE_HANDLING, status) == in usearch_setCollator()
3046 strsrch->variableTop = ucol_getVariableTop(collator, status); in usearch_setCollator()
3047 strsrch->textIter = ucol_openElements(collator, in usearch_setCollator()
3052 collator, strsrch->pattern.text, strsrch->pattern.textLength, status); in usearch_setCollator()
3070 return (UCollator *)strsrch->collator; in usearch_getCollator()
3401 UCollationStrength newStrength = ucol_getStrength(strsrch->collator); in usearch_reset()
3407 strsrch->strength = ucol_getStrength(strsrch->collator); in usearch_reset()
3415 shift = ucol_getAttribute(strsrch->collator, UCOL_ALTERNATE_HANDLING, in usearch_reset()
3423 varTop = ucol_getVariableTop(strsrch->collator, &status); in usearch_reset()