Searched refs:matchindex (Results 1 – 7 of 7) sorted by relevance
/external/icu4c/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/chromium_org/third_party/icu/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/icu4c/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/icu4c/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/hyphenation/ |
D | hyphen.c | 725 int * matchindex; in hnj_hyphen_hyph_() local 733 matchindex = matchindex_buf; in hnj_hyphen_hyph_() 738 matchindex = hnj_malloc ((word_size + 3) * sizeof(int)); in hnj_hyphen_hyph_() 817 matchindex[isrepl] = -1; in hnj_hyphen_hyph_() 829 matchindex[offset + replindex] = offset + k; in hnj_hyphen_hyph_() 868 if (isrepl && (matchindex[i] >= 0) && matchrepl[matchindex[i]]) { in hnj_hyphen_hyph_() 881 (*rep)[matchindex[i] - 1] = hnj_strdup(matchrepl[matchindex[i]]); in hnj_hyphen_hyph_() 882 (*pos)[matchindex[i] - 1] = matchindex[i] - i; in hnj_hyphen_hyph_() 883 (*cut)[matchindex[i] - 1] = matchlen[i]; in hnj_hyphen_hyph_() 885 j += strlen(matchrepl[matchindex[i]]); in hnj_hyphen_hyph_() [all …]
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
D | srchtest.cpp | 259 int32_t matchindex = search->offset[count]; in assertEqualWithStringSearch() local 273 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithStringSearch() 276 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch() 284 matchindex, matchlength); in assertEqualWithStringSearch() 292 strsrch->getText().compareBetween(matchindex, in assertEqualWithStringSearch() 293 matchindex + matchlength, in assertEqualWithStringSearch() 299 matchindex = search->offset[count]; in assertEqualWithStringSearch() 314 matchindex = search->offset[count]; in assertEqualWithStringSearch() 315 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithStringSearch() 318 if (matchindex != strsrch->getMatchedStart() || in assertEqualWithStringSearch() [all …]
|
/external/chromium_org/third_party/icu/source/test/cintltst/ |
D | usrchtst.c | 342 int32_t matchindex = search.offset[count]; in assertEqualWithUStringSearch() local 357 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithUStringSearch() 360 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch() 368 matchindex, matchlength); in assertEqualWithUStringSearch() 376 usearch_getText(strsrch, &textlength) + matchindex, in assertEqualWithUStringSearch() 381 matchindex = search.offset[count]; in assertEqualWithUStringSearch() 398 matchindex = search.offset[count]; in assertEqualWithUStringSearch() 400 while (U_SUCCESS(status) && matchindex >= 0) { in assertEqualWithUStringSearch() 403 if (matchindex != usearch_getMatchedStart(strsrch) || in assertEqualWithUStringSearch() 418 usearch_getText(strsrch, &textlength) + matchindex, in assertEqualWithUStringSearch() [all …]
|