Lines Matching refs:textlength

673                                            int32_t      textlength)  in getNextBaseOffset()  argument
675 if (textoffset < textlength) { in getNextBaseOffset()
677 if (getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) { in getNextBaseOffset()
678 while (temp < textlength) { in getNextBaseOffset()
680 if ((getFCD(text, &temp, textlength) >> in getNextBaseOffset()
685 return textlength; in getNextBaseOffset()
704 int32_t textlength = strsrch->search->textLength; in getNextUStringSearchBaseOffset() local
706 textoffset < textlength) { in getNextUStringSearchBaseOffset()
710 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) { in getNextUStringSearchBaseOffset()
711 return getNextBaseOffset(text, textoffset, textlength); in getNextUStringSearchBaseOffset()
794 int32_t textlength) in getNextSafeOffset() argument
797 while (result != textlength && ucol_unsafeCP(text[result], collator)) { in getNextSafeOffset()
1006 int32_t textlength = strsrch->search->textLength; in hasAccentsAfterMatch() local
1008 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) { in hasAccentsAfterMatch()
1043 if (getFCD(text, &end, textlength) >> SECOND_LAST_BYTE_SHIFT_) { in hasAccentsAfterMatch()
1060 inline UBool isOutOfBounds(int32_t textlength, int32_t offset) in isOutOfBounds() argument
1062 return offset < 0 || offset > textlength; in isOutOfBounds()
1166 int32_t textlength = strsrch->search->textLength; in checkNextExactContractionMatch() local
1179 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextExactContractionMatch()
1180 (*start + 1 < textlength in checkNextExactContractionMatch()
1450 int32_t textlength = strsrch->search->textLength; in doNextCanonicalPrefixMatch() local
1453 if ((getFCD(text, &tempstart, textlength) & LAST_BYTE_MASK_) == 0) { in doNextCanonicalPrefixMatch()
1458 int32_t offset = getNextBaseOffset(text, tempstart, textlength); in doNextCanonicalPrefixMatch()
1816 int32_t textlength = strsrch->search->textLength; in checkNextCanonicalContractionMatch() local
1822 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextCanonicalContractionMatch()
1823 (*start + 1 < textlength in checkNextCanonicalContractionMatch()
1850 int32_t textlength = strsrch->search->textLength; in checkNextCanonicalContractionMatch() local
1868 if (getFCD(text, start, textlength) & LAST_BYTE_MASK_) { in checkNextCanonicalContractionMatch()
2013 int32_t textlength = strsrch->search->textLength; in checkPreviousExactContractionMatch() local
2022 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) { in checkPreviousExactContractionMatch()
2377 int32_t textlength = strsrch->search->textLength; in doPreviousCanonicalMatch() local
2378 if ((getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) == 0) { in doPreviousCanonicalMatch()
2398 int32_t baseoffset = getNextBaseOffset(text, textoffset, textlength); in doPreviousCanonicalMatch()
2453 int32_t textlength = strsrch->search->textLength; in checkPreviousCanonicalContractionMatch() local
2462 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) { in checkPreviousCanonicalContractionMatch()
2506 if (getFCD(text, end, textlength) & LAST_BYTE_MASK_) { in checkPreviousCanonicalContractionMatch()
2594 int32_t textlength, in usearch_open() argument
2613 patternlength, text, textlength, in usearch_open()
2635 int32_t textlength, in usearch_openFromCollator() argument
2667 if (textlength == -1) { in usearch_openFromCollator()
2668 textlength = u_strlen(text); in usearch_openFromCollator()
2673 if (textlength <= 0 || patternlength <= 0) { in usearch_openFromCollator()
2707 result->search->textLength = textlength; in usearch_openFromCollator()
2716 …CTER, ucol_getLocaleByType(result->collator, ULOC_VALID_LOCALE, status), text, textlength, status); in usearch_openFromCollator()
2718 ubrk_setText(breakiter, text, textlength, status); in usearch_openFromCollator()
2727 textlength, status); in usearch_openFromCollator()
2972 int32_t textlength, in usearch_setText() argument
2976 if (strsrch == NULL || text == NULL || textlength < -1 || in usearch_setText()
2977 textlength == 0) { in usearch_setText()
2981 if (textlength == -1) { in usearch_setText()
2982 textlength = u_strlen(text); in usearch_setText()
2985 strsrch->search->textLength = textlength; in usearch_setText()
2986 ucol_setText(strsrch->textIter, text, textlength, status); in usearch_setText()
2993 textlength, status); in usearch_setText()
2995 ubrk_setText(strsrch->search->internalBreakIter, text, textlength, status); in usearch_setText()
3197 int32_t textlength = search->textLength; in usearch_next() local
3200 if (offset == textlength in usearch_next()
3202 (offset + strsrch->pattern.defaultShiftSize > textlength || in usearch_next()
3204 offset + search->matchedLength >= textlength)))) { in usearch_next()
3210 if (offset == textlength || in usearch_next()
3213 offset + search->matchedLength > textlength))) { in usearch_next()
3240 U16_FWD_1(search->text, search->matchedIndex, textlength); in usearch_next()
3246 if (search->matchedIndex == textlength) { in usearch_next()
4428 int32_t textlength = strsrch->search->textLength; in usearch_handleNextExact() local
4438 while (textoffset <= textlength) in usearch_handleNextExact()
4542 int32_t textlength = strsrch->search->textLength; in usearch_handleNextCanonical() local
4554 while (textoffset <= textlength) in usearch_handleNextCanonical()