Lines Matching refs:coleiter

293     UCollationElements *coleiter = strsrch->utilIter;  in initializePatternCETable()  local
295 if (coleiter == NULL) { in initializePatternCETable()
296 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable()
301 strsrch->utilIter = coleiter; in initializePatternCETable()
304 ucol_setText(coleiter, pattern->text, pattern->textLength, status); in initializePatternCETable()
318 while ((ce = ucol_next(coleiter, status)) != UCOL_NULLORDER && in initializePatternCETable()
324 patternlength - ucol_getOffset(coleiter) + 1, in initializePatternCETable()
335 result += (uint16_t)(ucol_getMaxExpansion(coleiter, ce) - 1); in initializePatternCETable()
365 UCollationElements *coleiter = strsrch->utilIter; in initializePatternPCETable() local
367 if (coleiter == NULL) { in initializePatternPCETable()
368 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable()
373 strsrch->utilIter = coleiter; in initializePatternPCETable()
375 ucol_setText(coleiter, pattern->text, pattern->textLength, status); in initializePatternPCETable()
389 icu::UCollationPCE iter(coleiter); in initializePatternPCETable()
398 patternlength - ucol_getOffset(coleiter) + 1, in initializePatternPCETable()
623 UCollationElements *coleiter = strsrch->utilIter; in isBreakUnit() local
627 ucol_setText(coleiter, text, end - start, &status); in isBreakUnit()
630 int32_t ce = getCE(strsrch, ucol_next(coleiter, &status)); in isBreakUnit()
639 int32_t nextce = ucol_next(coleiter, &status); in isBreakUnit()
640 while (ucol_getOffset(coleiter) == (end - start) in isBreakUnit()
642 nextce = ucol_next(coleiter, &status); in isBreakUnit()
644 if (ucol_getOffset(coleiter) == (end - start) in isBreakUnit()
868 UCollationElements *coleiter = strsrch->utilIter; in checkExtraMatchAccents() local
869 ucol_setText(coleiter, norm, size, status); in checkExtraMatchAccents()
874 offset = ucol_getOffset(coleiter); in checkExtraMatchAccents()
878 ce = ucol_next(coleiter, status); in checkExtraMatchAccents()
919 UCollationElements *coleiter = strsrch->textIter; in hasAccentsBeforeMatch() local
925 setColEIterOffset(coleiter, start); in hasAccentsBeforeMatch()
926 int32_t ce = getCE(strsrch, ucol_next(coleiter, &status)); in hasAccentsBeforeMatch()
934 ce = getCE(strsrch, ucol_next(coleiter, &status)); in hasAccentsBeforeMatch()
939 if (!ignorable && inNormBuf(coleiter)) { in hasAccentsBeforeMatch()
966 setColEIterOffset(coleiter, start); in hasAccentsBeforeMatch()
967 ce = ucol_previous(coleiter, &status); in hasAccentsBeforeMatch()
1006 UCollationElements *coleiter = strsrch->textIter; in hasAccentsAfterMatch() local
1009 setColEIterOffset(coleiter, start); in hasAccentsAfterMatch()
1010 while ((ce = getCE(strsrch, ucol_next(coleiter, &status))) != firstce) { in hasAccentsAfterMatch()
1017 if (getCE(strsrch, ucol_next(coleiter, &status)) in hasAccentsAfterMatch()
1028 ce = ucol_next(coleiter, &status); in hasAccentsAfterMatch()
1036 if (ucol_getOffset(coleiter) <= end) { in hasAccentsAfterMatch()
1130 inline int32_t getColElemIterOffset(const UCollationElements *coleiter, in getColElemIterOffset() argument
1133 int32_t result = ucol_getOffset(coleiter); in getColElemIterOffset()
1135 if (FALSE && !forwards && inNormBuf(coleiter) && !isFCDPointerNull(coleiter)) { in getColElemIterOffset()
1161 UCollationElements *coleiter = strsrch->textIter; in checkNextExactContractionMatch() local
1178 int32_t expansion = getExpansionPrefix(coleiter); in checkNextExactContractionMatch()
1180 setColEIterOffset(coleiter, *start); in checkNextExactContractionMatch()
1189 ucol_next(coleiter, status); in checkNextExactContractionMatch()
1193 if (ucol_getOffset(coleiter) != temp) { in checkNextExactContractionMatch()
1195 temp = ucol_getOffset(coleiter); in checkNextExactContractionMatch()
1204 int32_t ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextExactContractionMatch()
1208 if (expandflag && count == 0 && ucol_getOffset(coleiter) != temp) { in checkNextExactContractionMatch()
1210 temp = ucol_getOffset(coleiter); in checkNextExactContractionMatch()
1247 UCollationElements *coleiter = strsrch->textIter; in checkNextExactMatch() local
1248 int32_t start = getColElemIterOffset(coleiter, FALSE); in checkNextExactMatch()
1401 UCollationElements *coleiter) in checkCollationMatch() argument
1407 int32_t ce = getCE(strsrch, ucol_next(coleiter, &status)); in checkCollationMatch()
1470 UCollationElements *coleiter = strsrch->utilIter; in doNextCanonicalPrefixMatch() local
1498 ucol_setText(coleiter, match, matchsize, status); in doNextCanonicalPrefixMatch()
1500 if (checkCollationMatch(strsrch, coleiter)) { in doNextCanonicalPrefixMatch()
1581 UCollationElements *coleiter = strsrch->utilIter; in doNextCanonicalSuffixMatch() local
1600 ucol_setText(coleiter, safetext, safetextlength, status); in doNextCanonicalSuffixMatch()
1609 int32_t textce = ucol_previous(coleiter, status); in doNextCanonicalSuffixMatch()
1618 if (coleiter == strsrch->textIter) { in doNextCanonicalSuffixMatch()
1624 coleiter = strsrch->textIter; in doNextCanonicalSuffixMatch()
1625 setColEIterOffset(coleiter, safeoffset); in doNextCanonicalSuffixMatch()
1633 int32_t failedoffset = getColElemIterOffset(coleiter, FALSE); in doNextCanonicalSuffixMatch()
1664 int32_t result = getColElemIterOffset(coleiter, FALSE); in doNextCanonicalSuffixMatch()
1666 int32_t leftoverces = getExpansionPrefix(coleiter); in doNextCanonicalSuffixMatch()
1680 return ucol_getOffset(coleiter); in doNextCanonicalSuffixMatch()
1712 UCollationElements *coleiter = strsrch->textIter; in doNextCanonicalMatch() local
1713 int32_t offset = getColElemIterOffset(coleiter, FALSE); in doNextCanonicalMatch()
1718 setColEIterOffset(coleiter, offset); in doNextCanonicalMatch()
1811 UCollationElements *coleiter = strsrch->textIter; in checkNextCanonicalContractionMatch() local
1821 int32_t expansion = getExpansionPrefix(coleiter); in checkNextCanonicalContractionMatch()
1823 setColEIterOffset(coleiter, *start); in checkNextCanonicalContractionMatch()
1832 ucol_next(coleiter, status); in checkNextCanonicalContractionMatch()
1836 if (ucol_getOffset(coleiter) != temp) { in checkNextCanonicalContractionMatch()
1838 temp = ucol_getOffset(coleiter); in checkNextCanonicalContractionMatch()
1848 int32_t ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextCanonicalContractionMatch()
1854 if (expandflag && count == 0 && ucol_getOffset(coleiter) != temp) { in checkNextCanonicalContractionMatch()
1856 temp = ucol_getOffset(coleiter); in checkNextCanonicalContractionMatch()
1865 ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextCanonicalContractionMatch()
1868 ucol_getOffset(coleiter) <= *end) { in checkNextCanonicalContractionMatch()
1869 ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextCanonicalContractionMatch()
1909 UCollationElements *coleiter = strsrch->textIter; in checkNextCanonicalMatch() local
1917 ucol_getOffset(coleiter)); in checkNextCanonicalMatch()
1923 int32_t start = getColElemIterOffset(coleiter, FALSE); in checkNextCanonicalMatch()
2008 UCollationElements *coleiter = strsrch->textIter; in checkPreviousExactContractionMatch() local
2019 int32_t expansion = getExpansionSuffix(coleiter); in checkPreviousExactContractionMatch()
2021 setColEIterOffset(coleiter, *end); in checkPreviousExactContractionMatch()
2030 ucol_previous(coleiter, status); in checkPreviousExactContractionMatch()
2034 if (ucol_getOffset(coleiter) != temp) { in checkPreviousExactContractionMatch()
2036 temp = ucol_getOffset(coleiter); in checkPreviousExactContractionMatch()
2045 int32_t ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousExactContractionMatch()
2052 getColElemIterOffset(coleiter, FALSE) != temp) { in checkPreviousExactContractionMatch()
2054 temp = ucol_getOffset(coleiter); in checkPreviousExactContractionMatch()
2172 UCollationElements *coleiter = strsrch->utilIter; in doPreviousCanonicalSuffixMatch() local
2200 ucol_setText(coleiter, match, matchsize, status); in doPreviousCanonicalSuffixMatch()
2202 if (checkCollationMatch(strsrch, coleiter)) { in doPreviousCanonicalSuffixMatch()
2261 UCollationElements *coleiter = strsrch->utilIter; in doPreviousCanonicalPrefixMatch() local
2263 ucol_setText(coleiter, safetext, safetextlength, status); in doPreviousCanonicalPrefixMatch()
2273 int32_t textce = ucol_next(coleiter, status); in doPreviousCanonicalPrefixMatch()
2282 if (coleiter == strsrch->textIter) { in doPreviousCanonicalPrefixMatch()
2288 coleiter = strsrch->textIter; in doPreviousCanonicalPrefixMatch()
2289 setColEIterOffset(coleiter, safeoffset); in doPreviousCanonicalPrefixMatch()
2297 int32_t failedoffset = ucol_getOffset(coleiter); in doPreviousCanonicalPrefixMatch()
2328 int32_t result = ucol_getOffset(coleiter); in doPreviousCanonicalPrefixMatch()
2330 int32_t leftoverces = getExpansionSuffix(coleiter); in doPreviousCanonicalPrefixMatch()
2343 return ucol_getOffset(coleiter); in doPreviousCanonicalPrefixMatch()
2375 UCollationElements *coleiter = strsrch->textIter; in doPreviousCanonicalMatch() local
2376 int32_t offset = ucol_getOffset(coleiter); in doPreviousCanonicalMatch()
2381 setColEIterOffset(coleiter, offset); in doPreviousCanonicalMatch()
2448 UCollationElements *coleiter = strsrch->textIter; in checkPreviousCanonicalContractionMatch() local
2459 int32_t expansion = getExpansionSuffix(coleiter); in checkPreviousCanonicalContractionMatch()
2461 setColEIterOffset(coleiter, *end); in checkPreviousCanonicalContractionMatch()
2470 ucol_previous(coleiter, status); in checkPreviousCanonicalContractionMatch()
2474 if (ucol_getOffset(coleiter) != temp) { in checkPreviousCanonicalContractionMatch()
2476 temp = ucol_getOffset(coleiter); in checkPreviousCanonicalContractionMatch()
2485 int32_t ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousCanonicalContractionMatch()
2492 getColElemIterOffset(coleiter, FALSE) != temp) { in checkPreviousCanonicalContractionMatch()
2494 temp = ucol_getOffset(coleiter); in checkPreviousCanonicalContractionMatch()
2503 ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousCanonicalContractionMatch()
2506 ucol_getOffset(coleiter) <= *start) { in checkPreviousCanonicalContractionMatch()
2507 ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousCanonicalContractionMatch()
2547 UCollationElements *coleiter = strsrch->textIter; in checkPreviousCanonicalMatch() local
2556 getColElemIterOffset(coleiter, FALSE)) in checkPreviousCanonicalMatch()
2561 int32_t end = ucol_getOffset(coleiter); in checkPreviousCanonicalMatch()
4336 UCollationElements *coleiter = strsrch->textIter; in usearch_handleNextExact() local
4340 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handleNextExact()
4354 setColEIterOffset(coleiter, textoffset); in usearch_handleNextExact()
4360 targetce = ucol_previous(coleiter, status); in usearch_handleNextExact()
4366 if (targetce == UCOL_IGNORABLE && inNormBuf(coleiter)) { in usearch_handleNextExact()
4380 if (!hasExpansion(coleiter)) { in usearch_handleNextExact()
4390 targetce = ucol_previous(coleiter, status); in usearch_handleNextExact()
4420 setColEIterOffset(coleiter, strsrch->search->matchedIndex); in usearch_handleNextExact()
4450 UCollationElements *coleiter = strsrch->textIter; in usearch_handleNextCanonical() local
4454 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handleNextCanonical()
4470 setColEIterOffset(coleiter, textoffset); in usearch_handleNextCanonical()
4476 targetce = ucol_previous(coleiter, status); in usearch_handleNextCanonical()
4491 if (!hasExpansion(coleiter)) { in usearch_handleNextCanonical()
4498 targetce = ucol_previous(coleiter, status); in usearch_handleNextCanonical()
4535 setColEIterOffset(coleiter, strsrch->search->matchedIndex); in usearch_handleNextCanonical()
4565 UCollationElements *coleiter = strsrch->textIter; in usearch_handlePreviousExact() local
4568 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handlePreviousExact()
4588 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousExact()
4595 targetce = ucol_next(coleiter, status); in usearch_handlePreviousExact()
4612 if (!hasExpansion(coleiter)) { in usearch_handlePreviousExact()
4623 targetce = ucol_next(coleiter, status); in usearch_handlePreviousExact()
4652 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousExact()
4711 UCollationElements *coleiter = strsrch->textIter; in usearch_handlePreviousCanonical() local
4714 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handlePreviousCanonical()
4737 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousCanonical()
4743 targetce = ucol_next(coleiter, status); in usearch_handlePreviousCanonical()
4759 if (!hasExpansion(coleiter)) { in usearch_handlePreviousCanonical()
4769 targetce = ucol_next(coleiter, status); in usearch_handlePreviousCanonical()
4805 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousCanonical()