From c1ef5d6f4b6e510f1a0fe3422336eb913d9fd99d Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Tue, 30 Mar 2004 00:55:27 +0000 Subject: [PATCH] ICU-3668 make hasNext() const X-SVN-Rev: 14802 --- icu4c/source/common/uchriter.cpp | 2 +- icu4c/source/common/unicode/chariter.h | 2 +- icu4c/source/common/unicode/uchriter.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4c/source/common/uchriter.cpp b/icu4c/source/common/uchriter.cpp index fa831af4fb..78982c3587 100644 --- a/icu4c/source/common/uchriter.cpp +++ b/icu4c/source/common/uchriter.cpp @@ -166,7 +166,7 @@ UCharCharacterIterator::nextPostInc() { } UBool -UCharCharacterIterator::hasNext() { +UCharCharacterIterator::hasNext() const { return (UBool)(pos < end ? TRUE : FALSE); } diff --git a/icu4c/source/common/unicode/chariter.h b/icu4c/source/common/unicode/chariter.h index 6ce09fca48..8133a4cabf 100644 --- a/icu4c/source/common/unicode/chariter.h +++ b/icu4c/source/common/unicode/chariter.h @@ -164,7 +164,7 @@ public: * at or after the current position in the iteration range. * @stable ICU 2.0 */ - virtual UBool hasNext() = 0; + virtual UBool hasNext() const = 0; protected: /** Default constructor to be overridden in the implementing class. @stable ICU 2.0*/ diff --git a/icu4c/source/common/unicode/uchriter.h b/icu4c/source/common/unicode/uchriter.h index 4c4caa3e57..786c66823b 100644 --- a/icu4c/source/common/unicode/uchriter.h +++ b/icu4c/source/common/unicode/uchriter.h @@ -272,7 +272,7 @@ public: * at or after the current position in the iteration range. * @stable ICU 2.0 */ - virtual UBool hasNext(); + virtual UBool hasNext() const; /** * Advances to the previous code unit in the iteration range (toward