| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 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 * File TIMEZONE.CPP | 7 * File TIMEZONE.CPP |
| 8 * | 8 * |
| 9 * Modification History: | 9 * Modification History: |
| 10 * | 10 * |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * 09/02/98 stephen Added getOffset(monthLen) and hasSameRules() | 28 * 09/02/98 stephen Added getOffset(monthLen) and hasSameRules() |
| 29 * 09/15/98 stephen Added getStaticClassID() | 29 * 09/15/98 stephen Added getStaticClassID() |
| 30 * 02/22/99 stephen Removed character literals for EBCDIC safety | 30 * 02/22/99 stephen Removed character literals for EBCDIC safety |
| 31 * 05/04/99 stephen Changed initDefault() for Mutex issues | 31 * 05/04/99 stephen Changed initDefault() for Mutex issues |
| 32 * 07/12/99 helena HPUX 11 CC Port. | 32 * 07/12/99 helena HPUX 11 CC Port. |
| 33 * 12/03/99 aliu Moved data out of static table into icudata.dll. | 33 * 12/03/99 aliu Moved data out of static table into icudata.dll. |
| 34 * Substantial rewrite of zone lookup, default zone, an
d | 34 * Substantial rewrite of zone lookup, default zone, an
d |
| 35 * available IDs code. Misc. cleanup. | 35 * available IDs code. Misc. cleanup. |
| 36 ********************************************************************************
*/ | 36 ********************************************************************************
*/ |
| 37 | 37 |
| 38 #include <typeinfo> // for 'typeid' to work | |
| 39 | 38 |
| 40 #include "unicode/utypes.h" | 39 #include "unicode/utypes.h" |
| 41 #include "unicode/ustring.h" | 40 #include "unicode/ustring.h" |
| 42 | 41 |
| 43 #ifdef U_DEBUG_TZ | 42 #ifdef U_DEBUG_TZ |
| 44 # include <stdio.h> | 43 # include <stdio.h> |
| 45 # include "uresimp.h" // for debugging | 44 # include "uresimp.h" // for debugging |
| 46 | 45 |
| 47 static void debug_tz_loc(const char *f, int32_t l) | 46 static void debug_tz_loc(const char *f, int32_t l) |
| 48 { | 47 { |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 { | 376 { |
| 378 if (this != &right) fID = right.fID; | 377 if (this != &right) fID = right.fID; |
| 379 return *this; | 378 return *this; |
| 380 } | 379 } |
| 381 | 380 |
| 382 // ------------------------------------- | 381 // ------------------------------------- |
| 383 | 382 |
| 384 UBool | 383 UBool |
| 385 TimeZone::operator==(const TimeZone& that) const | 384 TimeZone::operator==(const TimeZone& that) const |
| 386 { | 385 { |
| 387 return typeid(*this) == typeid(that) && | 386 return CR_TYPEID(*this) == CR_TYPEID(that) && |
| 388 fID == that.fID; | 387 fID == that.fID; |
| 389 } | 388 } |
| 390 | 389 |
| 391 // ------------------------------------- | 390 // ------------------------------------- |
| 392 | 391 |
| 393 TimeZone* U_EXPORT2 | 392 TimeZone* U_EXPORT2 |
| 394 TimeZone::createTimeZone(const UnicodeString& ID) | 393 TimeZone::createTimeZone(const UnicodeString& ID) |
| 395 { | 394 { |
| 396 /* We first try to lookup the zone ID in our system list. If this | 395 /* We first try to lookup the zone ID in our system list. If this |
| 397 * fails, we try to parse it as a custom string GMT[+-]hh:mm. If | 396 * fails, we try to parse it as a custom string GMT[+-]hh:mm. If |
| (...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 getCustomID(id, canonicalID, status); | 1377 getCustomID(id, canonicalID, status); |
| 1379 } | 1378 } |
| 1380 return canonicalID; | 1379 return canonicalID; |
| 1381 } | 1380 } |
| 1382 | 1381 |
| 1383 U_NAMESPACE_END | 1382 U_NAMESPACE_END |
| 1384 | 1383 |
| 1385 #endif /* #if !UCONFIG_NO_FORMATTING */ | 1384 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 1386 | 1385 |
| 1387 //eof | 1386 //eof |
| OLD | NEW |