| 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/dtrule.h" | 13 #include "unicode/dtrule.h" |
| 15 | 14 |
| 16 U_NAMESPACE_BEGIN | 15 U_NAMESPACE_BEGIN |
| 17 | 16 |
| 18 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimeRule) | 17 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimeRule) |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 fMillisInDay = right.fMillisInDay; | 74 fMillisInDay = right.fMillisInDay; |
| 76 fDateRuleType = right.fDateRuleType; | 75 fDateRuleType = right.fDateRuleType; |
| 77 fTimeRuleType = right.fTimeRuleType; | 76 fTimeRuleType = right.fTimeRuleType; |
| 78 } | 77 } |
| 79 return *this; | 78 return *this; |
| 80 } | 79 } |
| 81 | 80 |
| 82 UBool | 81 UBool |
| 83 DateTimeRule::operator==(const DateTimeRule& that) const { | 82 DateTimeRule::operator==(const DateTimeRule& that) const { |
| 84 return ((this == &that) || | 83 return ((this == &that) || |
| 85 (typeid(*this) == typeid(that) && | 84 (CR_TYPEID(*this) == CR_TYPEID(that) && |
| 86 fMonth == that.fMonth && | 85 fMonth == that.fMonth && |
| 87 fDayOfMonth == that.fDayOfMonth && | 86 fDayOfMonth == that.fDayOfMonth && |
| 88 fDayOfWeek == that.fDayOfWeek && | 87 fDayOfWeek == that.fDayOfWeek && |
| 89 fWeekInMonth == that.fWeekInMonth && | 88 fWeekInMonth == that.fWeekInMonth && |
| 90 fMillisInDay == that.fMillisInDay && | 89 fMillisInDay == that.fMillisInDay && |
| 91 fDateRuleType == that.fDateRuleType && | 90 fDateRuleType == that.fDateRuleType && |
| 92 fTimeRuleType == that.fTimeRuleType)); | 91 fTimeRuleType == that.fTimeRuleType)); |
| 93 } | 92 } |
| 94 | 93 |
| 95 UBool | 94 UBool |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 int32_t | 129 int32_t |
| 131 DateTimeRule::getRuleMillisInDay(void) const { | 130 DateTimeRule::getRuleMillisInDay(void) const { |
| 132 return fMillisInDay; | 131 return fMillisInDay; |
| 133 } | 132 } |
| 134 | 133 |
| 135 U_NAMESPACE_END | 134 U_NAMESPACE_END |
| 136 | 135 |
| 137 #endif /* #if !UCONFIG_NO_FORMATTING */ | 136 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 138 | 137 |
| 139 //eof | 138 //eof |
| OLD | NEW |