mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-3077 remove commented code
X-SVN-Rev: 12600
This commit is contained in:
parent
0d1f9331df
commit
9ddbcf3ebe
1 changed files with 2 additions and 15 deletions
|
@ -2927,19 +2927,6 @@ U_CAPI int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch,
|
|||
USearch *search = strsrch->search;
|
||||
search->reset = FALSE;
|
||||
int32_t textlength = search->textLength;
|
||||
int32_t matchedindex = search->matchedIndex;
|
||||
/*
|
||||
if (search->isForwardSearching) {
|
||||
if (offset == textlength || matchedindex == textlength ||
|
||||
(!search->isOverlap &&
|
||||
(offset + strsrch->pattern.defaultShiftSize > textlength ||
|
||||
(matchedindex != USEARCH_DONE &&
|
||||
matchedindex + search->matchedLength >= textlength)))) {
|
||||
// not enough characters to match
|
||||
setMatchNotFound(strsrch);
|
||||
return USEARCH_DONE;
|
||||
}
|
||||
}*/
|
||||
if (search->isForwardSearching) {
|
||||
if (offset == textlength
|
||||
|| (!search->isOverlap &&
|
||||
|
@ -2958,10 +2945,10 @@ U_CAPI int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch,
|
|||
// string. the iterator would have been set to offset 0 if a
|
||||
// match is not found.
|
||||
search->isForwardSearching = TRUE;
|
||||
if (matchedindex != USEARCH_DONE) {
|
||||
if (search->matchedIndex != USEARCH_DONE) {
|
||||
// there's no need to set the collation element iterator
|
||||
// the next call to next will set the offset.
|
||||
return matchedindex;
|
||||
return search->matchedIndex;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue