Home | History | Annotate | Download | only in i18n

Lines Matching refs:textOffset

666 * @param textoffset current offset
673 int32_t textoffset,
676 if (textoffset < textlength) {
677 int32_t temp = textoffset;
689 return textoffset;
696 * @param textoffset current offset, one offset away from the last character
703 int32_t textoffset)
707 textoffset < textlength) {
708 int32_t temp = textoffset;
712 return getNextBaseOffset(text, textoffset, textlength);
715 return textoffset;
724 * @param textoffset start text position to do search
732 int32_t textoffset,
745 textoffset += shift;
748 textoffset += pattern->defaultShiftSize;
751 textoffset = getNextUStringSearchBaseOffset(strsrch, textoffset);
758 return textoffset;
787 * @param textoffset offset in string
794 int32_t textoffset,
797 int32_t result = textoffset; // first contraction character
1276 * @param textoffset offset in the collation element text. the returned value
1284 int32_t *textoffset, UErrorCode *status)
1289 if (!checkNextExactContractionMatch(strsrch, &start, textoffset, status)) {
1294 if (!isBreakUnit(strsrch, start, *textoffset) ||
1295 checkRepeatedMatch(strsrch, start, *textoffset) ||
1296 hasAccentsBeforeMatch(strsrch, start, *textoffset) ||
1297 !checkIdentical(strsrch, start, *textoffset) ||
1298 hasAccentsAfterMatch(strsrch, start, *textoffset)) {
1300 (*textoffset) ++;
1301 *textoffset = getNextUStringSearchBaseOffset(strsrch, *textoffset);
1307 checkBreakBoundary(strsrch, &start, textoffset);
1312 strsrch->search->matchedLength = *textoffset - start;
1320 * @param textoffset one offset after the current character
1326 int32_t textoffset)
1328 if (textoffset > 0) {
1330 int32_t result = textoffset;
1331 UTF_BACK_1(text, 0, textoffset);
1332 int32_t temp = textoffset;
1336 return textoffset;
1340 if (textoffset == 0) {
1345 return textoffset;
1552 * Gets the offset to the safe point in text before textoffset.
1557 * @param textoffset offset in string
1564 int32_t textoffset)
1566 int32_t result = textoffset; // first contraction character
1604 * @param textoffset of the start of the rearranged accent
1611 int32_t textoffset,
1621 int32_t safeoffset = textoffset;
1623 if (textoffset != 0 && ucol_unsafeCP(strsrch->canonicalSuffixAccents[0],
1625 safeoffset = getPreviousSafeOffset(collator, text, textoffset);
1626 safelength = textoffset - safeoffset;
1686 failedoffset, textoffset, status);
1708 result = textoffset;
1737 * @param textoffset end offset in the collation element text that ends with
1744 int32_t textoffset,
1748 int32_t temp = textoffset;
1750 if ((getFCD(text, &temp, textoffset) & LAST_BYTE_MASK_) == 0) {
1754 offset = doNextCanonicalPrefixMatch(strsrch, offset, textoffset,
1770 int32_t baseoffset = getPreviousBaseOffset(text, textoffset);
1772 unorm_normalize(text + baseoffset, textoffset - baseoffset, UNORM_NFD,
1812 * @param textoffset current offset, current character
1818 int32_t textoffset)
1820 if (strsrch->pattern.hasPrefixAccents && textoffset > 0) {
1822 int32_t offset = textoffset;
1825 return getPreviousBaseOffset(text, textoffset);
1828 return textoffset;
1936 * @param textoffset offset in the collation element text. the returned value
1944 int32_t *textoffset,
1957 strsrch->search->matchedLength = *textoffset -
1963 if (!checkNextCanonicalContractionMatch(strsrch, &start, textoffset,
1970 if (checkRepeatedMatch(strsrch, start, *textoffset) ||
1971 !isBreakUnit(strsrch, start, *textoffset) ||
1972 !checkIdentical(strsrch, start, *textoffset)) {
1973 (*textoffset) ++;
1974 *textoffset = getNextBaseOffset(strsrch->search->text, *textoffset,
1980 strsrch->search->matchedLength = *textoffset - start;
1991 * @param textoffset start text position to do search
1999 int32_t textoffset,
2004 if (textoffset != strsrch->search->textLength) {
2005 textoffset --;
2008 textoffset -= strsrch->pattern.defaultShiftSize;
2021 textoffset -= shift;
2024 textoffset -= strsrch->pattern.defaultShiftSize;
2027 textoffset = getPreviousUStringSearchBaseOffset(strsrch, textoffset);
2028 return textoffset;
2122 * @param textoffset offset in the collation element text. the returned value
2130 int32_t *textoffset,
2135 if (!checkPreviousExactContractionMatch(strsrch, textoffset, &end, status)
2142 if (checkRepeatedMatch(strsrch, *textoffset, end) ||
2143 !isBreakUnit(strsrch, *textoffset, end) ||
2144 hasAccentsBeforeMatch(strsrch, *textoffset, end) ||
2145 !checkIdentical(strsrch, *textoffset, end) ||
2146 hasAccentsAfterMatch(strsrch, *textoffset, end)) {
2147 (*textoffset) --;
2148 *textoffset = getPreviousBaseOffset(strsrch->search->text,
2149 *textoffset);
2155 checkBreakBoundary(strsrch, textoffset, &end);
2158 strsrch->search->matchedIndex = *textoffset;
2159 strsrch->search->matchedLength = end - *textoffset;
2264 * @param textoffset of the ends of the rearranged accent
2271 int32_t textoffset,
2280 int32_t safeoffset = textoffset;
2282 if (textoffset &&
2286 safeoffset = getNextSafeOffset(collator, text, textoffset,
2288 safelength = safeoffset - textoffset;
2292 text + textoffset, safelength,
2350 textoffset, failedoffset, status);
2372 result = textoffset;
2375 result = textoffset + (safeoffset - result);
2400 * @param textoffset start offset in the collation element text that starts
2407 int32_t textoffset,
2411 int32_t temp = textoffset;
2417 offset = doPreviousCanonicalSuffixMatch(strsrch, textoffset,
2433 int32_t baseoffset = getNextBaseOffset(text, textoffset, textlength);
2435 unorm_normalize(text + textoffset, baseoffset - textoffset, UNORM_NFD,
2574 * @param textoffset offset in the collation element text. the returned value
2582 int32_t *textoffset,
2592 strsrch->search->matchedIndex = *textoffset;
2596 - *textoffset;
2601 if (!checkPreviousCanonicalContractionMatch(strsrch, textoffset, &end,
2609 if (checkRepeatedMatch(strsrch, *textoffset, end) ||
2610 !isBreakUnit(strsrch, *textoffset, end) ||
2611 !checkIdentical(strsrch, *textoffset, end)) {
2612 (*textoffset) --;
2613 *textoffset = getPreviousBaseOffset(strsrch->search->text,
2614 *textoffset);
2618 strsrch->search->matchedIndex = *textoffset;
2619 strsrch->search->matchedLength = end - *textoffset;
4160 int32_t textoffset = ucol_getOffset(coleiter);
4165 textoffset = shiftForward(strsrch, textoffset, UCOL_NULLORDER,
4167 while (textoffset <= textlength)
4174 setColEIterOffset(coleiter, textoffset);
4229 textoffset = shiftForward(strsrch, textoffset, lastce,
4236 if (checkNextExactMatch(strsrch, &textoffset, status)) {
4245 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4249 if (usearch_search(strsrch, textOffset, &start, &end, status)) {
4272 int32_t textoffset = ucol_getOffset(coleiter);
4276 textoffset = shiftForward(strsrch, textoffset, UCOL_NULLORDER,
4281 while (textoffset <= textlength)
4288 setColEIterOffset(coleiter, textoffset);
4336 found = doNextCanonicalMatch(strsrch, textoffset, status);
4343 textoffset = shiftForward(strsrch, textoffset, lastce,
4350 if (checkNextCanonicalMatch(strsrch, &textoffset, status)) {
4358 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4362 if (usearch_search(strsrch, textOffset, &start, &end, status)) {
4384 int32_t textoffset = ucol_getOffset(coleiter);
4390 textoffset = strsrch->search->matchedIndex;
4393 textoffset = reverseShift(strsrch, textoffset, UCOL_NULLORDER,
4396 while (textoffset >= 0)
4404 setColEIterOffset(coleiter, textoffset);
4459 textoffset = reverseShift(strsrch, textoffset, targetce,
4465 if (checkPreviousExactMatch(strsrch, &textoffset, status)) {
4466 setColEIterOffset(coleiter, textoffset);
4473 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4477 if (usearch_searchBackwards(strsrch, textOffset, &start, &end, status)) {
4500 int32_t textoffset = ucol_getOffset(coleiter);
4508 textoffset = strsrch->search->matchedIndex;
4511 textoffset = reverseShift(strsrch, textoffset, UCOL_NULLORDER,
4516 while (textoffset >= 0)
4523 setColEIterOffset(coleiter, textoffset);
4575 found = doPreviousCanonicalMatch(strsrch, textoffset, status);
4582 textoffset = reverseShift(strsrch, textoffset, targetce,
4588 if (checkPreviousCanonicalMatch(strsrch, &textoffset, status)) {
4589 setColEIterOffset(coleiter, textoffset);
4596 int32_t textOffset = ucol_getOffset(strsrch->textIter);
4600 if (usearch_searchBackwards(strsrch, textOffset, &start, &end, status)) {