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()
922 int32_t textlength, in usearch_setText() argument
926 if (strsrch == nullptr || text == nullptr || textlength < -1 || in usearch_setText()
927 textlength == 0) { in usearch_setText()
931 if (textlength == -1) { in usearch_setText()
932 textlength = u_strlen(text); in usearch_setText()
935 strsrch->search->textLength = textlength; in usearch_setText()
936 ucol_setText(strsrch->textIter, text, textlength, status); in usearch_setText()
943 textlength, status); in usearch_setText()
946 ubrk_setText(strsrch->search->internalBreakIter, text, textlength, status); in usearch_setText()
1150 int32_t textlength = search->textLength; in usearch_next() local
1152 if (offset == textlength || in usearch_next()
1155 offset + search->matchedLength > textlength))) { in usearch_next()
1181 U16_FWD_1(search->text, search->matchedIndex, textlength); in usearch_next()
1187 if (search->matchedIndex == textlength) { in usearch_next()