ICU-6319 Correct while statement to make results consistent with ICU4C.

X-SVN-Rev: 24147
This commit is contained in:
Michael Ow 2008-06-11 03:27:31 +00:00
parent 2d45d7be53
commit 0675da9bcd

View File

@ -259,7 +259,7 @@ class ThaiBreakIterator extends DictionaryBasedBreakIterator {
}
} while (words[(wordsFound+1)%THAI_LOOKAHEAD].backUp(fIter));
}
} while (words[(wordsFound+1)%THAI_LOOKAHEAD].backUp(fIter) && !foundBest);
} while (words[wordsFound%THAI_LOOKAHEAD].backUp(fIter) && !foundBest);
}
/* foundBest: */wordLength = words[wordsFound%THAI_LOOKAHEAD].acceptMarked(fIter);
wordsFound += 1;