Lines Matching refs:textlength
508 inline UBool isOutOfBounds(int32_t textlength, int32_t offset) in isOutOfBounds() argument
510 return offset < 0 || offset > textlength; in isOutOfBounds()
544 int32_t textlength, in usearch_open() argument
563 patternlength, text, textlength, in usearch_open()
585 int32_t textlength, in usearch_openFromCollator() argument
617 if (textlength == -1) { in usearch_openFromCollator()
618 textlength = u_strlen(text); in usearch_openFromCollator()
623 if (textlength <= 0 || patternlength <= 0) { in usearch_openFromCollator()
657 result->search->textLength = textlength; in usearch_openFromCollator()
668 ubrk_setText(breakiter, text, textlength, status); in usearch_openFromCollator()
677 textlength, status); in usearch_openFromCollator()
920 int32_t textlength, in usearch_setText() argument
924 if (strsrch == nullptr || text == nullptr || textlength < -1 || in usearch_setText()
925 textlength == 0) { in usearch_setText()
929 if (textlength == -1) { in usearch_setText()
930 textlength = u_strlen(text); in usearch_setText()
933 strsrch->search->textLength = textlength; in usearch_setText()
934 ucol_setText(strsrch->textIter, text, textlength, status); in usearch_setText()
941 textlength, status); in usearch_setText()
944 ubrk_setText(strsrch->search->internalBreakIter, text, textlength, status); in usearch_setText()
1148 int32_t textlength = search->textLength; in usearch_next() local
1150 if (offset == textlength || in usearch_next()
1153 offset + search->matchedLength > textlength))) { in usearch_next()
1179 U16_FWD_1(search->text, search->matchedIndex, textlength); in usearch_next()
1185 if (search->matchedIndex == textlength) { in usearch_next()