17#if !UCONFIG_NO_FORMATTING
18#ifndef U_HIDE_INTERNAL_API
146class TimeZoneGenericNames;
541 TimeZoneGenericNames* fTimeZoneGenericNames;
556 uint32_t fDefParseOptionFlags;
593 const TimeZoneGenericNames* getTimeZoneGenericNames(
UErrorCode& status)
const;
668 void appendOffsetDigits(
UnicodeString& buf, int32_t n, uint8_t minDigits)
const;
682 UBool* hasDigitOffset)
const;
692 int32_t parseOffsetFields(
const UnicodeString& text, int32_t start,
UBool minimumHourWidth,
693 int32_t& parsedLen)
const;
702 int32_t parseAbuttingOffsetFields(
const UnicodeString& text, int32_t start, int32_t& parsedLen)
const;
711 int32_t parseOffsetDefaultLocalizedGMT(
const UnicodeString& text,
int start, int32_t& parsedLen)
const;
721 int32_t parseDefaultOffsetFields(
const UnicodeString& text, int32_t start,
UChar separator,
722 int32_t& parsedLen)
const;
738 int32_t parseOffsetFieldWithLocalizedDigits(
const UnicodeString& text, int32_t start,
739 uint8_t minDigits, uint8_t maxDigits, uint16_t minVal, uint16_t maxVal, int32_t& parsedLen)
const;
750 int32_t parseSingleLocalizedDigit(
const UnicodeString& text, int32_t start, int32_t& len)
const;
762 OffsetFields minFields, OffsetFields maxFields,
UnicodeString& result);
777 OffsetFields minFields, OffsetFields maxFields,
UBool fixedHourWidth);
793 OffsetFields minFields, OffsetFields maxFields,
UBool fixedHourWidth);
808 void initGMTOffsetPatterns(
UErrorCode& status);
815 TimeZone* createTimeZoneForOffset(int32_t offset)
const;
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
A Locale object represents a specific geographical, political, or cultural region.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
MatchInfoCollection represents a collection of time zone name matches used by TimeZoneNames#find.
TimeZoneNames is an abstract class representing the time zone display name data model defined by UTS#...
TimeZone represents a time zone offset, and also figures out daylight savings.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: TimeZone object.
UTimeZoneFormatGMTOffsetPatternType
Constants for GMT offset pattern types.
@ UTZFMT_PAT_NEGATIVE_HM
Negative offset with hour and minute fields.
@ UTZFMT_PAT_POSITIVE_HMS
Positive offset with hour, minute and second fields.
@ UTZFMT_PAT_NEGATIVE_HMS
Negative offset with hour, minute and second fields.
@ UTZFMT_PAT_POSITIVE_HM
Positive offset with hour and minute fields.
UTimeZoneFormatStyle
Constants for time zone display format style used by format/parse APIs in TimeZoneFormat.
@ UTZFMT_STYLE_ISO8601
ISO 8601 format (extended), such as "-05:00", "Z"(UTC)
@ UTZFMT_STYLE_GENERIC_LONG
Generic long non-location format, such as "Eastern Time".
@ UTZFMT_STYLE_LOCALIZED_GMT
Localized GMT offset format, such as "GMT-05:00", "UTC+0100".
@ UTZFMT_STYLE_RFC822
RFC822 format, such as "-0500".
@ 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_GENERIC_SHORT
Generic short non-location format, such as "ET".
@ UTZFMT_STYLE_SPECIFIC_LONG
Specific long format, such as "Eastern Standard Time".
UTimeZoneFormatParseOption
Constants for parse option flags, used for specifying optional parse behavior.
@ 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...
@ UTZFMT_PARSE_OPTION_NONE
No option.
UTimeZoneFormatTimeType
Constants for time types used by TimeZoneFormat APIs for receiving time type (standard time,...
@ UTZFMT_TIME_TYPE_DAYLIGHT
Daylight saving time.
@ UTZFMT_TIME_TYPE_UNKNOWN
Unknown.
@ UTZFMT_TIME_TYPE_STANDARD
Standard time.
UTimeZoneNameType
Constants for time zone display name types.
#define ULOC_COUNTRY_CAPACITY
Useful constant for the maximum size of the country part of a locale ID (including the terminating NU...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
int8_t UBool
The ICU boolean type.
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
#define NULL
Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
double UDate
Date and Time data type.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.