ICU-3668 make hasNext() const

X-SVN-Rev: 14802
This commit is contained in:
Alan Liu 2004-03-30 00:55:27 +00:00
parent 91a017c2cc
commit c1ef5d6f4b
3 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ UCharCharacterIterator::nextPostInc() {
}
UBool
UCharCharacterIterator::hasNext() {
UCharCharacterIterator::hasNext() const {
return (UBool)(pos < end ? TRUE : FALSE);
}

View File

@ -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*/

View File

@ -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