ICU-3549 add toString(int32_t)

X-SVN-Rev: 15039
This commit is contained in:
Alan Liu 2004-04-24 02:53:56 +00:00
parent fa27757571
commit bb1db7b923
2 changed files with 6 additions and 0 deletions

View File

@ -178,6 +178,11 @@ UnicodeString toString(const Formattable& f) {
#endif
// useful when operator+ won't cooperate
UnicodeString toString(int32_t n) {
return UnicodeString() + (long)n;
}
// stephen - cleaned up 05/05/99
UnicodeString operator+(const UnicodeString& left, char num)
{ return left + (long)num; }

View File

@ -41,6 +41,7 @@ UnicodeString operator+(const UnicodeString& left, unsigned int num);
UnicodeString operator+(const UnicodeString& left, float num);
#if !UCONFIG_NO_FORMATTING
UnicodeString toString(const Formattable& f); // liu
UnicodeString toString(int32_t n);
#endif
//-----------------------------------------------------------------------------