mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 00:43:32 +00:00
ICU-3668 make getters const
X-SVN-Rev: 14800
This commit is contained in:
parent
f2b6b0f836
commit
6372240259
5 changed files with 5 additions and 5 deletions
icu4c/source/common
|
@ -109,7 +109,7 @@ StringCharacterIterator::setText(const UnicodeString& newText) {
|
|||
}
|
||||
|
||||
void
|
||||
StringCharacterIterator::getText(UnicodeString& result) {
|
||||
StringCharacterIterator::getText(UnicodeString& result) const {
|
||||
result = text;
|
||||
}
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -356,7 +356,7 @@ void UCharCharacterIterator::setText(const UChar* newText,
|
|||
}
|
||||
|
||||
void
|
||||
UCharCharacterIterator::getText(UnicodeString& result) {
|
||||
UCharCharacterIterator::getText(UnicodeString& result) const {
|
||||
result = UnicodeString(text, textLength);
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
/**
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue