Lines Matching refs:textOffset
676 * @param textoffset current offset
683 int32_t textoffset,
686 if (textoffset < textlength) {
687 int32_t temp = textoffset;
699 return textoffset;
706 * @param textoffset current offset, one offset away from the last character
713 int32_t textoffset)
717 textoffset < textlength) {
718 int32_t temp = textoffset;
722 return getNextBaseOffset(text, textoffset, textlength);
725 return textoffset;
734 * @param textoffset start text position to do search
742 int32_t textoffset,
755 textoffset += shift;
758 textoffset += pattern->defaultShiftSize;
761 textoffset = getNextUStringSearchBaseOffset(strsrch, textoffset);
768 return textoffset;
797 * @param textoffset offset in string
804 int32_t textoffset,
807 int32_t result = textoffset; // first contraction character
1252 * @param textoffset offset in the collation element text. the returned value
1260 int32_t *textoffset, UErrorCode *status)
1265 if (!checkNextExactContractionMatch(strsrch, &start, textoffset, status)) {
1270 if (!isBreakUnit(strsrch, start, *textoffset) ||
1271 checkRepeatedMatch(strsrch, start, *textoffset) ||
1272 hasAccentsBeforeMatch(strsrch, start, *textoffset) ||
1273 !checkIdentical(strsrch, start, *textoffset) ||
1274 hasAccentsAfterMatch(strsrch, start, *textoffset)) {
1276 (*textoffset) ++;
1277 *textoffset = getNextUStringSearchBaseOffset(strsrch, *textoffset);
1283 checkBreakBoundary(strsrch, &start, textoffset);
1288 strsrch->search->matchedLength = *textoffset - start;
1296 * @param textoffset one offset after the current character
1302 int32_t textoffset)
1304 if (textoffset > 0) {
1306 int32_t result = textoffset;
1307 UTF_BACK_1(text, 0, textoffset);
1308 int32_t temp = textoffset;
1312 return textoffset;
1316 if (textoffset == 0) {
1321 return textoffset;
1528 * Gets the offset to the safe point in text before textoffset.
1533 * @param textoffset offset in string
1540 int32_t textoffset)
1542 int32_t result = textoffset; // first contraction character
1580 * @param textoffset of the start of the rearranged accent
1587 int32_t textoffset,
1597 int32_t safeoffset = textoffset;
1599 if (textoffset != 0 && ucol_unsafeCP(strsrch->canonicalSuffixAccents[0],
1601 safeoffset = getPreviousSafeOffset(collator, text, textoffset);
1602 safelength = textoffset - safeoffset;
1662 failedoffset, textoffset, status);
1684 result = textoffset;
1713 * @param textoffset end offset in the collation element text that ends with
1720 int32_t textoffset,
1724 int32_t temp = textoffset;
1726 textoffset) & LAST_BYTE_MASK_) == 0) {
1730 offset = doNextCanonicalPrefixMatch(strsrch, offset, textoffset,
1746 int32_t baseoffset = getPreviousBaseOffset(text, textoffset);
1748 unorm_normalize(text + baseoffset, textoffset - baseoffset, UNORM_NFD,
1788 * @param textoffset current offset, current character
1794 int32_t textoffset)
1796 if (strsrch->pattern.hasPrefixAccents && textoffset > 0) {
1798 int32_t offset = textoffset;
1801 return getPreviousBaseOffset(text, textoffset);
1804 return textoffset;
1912 * @param textoffset offset in the collation element text. the returned value
1920 int32_t *textoffset,
1933 strsrch->search->matchedLength = *textoffset -
1939 if (!checkNextCanonicalContractionMatch(strsrch, &start, textoffset,
1946 if (checkRepeatedMatch(strsrch, start, *textoffset) ||
1947 !isBreakUnit(strsrch, start, *textoffset) ||
1948 !checkIdentical(strsrch, start, *textoffset)) {
1949 (*textoffset) ++;
1950 *textoffset = getNextBaseOffset(strsrch->search->text, *textoffset,
1956 strsrch->search->matchedLength = *textoffset - start;
1967 * @param textoffset start text position to do search
1975 int32_t textoffset,
1980 if (textoffset != strsrch->search->textLength) {
1981 textoffset --;
1984 textoffset -= strsrch->pattern.defaultShiftSize;
1997 textoffset -= shift;
2000 textoffset -= strsrch->pattern.defaultShiftSize;
2003 textoffset = getPreviousUStringSearchBaseOffset(strsrch, textoffset);
2004 return textoffset;
2098 * @param textoffset offset in the collation element text. the returned value
2106 int32_t *textoffset,
2111 if (!checkPreviousExactContractionMatch(strsrch, textoffset, &end, status)
2118 if (checkRepeatedMatch(strsrch, *textoffset, end) ||
2119 !isBreakUnit(strsrch, *textoffset, end) ||
2120 hasAccentsBeforeMatch(strsrch, *textoffset, end) ||
2121 !checkIdentical(strsrch, *textoffset, end) ||
2122 hasAccentsAfterMatch(strsrch, *textoffset, end)) {
2123 (*textoffset) --;
2124 *textoffset
2125 *textoffset);
2131 checkBreakBoundary(strsrch, textoffset, &end);
2134 strsrch->search->matchedIndex = *textoffset;
2135 strsrch->search->matchedLength = end - *textoffset;
2240 * @param textoffset of the ends of the rearranged accent
2247 int32_t textoffset,
2256 int32_t safeoffset = textoffset;
2258 if (textoffset &&
2262 safeoffset = getNextSafeOffset(collator, text, textoffset,
2264 safelength = safeoffset - textoffset;
2268 text + textoffset, safelength,
2326 textoffset, failedoffset, status);
2348 result = textoffset;
2351 result = textoffset + (safeoffset - result);
2376 * @param textoffset start offset in the collation element text that starts
2383 int32_t textoffset,
2387 int32_t temp = textoffset;
2393 offset = doPreviousCanonicalSuffixMatch(strsrch, textoffset,
2409 int32_t baseoffset = getNextBaseOffset(text, textoffset, textlength);
2411 unorm_normalize(text + textoffset, baseoffset - textoffset, UNORM_NFD,
2550 * @param textoffset offset in the collation element text. the returned value
2558 int32_t *textoffset,
2568 strsrch->search->matchedIndex = *textoffset;
2572 - *textoffset;
2577 if (!checkPreviousCanonicalContractionMatch(strsrch, textoffset, &end,
2585 if (checkRepeatedMatch(strsrch, *textoffset, end) ||
2586 !isBreakUnit(strsrch, *textoffset, end) ||
2587 !checkIdentical(strsrch, *textoffset, end)) {
2588 (*textoffset) --;
2589 *textoffset = getPreviousBaseOffset(strsrch->search->text,
2590 *textoffset);
2594 strsrch->search->matchedIndex = *textoffset;
2595 strsrch->search->matchedLength = end - *textoffset;
4290 int32_t textoffset = ucol_getOffset(coleiter);
4295 textoffset = shiftForward(strsrch, textoffset, UCOL_NULLORDER,
4297 while (textoffset <= textlength)
4304 setColEIterOffset(coleiter, textoffset);
4361 textoffset = shiftForward(strsrch, textoffset, lastce,
4368 if (checkNextExactMatch(strsrch, &textoffset, status)) {
4377 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4381 if (usearch_search(strsrch, textOffset, &start, &end, status)) {
4404 int32_t textoffset = ucol_getOffset(coleiter);
4408 textoffset = shiftForward(strsrch, textoffset, UCOL_NULLORDER,
4413 while (textoffset <= textlength)
4420 setColEIterOffset(coleiter, textoffset);
4470 found = doNextCanonicalMatch(strsrch, textoffset, status);
4477 textoffset = shiftForward(strsrch, textoffset, lastce,
4484 if (checkNextCanonicalMatch(strsrch, &textoffset, status)) {
4492 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4496 if (usearch_search(strsrch, textOffset, &start, &end, status)) {
4518 int32_t textoffset = ucol_getOffset(coleiter);
4524 textoffset = strsrch->search->matchedIndex;
4527 textoffset = reverseShift(strsrch, textoffset, UCOL_NULLORDER,
4530 while (textoffset >= 0)
4538 setColEIterOffset(coleiter, textoffset);
4595 textoffset = reverseShift(strsrch, textoffset, targetce,
4601 if (checkPreviousExactMatch(strsrch, &textoffset, status)) {
4602 setColEIterOffset(coleiter, textoffset);
4609 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4613 if (usearch_searchBackwards(strsrch, textOffset, &start, &end, status)) {
4636 int32_t textoffset = ucol_getOffset(coleiter);
4644 textoffset = strsrch->search->matchedIndex;
4647 textoffset = reverseShift(strsrch, textoffset, UCOL_NULLORDER,
4652 while (textoffset >= 0)
4659 setColEIterOffset(coleiter, textoffset);
4713 found = doPreviousCanonicalMatch(strsrch, textoffset, status);
4720 textoffset = reverseShift(strsrch, textoffset, targetce,
4726 if (checkPreviousCanonicalMatch(strsrch, &textoffset, status)) {
4727 setColEIterOffset(coleiter, textoffset);
4734 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4738 if (usearch_searchBackwards(strsrch, textOffset, &start, &end, status)) {