ICU-3668 make getters const

X-SVN-Rev: 14800
This commit is contained in:
Alan Liu 2004-03-30 00:48:54 +00:00
parent f2b6b0f836
commit 6372240259
5 changed files with 5 additions and 5 deletions

View file

@ -109,7 +109,7 @@ StringCharacterIterator::setText(const UnicodeString& newText) {
}
void
StringCharacterIterator::getText(UnicodeString& result) {
StringCharacterIterator::getText(UnicodeString& result) const {
result = text;
}
U_NAMESPACE_END

View file

@ -356,7 +356,7 @@ void UCharCharacterIterator::setText(const UChar* newText,
}
void
UCharCharacterIterator::getText(UnicodeString& result) {
UCharCharacterIterator::getText(UnicodeString& result) const {
result = UnicodeString(text, textLength);
}

View file

@ -603,7 +603,7 @@ public:
* @param result Receives a copy of the text under iteration.
* @stable ICU 2.0
*/
virtual void getText(UnicodeString& result) = 0;
virtual void getText(UnicodeString& result) const = 0;
protected:
/**

View file

@ -139,7 +139,7 @@ public:
* @param result Receives a copy of the text under iteration.
* @stable ICU 2.0
*/
virtual void getText(UnicodeString& result);
virtual void getText(UnicodeString& result) const;
/**
* Return a class ID for this object (not really public)

View file

@ -342,7 +342,7 @@ public:
* @param result Receives a copy of the text under iteration.
* @stable ICU 2.0
*/
virtual void getText(UnicodeString& result);
virtual void getText(UnicodeString& result) const;
/**
* Return a class ID for this class (not really public)