ICU-3668 make hasPrevious() const

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

View File

@ -180,7 +180,7 @@ UCharCharacterIterator::previous() {
}
UBool
UCharCharacterIterator::hasPrevious() {
UCharCharacterIterator::hasPrevious() const {
return (UBool)(pos > begin ? TRUE : FALSE);
}

View File

@ -528,7 +528,7 @@ public:
* before the current position in the iteration range, return TRUE otherwise.
* @stable ICU 2.0
*/
virtual UBool hasPrevious() = 0;
virtual UBool hasPrevious() const = 0;
/**
* Returns the numeric index in the underlying text-storage

View File

@ -301,7 +301,7 @@ public:
* before the current position in the iteration range.
* @stable ICU 2.0
*/
virtual UBool hasPrevious();
virtual UBool hasPrevious() const;
/**
* Moves the current position relative to the start or end of the