Go to the documentation of this file.
19 #if !UCONFIG_NO_FORMATTING
253 class TimeZoneGenericNames;
254 class TZDBTimeZoneNames;
432 uint32_t getDefaultParseOptions(
void)
const;
442 void setDefaultParseOptions(uint32_t flags);
657 static UClassID U_EXPORT2 getStaticClassID(
void);
685 TimeZoneGenericNames* fTimeZoneGenericNames;
700 uint32_t fDefParseOptionFlags;
709 UBool fAbuttingOffsetHoursAndMinutes;
712 TZDBTimeZoneNames* fTZDBTimeZoneNames;
742 const TimeZoneGenericNames* getTimeZoneGenericNames(
UErrorCode& status)
const;
749 const TZDBTimeZoneNames* getTZDBTimeZoneNames(
UErrorCode& status)
const;
866 void appendOffsetDigits(
UnicodeString& buf, int32_t n, uint8_t minDigits)
const;
892 int32_t parseOffsetLocalizedGMTPattern(
const UnicodeString& text, int32_t start,
893 UBool isShort, int32_t& parsedLen)
const;
903 int32_t parseOffsetFields(
const UnicodeString& text, int32_t start,
UBool isShort, int32_t& parsedLen)
const;
916 int32_t parseOffsetFieldsWithPattern(
const UnicodeString& text, int32_t start,
917 UVector* patternItems,
UBool forceSingleHourDigit, int32_t& hour, int32_t& min, int32_t& sec)
const;
926 int32_t parseAbuttingOffsetFields(
const UnicodeString& text, int32_t start, int32_t& parsedLen)
const;
935 int32_t parseOffsetDefaultLocalizedGMT(
const UnicodeString& text,
int start, int32_t& parsedLen)
const;
945 int32_t parseDefaultOffsetFields(
const UnicodeString& text, int32_t start, char16_t separator,
946 int32_t& parsedLen)
const;
962 int32_t parseOffsetFieldWithLocalizedDigits(
const UnicodeString& text, int32_t start,
963 uint8_t minDigits, uint8_t maxDigits, uint16_t minVal, uint16_t maxVal, int32_t& parsedLen)
const;
974 int32_t parseSingleLocalizedDigit(
const UnicodeString& text, int32_t start, int32_t& len)
const;
985 static UnicodeString& formatOffsetWithAsciiDigits(int32_t offset, char16_t sep,
986 OffsetFields minFields, OffsetFields maxFields,
UnicodeString& result);
1001 OffsetFields minFields, OffsetFields maxFields,
UBool fixedHourWidth);
1016 OffsetFields minFields, OffsetFields maxFields);
1031 void initGMTOffsetPatterns(
UErrorCode& status);
1039 void checkAbuttingHoursAndMinutes();
1046 TimeZone* createTimeZoneForOffset(int32_t offset)
const;
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
@ UTZFMT_STYLE_ZONE_ID_SHORT
Short Time Zone ID (BCP 47 Unicode location extension, time zone type value), such as "uslax".
Basic definitions for ICU, for both C and C++ APIs.
@ UTZFMT_STYLE_ISO_BASIC_FULL
ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator.
@ UTZFMT_STYLE_ISO_BASIC_SHORT
Short ISO 8601 local time difference (basic format) or the UTC indicator.
int8_t UBool
The ICU boolean type.
@ UTZFMT_STYLE_GENERIC_LONG
Generic long non-location format, such as "Eastern Time".
@ UTZFMT_STYLE_EXEMPLAR_LOCATION
Exemplar location, such as "Los Angeles" and "Paris".
@ UTZFMT_PAT_COUNT
Number of UTimeZoneFormatGMTOffsetPatternType types.
@ UTZFMT_STYLE_SPECIFIC_LONG
Specific long format, such as "Eastern Standard Time".
TimeZone represents a time zone offset, and also figures out daylight savings.
@ UTZFMT_PAT_POSITIVE_HM
Positive offset with hours and minutes fields.
@ UTZFMT_PAT_POSITIVE_HMS
Positive offset with hours, minutes and seconds fields.
@ UTZFMT_TIME_TYPE_DAYLIGHT
Daylight saving time.
UTimeZoneFormatGMTOffsetPatternType
Constants for GMT offset pattern types.
@ UTZFMT_STYLE_ISO_BASIC_LOCAL_FULL
ISO 8601 local time difference (basic format) with optional seconds field.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
@ UTZFMT_STYLE_ZONE_ID
Time Zone ID, such as "America/Los_Angeles".
C++ API: TimeZone object.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
@ UTZFMT_STYLE_ISO_EXTENDED_FIXED
Fixed width ISO 8601 local time difference (extended format) or the UTC indicator.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
@ UTZFMT_PAT_NEGATIVE_HM
Negative offset with hours and minutes fields.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
@ UTZFMT_TIME_TYPE_UNKNOWN
Unknown.
UTimeZoneFormatTimeType
Constants for time types used by TimeZoneFormat APIs for receiving time type (standard time,...
@ UTZFMT_PAT_NEGATIVE_HMS
Negative offset with hours, minutes and seconds fields.
UTimeZoneFormatStyle
Constants for time zone display format style used by format/parse APIs in TimeZoneFormat.
@ UTZFMT_STYLE_GENERIC_LOCATION
Generic location format, such as "United States Time (New York)", "Italy Time".
@ UTZFMT_STYLE_SPECIFIC_SHORT
Specific short format, such as "EST", "PDT".
@ UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FULL
ISO 8601 local time difference (extended format) with optional seconds field.
@ UTZFMT_STYLE_LOCALIZED_GMT
Localized GMT offset format, such as "GMT-05:00", "UTC+0100".
TimeZoneNames is an abstract class representing the time zone display name data model defined by UTS#...
@ UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FIXED
Fixed width ISO 8601 local time difference (extended format).
@ UTZFMT_STYLE_ISO_EXTENDED_FULL
ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator.
double UDate
Date and Time data type.
@ UTZFMT_STYLE_GENERIC_SHORT
Generic short non-location format, such as "ET".
UTimeZoneNameType
Constants for time zone display name types.
@ UTZFMT_STYLE_ISO_BASIC_LOCAL_SHORT
Short ISO 8601 locale time difference (basic format).
@ UTZFMT_TIME_TYPE_STANDARD
Standard time.
@ UTZFMT_STYLE_ISO_BASIC_FIXED
Fixed width ISO 8601 local time difference (basic format) or the UTC indicator.
@ UTZFMT_PARSE_OPTION_TZ_DATABASE_ABBREVIATIONS
When parsing a time zone display name in UTZFMT_STYLE_SPECIFIC_SHORT, look for the IANA tz database c...
@ UTZFMT_PARSE_OPTION_NONE
No option.
@ UTZFMT_PAT_NEGATIVE_H
Negative offset with hours field.
MatchInfoCollection represents a collection of time zone name matches used by TimeZoneNames#find.
@ UTZFMT_PAT_POSITIVE_H
Positive offset with hours field.
@ UTZFMT_STYLE_ISO_BASIC_LOCAL_FIXED
Fixed width ISO 8601 local time difference (basic format).
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
#define U_NAMESPACE_BEGIN
@ UTZFMT_STYLE_LOCALIZED_GMT_SHORT
Short localized GMT offset format, such as "GMT-5", "UTC+1:30" This style is equivalent to the LDML d...
A Locale object represents a specific geographical, political, or cultural region.
UTimeZoneFormatParseOption
Constants for parse option flags, used for specifying optional parse behavior.
#define ULOC_COUNTRY_CAPACITY
Useful constant for the maximum size of the country part of a locale ID (including the terminating NU...
@ UTZFMT_PARSE_OPTION_ALL_STYLES
When a time zone display name is not found within a set of display names used for the specified style...