Searched refs:matchindex (Results 1 – 7 of 7) sorted by relevance
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | SearchIterator.java | 400 int matchindex = search_.matchedIndex_; in next() local 405 if (index == endIdx || matchindex == endIdx || in next() 406 (matchindex != DONE && in next() 407 matchindex + matchlength >= endIdx)) { in next() 421 return matchindex; in next() 461 int matchindex = search_.matchedIndex_; in previous() local 469 if (matchindex != DONE) { in previous() 470 return matchindex; in previous() 474 if (index == startIdx || matchindex == startIdx) { in previous() 481 if (matchindex != DONE) { in previous() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | SearchIterator.java | 385 int matchindex = search_.matchedIndex_; in next() local 390 if (index == endIdx || matchindex == endIdx || in next() 391 (matchindex != DONE && in next() 392 matchindex + matchlength >= endIdx)) { in next() 406 return matchindex; in next() 445 int matchindex = search_.matchedIndex_; in previous() local 453 if (matchindex != DONE) { in previous() 454 return matchindex; in previous() 458 if (index == startIdx || matchindex == startIdx) { in previous() 465 if (matchindex != DONE) { in previous() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | search.cpp | 240 int32_t matchindex = m_search_->matchedIndex; in next() local 245 if (offset == textlength || matchindex == textlength || in next() 246 (matchindex != USEARCH_DONE && in next() 247 matchindex + matchlength >= textlength)) { in next() 263 return matchindex; in next() 295 int32_t matchindex = m_search_->matchedIndex; in previous() local 303 if (matchindex != USEARCH_DONE) { in previous() 304 return matchindex; in previous() 308 if (offset == 0 || matchindex == 0) { in previous() 315 if (matchindex != USEARCH_DONE) { in previous() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | srchtest.cpp | 259 int32_t matchindex = search->offset[count]; in assertEqualWithStringSearch() local 275 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithStringSearch() 278 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch() 286 matchindex, matchlength); in assertEqualWithStringSearch() 294 strsrch->getText().compareBetween(matchindex, in assertEqualWithStringSearch() 295 matchindex + matchlength, in assertEqualWithStringSearch() 301 matchindex = search->offset[count]; in assertEqualWithStringSearch() 317 matchindex = search->offset[count]; in assertEqualWithStringSearch() 318 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithStringSearch() 321 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | usrchtst.c | 341 int32_t matchindex = search.offset[count]; in assertEqualWithUStringSearch() local 359 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithUStringSearch() 362 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch() 370 matchindex, matchlength); in assertEqualWithUStringSearch() 378 usearch_getText(strsrch, &textlength) + matchindex, in assertEqualWithUStringSearch() 383 matchindex = search.offset[count]; in assertEqualWithUStringSearch() 399 matchindex = search.offset[count]; in assertEqualWithUStringSearch() 401 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithUStringSearch() 404 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch() 412 matchindex, matchlength); in assertEqualWithUStringSearch() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/search/ |
D | SearchTest.java | 672 int matchindex = search.offset[count]; in assertEqualWithStringSearch() local 680 while (matchindex >= 0) { in assertEqualWithStringSearch() 684 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch() 688 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch() 696 … targetText.substring(matchindex, matchindex + matchlength).compareTo(matchtext) != 0) { in assertEqualWithStringSearch() 700 matchindex = search.offset[count]; in assertEqualWithStringSearch() 712 matchindex = search.offset[count]; in assertEqualWithStringSearch() 713 while (matchindex >= 0) { in assertEqualWithStringSearch() 716 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch() 720 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/ |
D | SearchTest.java | 668 int matchindex = search.offset[count]; in assertEqualWithStringSearch() local 676 while (matchindex >= 0) { in assertEqualWithStringSearch() 680 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch() 684 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch() 692 … targetText.substring(matchindex, matchindex + matchlength).compareTo(matchtext) != 0) { in assertEqualWithStringSearch() 696 matchindex = search.offset[count]; in assertEqualWithStringSearch() 708 matchindex = search.offset[count]; in assertEqualWithStringSearch() 709 while (matchindex >= 0) { in assertEqualWithStringSearch() 712 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch() 716 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch() [all …]
|