Lines Matching refs:textlength
296 uint32_t patternlength = pattern->textLength;
308 ucol_setText(coleiter, pattern->text, pattern->textLength, status);
368 uint32_t patternlength = pattern->textLength;
379 ucol_setText(coleiter, pattern->text, pattern->textLength, status);
440 int32_t length = pattern->textLength;
666 * @param textlength length of text string
673 int32_t textlength)
675 if (textoffset < textlength) {
677 if (getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) {
678 while (temp < textlength) {
680 if ((getFCD(text, &temp, textlength) >>
685 return textlength;
704 int32_t textlength = strsrch->search->textLength;
706 textoffset < textlength) {
710 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) {
711 return getNextBaseOffset(text, textoffset, textlength);
772 setColEIterOffset(strsrch->textIter, strsrch->search->textLength);
787 * @param textlength length of text string
794 int32_t textlength)
797 while (result != textlength && ucol_unsafeCP(text[result], collator)) {
952 // strsrch->search->textLength)
958 strsrch->search->textLength) > 0xFF;
969 strsrch->search->textLength) & LAST_BYTE_MASK_) {
1006 int32_t textlength = strsrch->search->textLength;
1008 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) {
1043 if (getFCD(text, &end, textlength) >> SECOND_LAST_BYTE_SHIFT_) {
1056 * @param textlength of the text string
1060 inline UBool isOutOfBounds(int32_t textlength, int32_t offset)
1062 return offset < 0 || offset > textlength;
1087 UnicodeString(FALSE, strsrch->pattern.text, strsrch->pattern.textLength), p2, status);
1166 int32_t textlength = strsrch->search->textLength;
1179 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1180 (*start + 1 < textlength
1450 int32_t textlength = strsrch->search->textLength;
1453 if ((getFCD(text, &tempstart, textlength) & LAST_BYTE_MASK_) == 0) {
1458 int32_t offset = getNextBaseOffset(text, tempstart, textlength);
1523 * @param textlength length of text string
1788 if (getFCD(text, &offset, strsrch->search->textLength) >>
1816 int32_t textlength = strsrch->search->textLength;
1822 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1823 (*start + 1 < textlength
1850 int32_t textlength = strsrch->search->textLength;
1868 if (getFCD(text, start, textlength) & LAST_BYTE_MASK_) {
1940 strsrch->search->textLength);
1969 if (textoffset != strsrch->search->textLength) {
2013 int32_t textlength = strsrch->search->textLength;
2022 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) {
2157 if (!(getFCD(text, &tempend, strsrch->search->textLength) &
2162 end = getNextBaseOffset(text, end, strsrch->search->textLength);
2252 strsrch->search->textLength);
2377 int32_t textlength = strsrch->search->textLength;
2378 if ((getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) == 0) {
2398 int32_t baseoffset = getNextBaseOffset(text, textoffset, textlength);
2453 int32_t textlength = strsrch->search->textLength;
2462 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) {
2506 if (getFCD(text, end, textlength) & LAST_BYTE_MASK_) {
2594 int32_t textlength,
2613 patternlength, text, textlength,
2635 int32_t textlength,
2667 if (textlength == -1) {
2668 textlength = u_strlen(text);
2673 if (textlength <= 0 || patternlength <= 0) {
2707 result->search->textLength = textlength;
2710 result->pattern.textLength = patternlength;
2716 result->search->internalBreakIter = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(result->collator, ULOC_VALID_LOCALE, status), text, textlength, status);
2718 ubrk_setText(breakiter, text, textlength, status);
2727 textlength, status);
2809 if (isOutOfBounds(strsrch->search->textLength, position)) {
2825 if (isOutOfBounds(strsrch->search->textLength, result)) {
2954 strsrch->search->textLength, status);
2972 int32_t textlength,
2976 if (strsrch == NULL || text == NULL || textlength < -1 ||
2977 textlength == 0) {
2981 if (textlength == -1) {
2982 textlength = u_strlen(text);
2985 strsrch->search->textLength = textlength;
2986 ucol_setText(strsrch->textIter, text, textlength, status);
2993 textlength, status);
2995 ubrk_setText(strsrch->search->internalBreakIter, text, textlength, status);
3005 *length = strsrch->search->textLength;
3037 strsrch->search->text, strsrch->search->textLength, status);
3047 strsrch->search->textLength,
3050 collator, strsrch->pattern.text, strsrch->pattern.textLength, status);
3091 strsrch->pattern.textLength = patternlength;
3102 *length = strsrch->pattern.textLength;
3143 usearch_setOffset(strsrch, strsrch->search->textLength, status);
3197 int32_t textlength = search->textLength;
3200 if (offset == textlength
3202 (offset + strsrch->pattern.defaultShiftSize > textlength ||
3204 offset + search->matchedLength >= textlength)))) {
3210 if (offset == textlength ||
3213 offset + search->matchedLength > textlength))) {
3240 U16_FWD_1(search->text, search->matchedIndex, textlength);
3246 if (search->matchedIndex == textlength) {
3284 ucol_setOffset(strsrch->textIter, search->textLength, status);
3303 offset = search->textLength;
3317 // string. the iterator would have been set to offset textLength if
3430 strsrch->search->textLength,
3490 const UChar * patTextLimit = patText + ss->pattern.textLength;
3624 int32_t textLen = strsrch->search->textLength;
3686 int32_t textLen = strsrch->search->textLength;
3815 if (index < search.textLength) {
3817 U16_NEXT(search.text, index, search.textLength, c);
3861 startIdx > strsrch->search->textLength ||
4039 if (strsrch->search->text != NULL && strsrch->search->textLength > maxLimit) {
4161 startIdx > strsrch->search->textLength ||
4183 if (startIdx < strsrch->search->textLength) {
4322 if (strsrch->search->text != NULL && strsrch->search->textLength > maxLimit) {
4428 int32_t textlength = strsrch->search->textLength;
4438 while (textoffset <= textlength)
4542 int32_t textlength = strsrch->search->textLength;
4554 while (textoffset <= textlength)