| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 2007-2010, International Business Machines Corporation and | 3 * Copyright (C) 2007-2010, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include <typeinfo> // for 'typeid' to work | |
| 9 | 8 |
| 10 #include "unicode/utypes.h" | 9 #include "unicode/utypes.h" |
| 11 | 10 |
| 12 #if !UCONFIG_NO_FORMATTING | 11 #if !UCONFIG_NO_FORMATTING |
| 13 | 12 |
| 14 #include "unicode/tzrule.h" | 13 #include "unicode/tzrule.h" |
| 15 #include "unicode/tztrans.h" | 14 #include "unicode/tztrans.h" |
| 16 | 15 |
| 17 U_NAMESPACE_BEGIN | 16 U_NAMESPACE_BEGIN |
| 18 | 17 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 setTo(*right.fTo); | 58 setTo(*right.fTo); |
| 60 } | 59 } |
| 61 return *this; | 60 return *this; |
| 62 } | 61 } |
| 63 | 62 |
| 64 UBool | 63 UBool |
| 65 TimeZoneTransition::operator==(const TimeZoneTransition& that) const { | 64 TimeZoneTransition::operator==(const TimeZoneTransition& that) const { |
| 66 if (this == &that) { | 65 if (this == &that) { |
| 67 return TRUE; | 66 return TRUE; |
| 68 } | 67 } |
| 69 if (typeid(*this) != typeid(that)) { | 68 if (CR_TYPEID(*this) != CR_TYPEID(that)) { |
| 70 return FALSE; | 69 return FALSE; |
| 71 } | 70 } |
| 72 if (fTime != that.fTime) { | 71 if (fTime != that.fTime) { |
| 73 return FALSE; | 72 return FALSE; |
| 74 } | 73 } |
| 75 if ((fFrom == NULL && that.fFrom == NULL) | 74 if ((fFrom == NULL && that.fFrom == NULL) |
| 76 || (fFrom != NULL && that.fFrom != NULL && *fFrom == *(that.fFrom))) { | 75 || (fFrom != NULL && that.fFrom != NULL && *fFrom == *(that.fFrom))) { |
| 77 if ((fTo == NULL && that.fTo == NULL) | 76 if ((fTo == NULL && that.fTo == NULL) |
| 78 || (fTo != NULL && that.fTo != NULL && *fTo == *(that.fTo))) { | 77 || (fTo != NULL && that.fTo != NULL && *fTo == *(that.fTo))) { |
| 79 return TRUE; | 78 return TRUE; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const TimeZoneRule* | 136 const TimeZoneRule* |
| 138 TimeZoneTransition::getFrom(void) const { | 137 TimeZoneTransition::getFrom(void) const { |
| 139 return fFrom; | 138 return fFrom; |
| 140 } | 139 } |
| 141 | 140 |
| 142 U_NAMESPACE_END | 141 U_NAMESPACE_END |
| 143 | 142 |
| 144 #endif | 143 #endif |
| 145 | 144 |
| 146 //eof | 145 //eof |
| OLD | NEW |