| OLD | NEW |
| 1 /******************************************************************** | 1 /******************************************************************** |
| 2 * Copyright (c) 1997-2010, International Business Machines | 2 * Copyright (c) 1997-2010, International Business Machines |
| 3 * Corporation and others. All Rights Reserved. | 3 * Corporation and others. All Rights Reserved. |
| 4 ********************************************************************/ | 4 ********************************************************************/ |
| 5 | 5 |
| 6 #include "unicode/utypes.h" | 6 #include "unicode/utypes.h" |
| 7 | 7 |
| 8 #if !UCONFIG_NO_FORMATTING | 8 #if !UCONFIG_NO_FORMATTING |
| 9 | 9 |
| 10 #include "unicode/simpletz.h" | 10 #include "unicode/simpletz.h" |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 3,1,-1,120*U_MILLIS_PER_MINUTE, | 1086 3,1,-1,120*U_MILLIS_PER_MINUTE, |
| 1087 SimpleTimeZone::WALL_TIME, | 1087 SimpleTimeZone::WALL_TIME, |
| 1088 9,-1,1,120*U_MILLIS_PER_MINUTE, | 1088 9,-1,1,120*U_MILLIS_PER_MINUTE, |
| 1089 SimpleTimeZone::WALL_TIME, | 1089 SimpleTimeZone::WALL_TIME, |
| 1090 60*U_MILLIS_PER_MINUTE,ec); | 1090 60*U_MILLIS_PER_MINUTE,ec); |
| 1091 if (U_FAILURE(ec)) { | 1091 if (U_FAILURE(ec)) { |
| 1092 errln("FAIL: SimpleTimeZone constructor"); | 1092 errln("FAIL: SimpleTimeZone constructor"); |
| 1093 return; | 1093 return; |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 SimpleTimeZone *cst = dynamic_cast<SimpleTimeZone *>(cst1); | 1096 SimpleTimeZone *cst = CR_DYNAMIC_CAST<SimpleTimeZone *>(cst1); |
| 1097 | 1097 |
| 1098 if(pst->hasSameRules(*cst)) { | 1098 if(pst->hasSameRules(*cst)) { |
| 1099 errln("FAILURE: PST and CST have same rules"); | 1099 errln("FAILURE: PST and CST have same rules"); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 UErrorCode status = U_ZERO_ERROR; | 1102 UErrorCode status = U_ZERO_ERROR; |
| 1103 int32_t offset1 = pst->getOffset(1, | 1103 int32_t offset1 = pst->getOffset(1, |
| 1104 1997, UCAL_OCTOBER, 26, UCAL_SUNDAY, (2*60*60*1000), status); | 1104 1997, UCAL_OCTOBER, 26, UCAL_SUNDAY, (2*60*60*1000), status); |
| 1105 failure(status, "getOffset() failed"); | 1105 failure(status, "getOffset() failed"); |
| 1106 | 1106 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 zone->setEndRule(0, -1, 0, status); | 1196 zone->setEndRule(0, -1, 0, status); |
| 1197 if(U_SUCCESS(status)){ | 1197 if(U_SUCCESS(status)){ |
| 1198 errln("Failed. No exception has been thrown for DOM -1 setEndRule"); | 1198 errln("Failed. No exception has been thrown for DOM -1 setEndRule"); |
| 1199 } else{ | 1199 } else{ |
| 1200 logln("(h) " + UnicodeString(u_errorName(status))); | 1200 logln("(h) " + UnicodeString(u_errorName(status))); |
| 1201 } | 1201 } |
| 1202 delete zone; | 1202 delete zone; |
| 1203 } | 1203 } |
| 1204 | 1204 |
| 1205 #endif /* #if !UCONFIG_NO_FORMATTING */ | 1205 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| OLD | NEW |