Home | History | Annotate | Download | only in i18n

Lines Matching refs:textlength

302     uint32_t  patternlength      = pattern->textLength;
315 pattern->textLength,
377 uint32_t patternlength = pattern->textLength;
389 pattern->textLength,
451 int32_t length = pattern->textLength;
677 * @param textlength length of text string
684 int32_t textlength)
686 if (textoffset < textlength) {
688 if (getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) {
689 while (temp < textlength) {
691 if ((getFCD(text, &temp, textlength) >>
696 return textlength;
715 int32_t textlength = strsrch->search->textLength;
717 textoffset < textlength) {
721 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) {
722 return getNextBaseOffset(text, textoffset, textlength);
783 setColEIterOffset(strsrch->textIter, strsrch->search->textLength);
798 * @param textlength length of text string
805 int32_t textlength)
808 while (result != textlength && ucol_unsafeCP(text[result], collator)) {
963 // strsrch->search->textLength)
969 strsrch->search->textLength) > 0xFF;
980 strsrch->search->textLength) & LAST_BYTE_MASK_) {
1017 int32_t textlength = strsrch->search->textLength;
1019 if (getFCD(text, &temp, textlength) & LAST_BYTE_MASK_) {
1054 if (getFCD(text, &end, textlength) >> SECOND_LAST_BYTE_SHIFT_) {
1067 * @param textlength of the text string
1071 inline UBool isOutOfBounds(int32_t textlength, int32_t offset)
1073 return offset < 0 || offset > textlength;
1098 UnicodeString(FALSE, strsrch->pattern.text, strsrch->pattern.textLength), p2, status);
1177 int32_t textlength = strsrch->search->textLength;
1190 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1191 (*start + 1 < textlength
1461 int32_t textlength = strsrch->search->textLength;
1464 if ((getFCD(text, &tempstart, textlength) & LAST_BYTE_MASK_) == 0) {
1469 int32_t offset = getNextBaseOffset(text, tempstart, textlength);
1534 * @param textlength length of text string
1799 if (getFCD(text, &offset, strsrch->search->textLength) >>
1827 int32_t textlength = strsrch->search->textLength;
1833 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1834 (*start + 1 < textlength
1861 int32_t textlength = strsrch->search->textLength;
1879 if (getFCD(text, start, textlength) & LAST_BYTE_MASK_) {
1951 strsrch->search->textLength);
1980 if (textoffset != strsrch->search->textLength) {
2024 int32_t textlength = strsrch->search->textLength;
2033 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) {
2168 if (!(getFCD(text, &tempend, strsrch->search->textLength) &
2173 end = getNextBaseOffset(text, end, strsrch->search->textLength);
2263 strsrch->search->textLength);
2388 int32_t textlength = strsrch->search->textLength;
2389 if ((getFCD(text, &temp, textlength) >> SECOND_LAST_BYTE_SHIFT_) == 0) {
2409 int32_t baseoffset = getNextBaseOffset(text, textoffset, textlength);
2464 int32_t textlength = strsrch->search->textLength;
2473 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) {
2517 if (getFCD(text, end, textlength) & LAST_BYTE_MASK_) {
2605 int32_t textlength,
2624 patternlength, text, textlength,
2646 int32_t textlength,
2678 if (textlength == -1) {
2679 textlength = u_strlen(text);
2684 if (textlength <= 0 || patternlength <= 0) {
2718 result->search->textLength = textlength;
2721 result->pattern.textLength = patternlength;
2727 result->search->internalBreakIter = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(result->collator, ULOC_VALID_LOCALE, status), text, textlength, status);
2729 ubrk_setText(breakiter, text, textlength, status);
2738 textlength, status);
2800 if (isOutOfBounds(strsrch->search->textLength, position)) {
2816 if (isOutOfBounds(strsrch->search->textLength, result)) {
2945 strsrch->search->textLength, status);
2963 int32_t textlength,
2967 if (strsrch == NULL || text == NULL || textlength < -1 ||
2968 textlength == 0) {
2972 if (textlength == -1) {
2973 textlength = u_strlen(text);
2976 strsrch->search->textLength = textlength;
2977 ucol_setText(strsrch->textIter, text, textlength, status);
2984 textlength, status);
2986 ubrk_setText(strsrch->search->internalBreakIter, text, textlength, status);
2996 *length = strsrch->search->textLength;
3023 strsrch->search->text, strsrch->search->textLength, status);
3037 strsrch->search->textLength,
3081 strsrch->pattern.textLength = patternlength;
3092 *length = strsrch->pattern.textLength;
3133 usearch_setOffset(strsrch, strsrch->search->textLength, status);
3187 int32_t textlength = search->textLength;
3190 if (offset == textlength
3192 (offset + strsrch->pattern.defaultShiftSize > textlength ||
3194 offset + search->matchedLength >= textlength)))) {
3200 if (offset == textlength ||
3203 offset + search->matchedLength > textlength))) {
3230 UTF_FWD_1(search->text, search->matchedIndex, textlength);
3236 if (search->matchedIndex == textlength) {
3274 ucol_setOffset(strsrch->textIter, search->textLength, status);
3293 offset = search->textLength;
3307 // string. the iterator would have been set to offset textLength if
3430 strsrch->search->textLength,
3602 int32_t textLen = strsrch->search->textLength;
3664 int32_t textLen = strsrch->search->textLength;
3817 startIdx > strsrch->search->textLength ||
4067 startIdx > strsrch->search->textLength ||
4089 if (startIdx < strsrch->search->textLength) {
4287 int32_t textlength = strsrch->search->textLength;
4297 while (textoffset <= textlength)
4401 int32_t textlength = strsrch->search->textLength;
4413 while (textoffset <= textlength)