17 #if !UCONFIG_NO_FORMATTING
243 class TimeZoneGenericNames;
421 uint32_t getDefaultParseOptions(
void)
const;
431 void setDefaultParseOptions(uint32_t flags);
646 static UClassID U_EXPORT2 getStaticClassID(
void);
674 TimeZoneGenericNames* fTimeZoneGenericNames;
689 uint32_t fDefParseOptionFlags;
698 UBool fAbuttingOffsetHoursAndMinutes;
728 const TimeZoneGenericNames* getTimeZoneGenericNames(
UErrorCode& status)
const;
845 void appendOffsetDigits(
UnicodeString& buf, int32_t n, uint8_t minDigits)
const;
871 int32_t parseOffsetLocalizedGMTPattern(
const UnicodeString& text, int32_t start,
872 UBool isShort, int32_t& parsedLen)
const;
882 int32_t parseOffsetFields(
const UnicodeString& text, int32_t start,
UBool isShort, int32_t& parsedLen)
const;
895 int32_t parseOffsetFieldsWithPattern(
const UnicodeString& text, int32_t start,
896 UVector* patternItems,
UBool forceSingleHourDigit, int32_t& hour, int32_t& min, int32_t& sec)
const;
905 int32_t parseAbuttingOffsetFields(
const UnicodeString& text, int32_t start, int32_t& parsedLen)
const;
914 int32_t parseOffsetDefaultLocalizedGMT(
const UnicodeString& text,
int start, int32_t& parsedLen)
const;
924 int32_t parseDefaultOffsetFields(
const UnicodeString& text, int32_t start,
UChar separator,
925 int32_t& parsedLen)
const;
941 int32_t parseOffsetFieldWithLocalizedDigits(
const UnicodeString& text, int32_t start,
942 uint8_t minDigits, uint8_t maxDigits, uint16_t minVal, uint16_t maxVal, int32_t& parsedLen)
const;
953 int32_t parseSingleLocalizedDigit(
const UnicodeString& text, int32_t start, int32_t& len)
const;
965 OffsetFields minFields, OffsetFields maxFields,
UnicodeString& result);
980 OffsetFields minFields, OffsetFields maxFields,
UBool fixedHourWidth);
995 OffsetFields minFields, OffsetFields maxFields);
1010 void initGMTOffsetPatterns(
UErrorCode& status);
1018 void checkAbuttingHoursAndMinutes();
1025 TimeZone* createTimeZoneForOffset(int32_t offset)
const;
When a time zone display name is not found within a set of display names used for the specified style...
UTimeZoneFormatGMTOffsetPatternType
Constants for GMT offset pattern types.
Negative offset with hours and minutes fields.
Fixed width ISO 8601 local time difference (basic format) or the UTC indicator.
ISO 8601 local time difference (basic format) with optional seconds field.
UTimeZoneFormatParseOption
Constants for parse option flags, used for specifying optional parse behavior.
Negative offset with hours field.
UTimeZoneFormatTimeType
Constants for time types used by TimeZoneFormat APIs for receiving time type (standard time...
Generic location format, such as "United States Time (New York)", "Italy Time".
ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator...
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
Short localized GMT offset format, such as "GMT-5", "UTC+1:30" This style is equivalent to the LDML d...
Positive offset with hours field.
C++ API: TimeZone object.
double UDate
Date and Time data type.
#define ULOC_COUNTRY_CAPACITY
Useful constant for the maximum size of the country part of a locale ID (including the terminating NU...
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Negative offset with hours, minutes and seconds fields.
TimeZone represents a time zone offset, and also figures out daylight savings.
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Fixed width ISO 8601 local time difference (basic format).
Exemplar location, such as "Los Angeles" and "Paris".
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
MatchInfoCollection represents a collection of time zone name matches used by TimeZoneNames#find.
Fixed width ISO 8601 local time difference (extended format) or the UTC indicator.
Positive offset with hours and minutes fields.
TimeZoneNames is an abstract class representing the time zone display name data model defined by UTS#...
Short ISO 8601 locale time difference (basic format).
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
#define NULL
Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.
ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator...
UTimeZoneFormatStyle
Constants for time zone display format style used by format/parse APIs in TimeZoneFormat.
Time Zone ID, such as "America/Los_Angeles".
Specific short format, such as "EST", "PDT".
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_CDECL_END
This is used to end a declaration of a library private ICU C API.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Positive offset with hours, minutes and seconds fields.
Short Time Zone ID (BCP 47 Unicode location extension, time zone type value), such as "uslax"...
Generic long non-location format, such as "Eastern Time".
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Fixed width ISO 8601 local time difference (extended format).
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Specific long format, such as "Eastern Standard Time".
UTimeZoneNameType
Constants for time zone display name types.
Short ISO 8601 local time difference (basic format) or the UTC indicator.
ISO 8601 local time difference (extended format) with optional seconds field.
Localized GMT offset format, such as "GMT-05:00", "UTC+0100".
Number of UTimeZoneFormatGMTOffsetPatternType types.
Generic short non-location format, such as "ET".
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.