ICU-4707 Fix some compiler warnings about unused variables.

X-SVN-Rev: 19230
This commit is contained in:
George Rhoten 2006-02-21 18:32:00 +00:00
parent fb6970fdde
commit 5937e5ec9a

View File

@ -3978,23 +3978,6 @@ UnicodeString::setTo(UChar32 srcChar)
return replace(0, fLength, srcChar);
}
inline UnicodeString&
UnicodeString::operator+= (UChar ch)
{ return doReplace(fLength, 0, &ch, 0, 1); }
inline UnicodeString&
UnicodeString::operator+= (UChar32 ch) {
UChar buffer[U16_MAX_LENGTH];
int32_t _length = 0;
UBool isError = FALSE;
U16_APPEND(buffer, _length, U16_MAX_LENGTH, ch, isError);
return doReplace(fLength, 0, buffer, 0, _length);
}
inline UnicodeString&
UnicodeString::operator+= (const UnicodeString& srcText)
{ return doReplace(fLength, 0, srcText, 0, srcText.fLength); }
inline UnicodeString&
UnicodeString::append(const UnicodeString& srcText,
int32_t srcStart,
@ -4029,6 +4012,19 @@ UnicodeString::append(UChar32 srcChar) {
return doReplace(fLength, 0, buffer, 0, _length);
}
inline UnicodeString&
UnicodeString::operator+= (UChar ch)
{ return doReplace(fLength, 0, &ch, 0, 1); }
inline UnicodeString&
UnicodeString::operator+= (UChar32 ch) {
return append(ch);
}
inline UnicodeString&
UnicodeString::operator+= (const UnicodeString& srcText)
{ return doReplace(fLength, 0, srcText, 0, srcText.fLength); }
inline UnicodeString&
UnicodeString::insert(int32_t start,
const UnicodeString& srcText,