From c157505c2eb20cfec484b8edbf5b58c392ce368c Mon Sep 17 00:00:00 2001 From: Mark Davis Date: Tue, 19 Mar 2002 00:11:52 +0000 Subject: [PATCH] ICU-1749 add test for range. Set codepointEnd in next() X-SVN-Rev: 8098 --- icu4j/src/com/ibm/icu/text/UnicodeSetIterator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icu4j/src/com/ibm/icu/text/UnicodeSetIterator.java b/icu4j/src/com/ibm/icu/text/UnicodeSetIterator.java index 72a198c465..6aec872946 100755 --- a/icu4j/src/com/ibm/icu/text/UnicodeSetIterator.java +++ b/icu4j/src/com/ibm/icu/text/UnicodeSetIterator.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/UnicodeSetIterator.java,v $ - * $Date: 2002/03/14 23:14:23 $ - * $Revision: 1.6 $ + * $Date: 2002/03/19 00:11:52 $ + * $Revision: 1.7 $ * ***************************************************************************************** */ @@ -59,7 +59,7 @@ public final class UnicodeSetIterator { */ public boolean next() { if (nextElement <= endElement) { - codepoint = nextElement++; + codepoint = codepointEnd = nextElement++; return true; } if (range < endRange) { @@ -69,7 +69,7 @@ public final class UnicodeSetIterator { if (abbreviated && (endElement > startElement + 50)) { endElement = startElement + 50; } - codepoint = nextElement++; + codepoint = codepointEnd = nextElement++; return true; }