• Home
  • Raw
  • Download

Lines Matching refs:textlength

675                                            int32_t      textlength)  in getNextBaseOffset()  argument
677 if (textoffset < textlength) { in getNextBaseOffset()
679 if (getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) { in getNextBaseOffset()
680 while (temp < textlength) { in getNextBaseOffset()
682 if ((getFCD(text, &temp, textlength) >> in getNextBaseOffset()
687 return textlength; in getNextBaseOffset()
706 int32_t textlength = strsrch->search->textLength; in getNextUStringSearchBaseOffset() local
708 textoffset < textlength) { in getNextUStringSearchBaseOffset()
712 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) { in getNextUStringSearchBaseOffset()
713 return getNextBaseOffset(text, textoffset, textlength); in getNextUStringSearchBaseOffset()
796 int32_t textlength) in getNextSafeOffset() argument
799 while (result != textlength && ucol_unsafeCP(text[result], collator)) { in getNextSafeOffset()
1008 int32_t textlength = strsrch->search->textLength; in hasAccentsAfterMatch() local
1010 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) { in hasAccentsAfterMatch()
1045 if (getFCD(text, &end, textlength) >> SECOND_LAST_BYTE_SHIFT_) { in hasAccentsAfterMatch()
1062 inline UBool isOutOfBounds(int32_t textlength, int32_t offset) in isOutOfBounds() argument
1064 return offset < 0 || offset > textlength; in isOutOfBounds()
1168 int32_t textlength = strsrch->search->textLength; in checkNextExactContractionMatch() local
1181 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextExactContractionMatch()
1182 (*start + 1 < textlength in checkNextExactContractionMatch()
1452 int32_t textlength = strsrch->search->textLength; in doNextCanonicalPrefixMatch() local
1455 if ((getFCD(text, &tempstart, textlength) & LAST_BYTE_MASK_) == 0) { in doNextCanonicalPrefixMatch()
1460 int32_t offset = getNextBaseOffset(text, tempstart, textlength); in doNextCanonicalPrefixMatch()
1818 int32_t textlength = strsrch->search->textLength; in checkNextCanonicalContractionMatch() local
1824 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextCanonicalContractionMatch()
1825 (*start + 1 < textlength in checkNextCanonicalContractionMatch()
1852 int32_t textlength = strsrch->search->textLength; in checkNextCanonicalContractionMatch() local
1870 if (getFCD(text, start, textlength) & LAST_BYTE_MASK_) { in checkNextCanonicalContractionMatch()
2015 int32_t textlength = strsrch->search->textLength; in checkPreviousExactContractionMatch() local
2024 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) { in checkPreviousExactContractionMatch()
2379 int32_t textlength = strsrch->search->textLength; in doPreviousCanonicalMatch() local
2380 if ((getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) == 0) { in doPreviousCanonicalMatch()
2400 int32_t baseoffset = getNextBaseOffset(text, textoffset, textlength); in doPreviousCanonicalMatch()
2455 int32_t textlength = strsrch->search->textLength; in checkPreviousCanonicalContractionMatch() local
2464 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) { in checkPreviousCanonicalContractionMatch()
2508 if (getFCD(text, end, textlength) & LAST_BYTE_MASK_) { in checkPreviousCanonicalContractionMatch()
2596 int32_t textlength, in usearch_open() argument
2615 patternlength, text, textlength, in usearch_open()
2637 int32_t textlength, in usearch_openFromCollator() argument
2669 if (textlength == -1) { in usearch_openFromCollator()
2670 textlength = u_strlen(text); in usearch_openFromCollator()
2675 if (textlength <= 0 || patternlength <= 0) { in usearch_openFromCollator()
2709 result->search->textLength = textlength; in usearch_openFromCollator()
2718 …CTER, ucol_getLocaleByType(result->collator, ULOC_VALID_LOCALE, status), text, textlength, status); in usearch_openFromCollator()
2720 ubrk_setText(breakiter, text, textlength, status); in usearch_openFromCollator()
2729 textlength, status); in usearch_openFromCollator()
2974 int32_t textlength, in usearch_setText() argument
2978 if (strsrch == NULL || text == NULL || textlength < -1 || in usearch_setText()
2979 textlength == 0) { in usearch_setText()
2983 if (textlength == -1) { in usearch_setText()
2984 textlength = u_strlen(text); in usearch_setText()
2987 strsrch->search->textLength = textlength; in usearch_setText()
2988 ucol_setText(strsrch->textIter, text, textlength, status); in usearch_setText()
2995 textlength, status); in usearch_setText()
2997 ubrk_setText(strsrch->search->internalBreakIter, text, textlength, status); in usearch_setText()
3199 int32_t textlength = search->textLength; in usearch_next() local
3202 if (offset == textlength in usearch_next()
3204 (offset + strsrch->pattern.defaultShiftSize > textlength || in usearch_next()
3206 offset + search->matchedLength >= textlength)))) { in usearch_next()
3212 if (offset == textlength || in usearch_next()
3215 offset + search->matchedLength > textlength))) { in usearch_next()
3242 U16_FWD_1(search->text, search->matchedIndex, textlength); in usearch_next()
3248 if (search->matchedIndex == textlength) { in usearch_next()
4430 int32_t textlength = strsrch->search->textLength; in usearch_handleNextExact() local
4440 while (textoffset <= textlength) in usearch_handleNextExact()
4544 int32_t textlength = strsrch->search->textLength; in usearch_handleNextCanonical() local
4556 while (textoffset <= textlength) in usearch_handleNextCanonical()