ICU-3668 make hasPrevious() const
X-SVN-Rev: 14801
This commit is contained in:
parent
6372240259
commit
91a017c2cc
@ -180,7 +180,7 @@ UCharCharacterIterator::previous() {
|
||||
}
|
||||
|
||||
UBool
|
||||
UCharCharacterIterator::hasPrevious() {
|
||||
UCharCharacterIterator::hasPrevious() const {
|
||||
return (UBool)(pos > begin ? TRUE : FALSE);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user