37 #if !UCONFIG_NO_FORMATTING
46 class StringEnumeration;
136 #ifndef U_HIDE_DRAFT_API
149 static const TimeZone& U_EXPORT2 getUnknown();
164 static const TimeZone* U_EXPORT2 getGMT(
void);
197 const int32_t* rawOffset,
254 static int32_t U_EXPORT2 countEquivalentIDs(
const UnicodeString&
id);
290 static TimeZone* U_EXPORT2 createDefault(
void);
301 static void U_EXPORT2 adoptDefault(
TimeZone* zone);
303 #ifndef U_HIDE_SYSTEM_API
312 static void U_EXPORT2 setDefault(
const TimeZone& zone);
321 static const char* U_EXPORT2 getTZDataVersion(
UErrorCode& status);
403 virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
404 uint8_t dayOfWeek, int32_t millis,
UErrorCode& status)
const = 0;
426 virtual int32_t getOffset(uint8_t era, int32_t year, int32_t month, int32_t day,
427 uint8_t dayOfWeek, int32_t milliseconds,
428 int32_t monthLength,
UErrorCode& status)
const = 0;
453 virtual void getOffset(
UDate date,
UBool local, int32_t& rawOffset,
463 virtual void setRawOffset(int32_t offsetMillis) = 0;
472 virtual int32_t getRawOffset(
void)
const = 0;
641 virtual UBool useDaylightTime(
void)
const = 0;
675 virtual TimeZone* clone(
void)
const = 0;
683 static UClassID U_EXPORT2 getStaticClassID(
void);
713 virtual int32_t getDSTSavings()
const;
733 char *region, int32_t capacity,
UErrorCode& status);
764 #ifndef U_HIDE_INTERNAL_API
778 friend class ZoneMeta;
831 int32_t& minute, int32_t& second);
855 static UnicodeString& formatCustomID(int32_t hour, int32_t min, int32_t sec,
863 static void initDefault(
void);
878 friend class TZEnumeration;
884 inline UnicodeString&
double UDate
Date and Time data type.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Base class for 'pure' C++ implementations of uenum api.
EDisplayType
Enum for use with getDisplayName.
TimeZone represents a time zone offset, and also figures out daylight savings.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Selector for short display name derived from time zone offset.
Selector for short generic display name.
Selector for long generic display name.
Selector for long display name.
C++ API: Common ICU base class UObject.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Selector for short display name derived from the time zone's fallback name.
UBool operator!=(const TimeZone &that) const
Returns true if the two TimeZones are NOT equal; that is, if operator==() returns false...
USystemTimeZoneType
System time zone type constants used by filtering zones in ucal_openTimeZoneIDEnumeration.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
struct UResourceBundle UResourceBundle
UObject is the common ICU "boilerplate" class.
Selector for long display name derived from time zone offset.
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.