Home
last modified time | relevance | path

Searched refs:matchindex (Results 1 – 7 of 7) sorted by relevance

/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DSearchIterator.java402 int matchindex = search_.matchedIndex_; in next() local
407 if (index == endIdx || matchindex == endIdx || in next()
408 (matchindex != DONE && in next()
409 matchindex + matchlength >= endIdx)) { in next()
423 return matchindex; in next()
463 int matchindex = search_.matchedIndex_; in previous() local
471 if (matchindex != DONE) { in previous()
472 return matchindex; in previous()
476 if (index == startIdx || matchindex == startIdx) { in previous()
483 if (matchindex != DONE) { in previous()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSearchIterator.java387 int matchindex = search_.matchedIndex_; in next() local
392 if (index == endIdx || matchindex == endIdx || in next()
393 (matchindex != DONE && in next()
394 matchindex + matchlength >= endIdx)) { in next()
408 return matchindex; in next()
447 int matchindex = search_.matchedIndex_; in previous() local
455 if (matchindex != DONE) { in previous()
456 return matchindex; in previous()
460 if (index == startIdx || matchindex == startIdx) { in previous()
467 if (matchindex != DONE) { in previous()
[all …]
/external/icu/icu4c/source/i18n/
Dsearch.cpp242 int32_t matchindex = m_search_->matchedIndex; in next() local
247 if (offset == textlength || matchindex == textlength || in next()
248 (matchindex != USEARCH_DONE && in next()
249 matchindex + matchlength >= textlength)) { in next()
265 return matchindex; in next()
297 int32_t matchindex = m_search_->matchedIndex; in previous() local
305 if (matchindex != USEARCH_DONE) { in previous()
306 return matchindex; in previous()
310 if (offset == 0 || matchindex == 0) { in previous()
317 if (matchindex != USEARCH_DONE) { in previous()
[all …]
/external/icu/icu4c/source/test/intltest/
Dsrchtest.cpp262 int32_t matchindex = search->offset[count]; in assertEqualWithStringSearch() local
278 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithStringSearch()
281 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch()
289 matchindex, matchlength); in assertEqualWithStringSearch()
297 strsrch->getText().compareBetween(matchindex, in assertEqualWithStringSearch()
298 matchindex + matchlength, in assertEqualWithStringSearch()
304 matchindex = search->offset[count]; in assertEqualWithStringSearch()
320 matchindex = search->offset[count]; in assertEqualWithStringSearch()
321 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithStringSearch()
324 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dusrchtst.c343 int32_t matchindex = search.offset[count]; in assertEqualWithUStringSearch() local
361 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithUStringSearch()
364 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch()
372 matchindex, matchlength); in assertEqualWithUStringSearch()
380 usearch_getText(strsrch, &textlength) + matchindex, in assertEqualWithUStringSearch()
385 matchindex = search.offset[count]; in assertEqualWithUStringSearch()
401 matchindex = search.offset[count]; in assertEqualWithUStringSearch()
403 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithUStringSearch()
406 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch()
414 matchindex, matchlength); in assertEqualWithUStringSearch()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/
DSearchTest.java674 int matchindex = search.offset[count]; in assertEqualWithStringSearch() local
682 while (matchindex >= 0) { in assertEqualWithStringSearch()
686 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch()
690 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch()
698 … targetText.substring(matchindex, matchindex + matchlength).compareTo(matchtext) != 0) { in assertEqualWithStringSearch()
702 matchindex = search.offset[count]; in assertEqualWithStringSearch()
714 matchindex = search.offset[count]; in assertEqualWithStringSearch()
715 while (matchindex >= 0) { in assertEqualWithStringSearch()
718 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch()
722 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/search/
DSearchTest.java677 int matchindex = search.offset[count]; in assertEqualWithStringSearch() local
685 while (matchindex >= 0) { in assertEqualWithStringSearch()
689 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch()
693 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch()
701 … targetText.substring(matchindex, matchindex + matchlength).compareTo(matchtext) != 0) { in assertEqualWithStringSearch()
705 matchindex = search.offset[count]; in assertEqualWithStringSearch()
717 matchindex = search.offset[count]; in assertEqualWithStringSearch()
718 while (matchindex >= 0) { in assertEqualWithStringSearch()
721 if (matchindex != strsrch.getMatchStart() || in assertEqualWithStringSearch()
725 …errln("Expected offset,len " + matchindex + ", " + matchlength + "; got " + strsrch.getMatchStart(… in assertEqualWithStringSearch()
[all …]