Need to reset state to 0 when backing up.

X-SVN-Rev: 1357
This commit is contained in:
Eric Mader 2000-05-12 01:30:35 +00:00
parent 3ce17a1037
commit 8afebd5a10
2 changed files with 6 additions and 4 deletions

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/DictionaryBasedBreakIterator.java,v $
* $Date: 2000/05/09 22:49:12 $
* $Revision: 1.4 $
* $Date: 2000/05/12 01:30:35 $
* $Revision: 1.5 $
*
*****************************************************************************************
*/
@ -462,6 +462,7 @@ switch (categoryFlags.length % 4) {
// re-sync "c" for the next go-round, and drop out of the loop if
// we've made it off the end of the range
c = text.current();
state = 0;
if (text.getIndex() >= endPos) {
break;
}

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/text/Attic/DictionaryBasedBreakIterator.java,v $
* $Date: 2000/05/09 22:49:12 $
* $Revision: 1.4 $
* $Date: 2000/05/12 01:30:35 $
* $Revision: 1.5 $
*
*****************************************************************************************
*/
@ -462,6 +462,7 @@ switch (categoryFlags.length % 4) {
// re-sync "c" for the next go-round, and drop out of the loop if
// we've made it off the end of the range
c = text.current();
state = 0;
if (text.getIndex() >= endPos) {
break;
}