Lines Matching refs:textoffset

674                                            int32_t  textoffset,  in getNextBaseOffset()  argument
677 if (textoffset < textlength) { in getNextBaseOffset()
678 int32_t temp = textoffset; in getNextBaseOffset()
690 return textoffset; in getNextBaseOffset()
704 int32_t textoffset) in getNextUStringSearchBaseOffset() argument
708 textoffset < textlength) { in getNextUStringSearchBaseOffset()
709 int32_t temp = textoffset; in getNextUStringSearchBaseOffset()
713 return getNextBaseOffset(text, textoffset, textlength); in getNextUStringSearchBaseOffset()
716 return textoffset; in getNextUStringSearchBaseOffset()
733 int32_t textoffset, in shiftForward() argument
746 textoffset += shift; in shiftForward()
749 textoffset += pattern->defaultShiftSize; in shiftForward()
752 textoffset = getNextUStringSearchBaseOffset(strsrch, textoffset); in shiftForward()
759 return textoffset; in shiftForward()
795 int32_t textoffset, in getNextSafeOffset() argument
798 int32_t result = textoffset; // first contraction character in getNextSafeOffset()
1251 int32_t *textoffset, UErrorCode *status) in checkNextExactMatch() argument
1256 if (!checkNextExactContractionMatch(strsrch, &start, textoffset, status)) { in checkNextExactMatch()
1261 if (!isBreakUnit(strsrch, start, *textoffset) || in checkNextExactMatch()
1262 checkRepeatedMatch(strsrch, start, *textoffset) || in checkNextExactMatch()
1263 hasAccentsBeforeMatch(strsrch, start, *textoffset) || in checkNextExactMatch()
1264 !checkIdentical(strsrch, start, *textoffset) || in checkNextExactMatch()
1265 hasAccentsAfterMatch(strsrch, start, *textoffset)) { in checkNextExactMatch()
1267 (*textoffset) ++; in checkNextExactMatch()
1268 *textoffset = getNextUStringSearchBaseOffset(strsrch, *textoffset); in checkNextExactMatch()
1274 checkBreakBoundary(strsrch, &start, textoffset); in checkNextExactMatch()
1279 strsrch->search->matchedLength = *textoffset - start; in checkNextExactMatch()
1293 int32_t textoffset) in getPreviousBaseOffset() argument
1295 if (textoffset > 0) { in getPreviousBaseOffset()
1297 int32_t result = textoffset; in getPreviousBaseOffset()
1298 U16_BACK_1(text, 0, textoffset); in getPreviousBaseOffset()
1299 int32_t temp = textoffset; in getPreviousBaseOffset()
1303 return textoffset; in getPreviousBaseOffset()
1307 if (textoffset == 0) { in getPreviousBaseOffset()
1312 return textoffset; in getPreviousBaseOffset()
1531 int32_t textoffset) in getPreviousSafeOffset() argument
1533 int32_t result = textoffset; // first contraction character in getPreviousSafeOffset()
1578 int32_t textoffset, in doNextCanonicalSuffixMatch() argument
1588 int32_t safeoffset = textoffset; in doNextCanonicalSuffixMatch()
1590 if (textoffset != 0 && ucol_unsafeCP(strsrch->canonicalSuffixAccents[0], in doNextCanonicalSuffixMatch()
1592 safeoffset = getPreviousSafeOffset(collator, text, textoffset); in doNextCanonicalSuffixMatch()
1593 safelength = textoffset - safeoffset; in doNextCanonicalSuffixMatch()
1653 failedoffset, textoffset, status); in doNextCanonicalSuffixMatch()
1675 result = textoffset; in doNextCanonicalSuffixMatch()
1711 int32_t textoffset, in doNextCanonicalMatch() argument
1715 int32_t temp = textoffset; in doNextCanonicalMatch()
1717 if ((getFCD(text, &temp, textoffset) & LAST_BYTE_MASK_) == 0) { in doNextCanonicalMatch()
1721 offset = doNextCanonicalPrefixMatch(strsrch, offset, textoffset, in doNextCanonicalMatch()
1737 int32_t baseoffset = getPreviousBaseOffset(text, textoffset); in doNextCanonicalMatch()
1739 unorm_normalize(text + baseoffset, textoffset - baseoffset, UNORM_NFD, in doNextCanonicalMatch()
1785 int32_t textoffset) in getPreviousUStringSearchBaseOffset() argument
1787 if (strsrch->pattern.hasPrefixAccents && textoffset > 0) { in getPreviousUStringSearchBaseOffset()
1789 int32_t offset = textoffset; in getPreviousUStringSearchBaseOffset()
1792 return getPreviousBaseOffset(text, textoffset); in getPreviousUStringSearchBaseOffset()
1795 return textoffset; in getPreviousUStringSearchBaseOffset()
1911 int32_t *textoffset, in checkNextCanonicalMatch() argument
1924 strsrch->search->matchedLength = *textoffset - in checkNextCanonicalMatch()
1930 if (!checkNextCanonicalContractionMatch(strsrch, &start, textoffset, in checkNextCanonicalMatch()
1937 if (checkRepeatedMatch(strsrch, start, *textoffset) || in checkNextCanonicalMatch()
1938 !isBreakUnit(strsrch, start, *textoffset) || in checkNextCanonicalMatch()
1939 !checkIdentical(strsrch, start, *textoffset)) { in checkNextCanonicalMatch()
1940 (*textoffset) ++; in checkNextCanonicalMatch()
1941 *textoffset = getNextBaseOffset(strsrch->search->text, *textoffset, in checkNextCanonicalMatch()
1947 strsrch->search->matchedLength = *textoffset - start; in checkNextCanonicalMatch()
1966 int32_t textoffset, in reverseShift() argument
1971 if (textoffset != strsrch->search->textLength) { in reverseShift()
1972 textoffset --; in reverseShift()
1975 textoffset -= strsrch->pattern.defaultShiftSize; in reverseShift()
1988 textoffset -= shift; in reverseShift()
1991 textoffset -= strsrch->pattern.defaultShiftSize; in reverseShift()
1994 textoffset = getPreviousUStringSearchBaseOffset(strsrch, textoffset); in reverseShift()
1995 return textoffset; in reverseShift()
2097 int32_t *textoffset, in checkPreviousExactMatch() argument
2102 if (!checkPreviousExactContractionMatch(strsrch, textoffset, &end, status) in checkPreviousExactMatch()
2109 if (checkRepeatedMatch(strsrch, *textoffset, end) || in checkPreviousExactMatch()
2110 !isBreakUnit(strsrch, *textoffset, end) || in checkPreviousExactMatch()
2111 hasAccentsBeforeMatch(strsrch, *textoffset, end) || in checkPreviousExactMatch()
2112 !checkIdentical(strsrch, *textoffset, end) || in checkPreviousExactMatch()
2113 hasAccentsAfterMatch(strsrch, *textoffset, end)) { in checkPreviousExactMatch()
2114 (*textoffset) --; in checkPreviousExactMatch()
2115 *textoffset = getPreviousBaseOffset(strsrch->search->text, in checkPreviousExactMatch()
2116 *textoffset); in checkPreviousExactMatch()
2122 checkBreakBoundary(strsrch, textoffset, &end); in checkPreviousExactMatch()
2125 strsrch->search->matchedIndex = *textoffset; in checkPreviousExactMatch()
2126 strsrch->search->matchedLength = end - *textoffset; in checkPreviousExactMatch()
2238 int32_t textoffset, in doPreviousCanonicalPrefixMatch() argument
2247 int32_t safeoffset = textoffset; in doPreviousCanonicalPrefixMatch()
2249 if (textoffset && in doPreviousCanonicalPrefixMatch()
2253 safeoffset = getNextSafeOffset(collator, text, textoffset, in doPreviousCanonicalPrefixMatch()
2255 safelength = safeoffset - textoffset; in doPreviousCanonicalPrefixMatch()
2259 text + textoffset, safelength, in doPreviousCanonicalPrefixMatch()
2317 textoffset, failedoffset, status); in doPreviousCanonicalPrefixMatch()
2339 result = textoffset; in doPreviousCanonicalPrefixMatch()
2342 result = textoffset + (safeoffset - result); in doPreviousCanonicalPrefixMatch()
2374 int32_t textoffset, in doPreviousCanonicalMatch() argument
2378 int32_t temp = textoffset; in doPreviousCanonicalMatch()
2384 offset = doPreviousCanonicalSuffixMatch(strsrch, textoffset, in doPreviousCanonicalMatch()
2400 int32_t baseoffset = getNextBaseOffset(text, textoffset, textlength); in doPreviousCanonicalMatch()
2402 unorm_normalize(text + textoffset, baseoffset - textoffset, UNORM_NFD, in doPreviousCanonicalMatch()
2549 int32_t *textoffset, in checkPreviousCanonicalMatch() argument
2559 strsrch->search->matchedIndex = *textoffset; in checkPreviousCanonicalMatch()
2563 - *textoffset; in checkPreviousCanonicalMatch()
2568 if (!checkPreviousCanonicalContractionMatch(strsrch, textoffset, &end, in checkPreviousCanonicalMatch()
2576 if (checkRepeatedMatch(strsrch, *textoffset, end) || in checkPreviousCanonicalMatch()
2577 !isBreakUnit(strsrch, *textoffset, end) || in checkPreviousCanonicalMatch()
2578 !checkIdentical(strsrch, *textoffset, end)) { in checkPreviousCanonicalMatch()
2579 (*textoffset) --; in checkPreviousCanonicalMatch()
2580 *textoffset = getPreviousBaseOffset(strsrch->search->text, in checkPreviousCanonicalMatch()
2581 *textoffset); in checkPreviousCanonicalMatch()
2585 strsrch->search->matchedIndex = *textoffset; in checkPreviousCanonicalMatch()
2586 strsrch->search->matchedLength = end - *textoffset; in checkPreviousCanonicalMatch()
4433 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handleNextExact() local
4438 textoffset = shiftForward(strsrch, textoffset, UCOL_NULLORDER, in usearch_handleNextExact()
4440 while (textoffset <= textlength) in usearch_handleNextExact()
4447 setColEIterOffset(coleiter, textoffset); in usearch_handleNextExact()
4504 textoffset = shiftForward(strsrch, textoffset, lastce, in usearch_handleNextExact()
4511 if (checkNextExactMatch(strsrch, &textoffset, status)) { in usearch_handleNextExact()
4547 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handleNextCanonical() local
4551 textoffset = shiftForward(strsrch, textoffset, UCOL_NULLORDER, in usearch_handleNextCanonical()
4556 while (textoffset <= textlength) in usearch_handleNextCanonical()
4563 setColEIterOffset(coleiter, textoffset); in usearch_handleNextCanonical()
4613 found = doNextCanonicalMatch(strsrch, textoffset, status); in usearch_handleNextCanonical()
4620 textoffset = shiftForward(strsrch, textoffset, lastce, in usearch_handleNextCanonical()
4627 if (checkNextCanonicalMatch(strsrch, &textoffset, status)) { in usearch_handleNextCanonical()
4661 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handlePreviousExact() local
4667 textoffset = strsrch->search->matchedIndex; in usearch_handlePreviousExact()
4670 textoffset = reverseShift(strsrch, textoffset, UCOL_NULLORDER, in usearch_handlePreviousExact()
4673 while (textoffset >= 0) in usearch_handlePreviousExact()
4681 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousExact()
4738 textoffset = reverseShift(strsrch, textoffset, targetce, in usearch_handlePreviousExact()
4744 if (checkPreviousExactMatch(strsrch, &textoffset, status)) { in usearch_handlePreviousExact()
4745 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousExact()
4807 int32_t textoffset = ucol_getOffset(coleiter); in usearch_handlePreviousCanonical() local
4815 textoffset = strsrch->search->matchedIndex; in usearch_handlePreviousCanonical()
4818 textoffset = reverseShift(strsrch, textoffset, UCOL_NULLORDER, in usearch_handlePreviousCanonical()
4823 while (textoffset >= 0) in usearch_handlePreviousCanonical()
4830 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousCanonical()
4884 found = doPreviousCanonicalMatch(strsrch, textoffset, status); in usearch_handlePreviousCanonical()
4891 textoffset = reverseShift(strsrch, textoffset, targetce, in usearch_handlePreviousCanonical()
4897 if (checkPreviousCanonicalMatch(strsrch, &textoffset, status)) { in usearch_handlePreviousCanonical()
4898 setColEIterOffset(coleiter, textoffset); in usearch_handlePreviousCanonical()