From 8afebd5a10db2c07bf5af4bfa0641d606af29f46 Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Fri, 12 May 2000 01:30:35 +0000 Subject: [PATCH] Need to reset state to 0 when backing up. X-SVN-Rev: 1357 --- icu4j/src/com/ibm/icu/text/DictionaryBasedBreakIterator.java | 5 +++-- icu4j/src/com/ibm/text/DictionaryBasedBreakIterator.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/icu4j/src/com/ibm/icu/text/DictionaryBasedBreakIterator.java b/icu4j/src/com/ibm/icu/text/DictionaryBasedBreakIterator.java index d3fd8fee0a..072e8cba74 100755 --- a/icu4j/src/com/ibm/icu/text/DictionaryBasedBreakIterator.java +++ b/icu4j/src/com/ibm/icu/text/DictionaryBasedBreakIterator.java @@ -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; } diff --git a/icu4j/src/com/ibm/text/DictionaryBasedBreakIterator.java b/icu4j/src/com/ibm/text/DictionaryBasedBreakIterator.java index 6b7aeba429..8cf4005ee7 100755 --- a/icu4j/src/com/ibm/text/DictionaryBasedBreakIterator.java +++ b/icu4j/src/com/ibm/text/DictionaryBasedBreakIterator.java @@ -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; }