| OLD | NEW |
| 1 /* | 1 /* |
| 2 ********************************************************************** | 2 ********************************************************************** |
| 3 * Copyright (c) 2004-2010, International Business Machines | 3 * Copyright (c) 2004-2010, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************** | 5 ********************************************************************** |
| 6 * Author: Alan Liu | 6 * Author: Alan Liu |
| 7 * Created: April 26, 2004 | 7 * Created: April 26, 2004 |
| 8 * Since: ICU 3.0 | 8 * Since: ICU 3.0 |
| 9 ********************************************************************** | 9 ********************************************************************** |
| 10 */ | 10 */ |
| 11 #if defined(_MSC_VER) && defined(_HAS_EXCEPTIONS) && !_HAS_EXCEPTIONS |
| 12 #include <exception> |
| 13 using std::exception; |
| 14 #endif |
| 11 #include <typeinfo> // for 'typeid' to work | 15 #include <typeinfo> // for 'typeid' to work |
| 12 | 16 |
| 13 #include "unicode/utypes.h" | 17 #include "unicode/utypes.h" |
| 14 | 18 |
| 15 #if !UCONFIG_NO_FORMATTING | 19 #if !UCONFIG_NO_FORMATTING |
| 16 | 20 |
| 17 #include "unicode/currunit.h" | 21 #include "unicode/currunit.h" |
| 18 #include "unicode/ustring.h" | 22 #include "unicode/ustring.h" |
| 19 | 23 |
| 20 U_NAMESPACE_BEGIN | 24 U_NAMESPACE_BEGIN |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const CurrencyUnit& c = (const CurrencyUnit&) other; | 57 const CurrencyUnit& c = (const CurrencyUnit&) other; |
| 54 return typeid(*this) == typeid(other) && | 58 return typeid(*this) == typeid(other) && |
| 55 u_strcmp(isoCode, c.isoCode) == 0; | 59 u_strcmp(isoCode, c.isoCode) == 0; |
| 56 } | 60 } |
| 57 | 61 |
| 58 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyUnit) | 62 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyUnit) |
| 59 | 63 |
| 60 U_NAMESPACE_END | 64 U_NAMESPACE_END |
| 61 | 65 |
| 62 #endif // !UCONFIG_NO_FORMATTING | 66 #endif // !UCONFIG_NO_FORMATTING |
| OLD | NEW |