| OLD | NEW |
| 1 /******************************************************************** | 1 /******************************************************************** |
| 2 * COPYRIGHT: | 2 * COPYRIGHT: |
| 3 * Copyright (c) 1997-2010, International Business Machines Corporation and | 3 * Copyright (c) 1997-2010, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ********************************************************************/ | 5 ********************************************************************/ |
| 6 | 6 |
| 7 | 7 |
| 8 #include "unicode/utypes.h" | 8 #include "unicode/utypes.h" |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 UnicodeString delim(", "); | 164 UnicodeString delim(", "); |
| 165 for (i=0; i<n; ++i) { | 165 for (i=0; i<n; ++i) { |
| 166 if (i > 0) { | 166 if (i > 0) { |
| 167 s.append(delim); | 167 s.append(delim); |
| 168 } | 168 } |
| 169 s = s + _toString(array[i]); | 169 s = s + _toString(array[i]); |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 break; | 172 break; |
| 173 case Formattable::kObject: { | 173 case Formattable::kObject: { |
| 174 const CurrencyAmount* c = dynamic_cast<const CurrencyAmount*>(f.getObjec
t()); | 174 const CurrencyAmount* c = CR_DYNAMIC_CAST<const CurrencyAmount*>(f.getOb
ject()); |
| 175 if (c != NULL) { | 175 if (c != NULL) { |
| 176 s = _toString(c->getNumber()) + " " + UnicodeString(c->getISOCurrenc
y()); | 176 s = _toString(c->getNumber()) + " " + UnicodeString(c->getISOCurrenc
y()); |
| 177 } else { | 177 } else { |
| 178 s = UnicodeString("Unknown UObject"); | 178 s = UnicodeString("Unknown UObject"); |
| 179 } | 179 } |
| 180 break; | 180 break; |
| 181 } | 181 } |
| 182 default: | 182 default: |
| 183 s = UnicodeString("Unknown Formattable type=") + (int32_t)f.getType(); | 183 s = UnicodeString("Unknown Formattable type=") + (int32_t)f.getType(); |
| 184 break; | 184 break; |
| (...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 /* | 1790 /* |
| 1791 * Hey, Emacs, please set the following: | 1791 * Hey, Emacs, please set the following: |
| 1792 * | 1792 * |
| 1793 * Local Variables: | 1793 * Local Variables: |
| 1794 * indent-tabs-mode: nil | 1794 * indent-tabs-mode: nil |
| 1795 * End: | 1795 * End: |
| 1796 * | 1796 * |
| 1797 */ | 1797 */ |
| OLD | NEW |