Loading...
Searching...
No Matches
datefmt.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
********************************************************************************
* Copyright (C) 1997-2016, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************
*
* File DATEFMT.H
*
* Modification History:
*
* Date Name Description
* 02/19/97 aliu Converted from java.
* 04/01/97 aliu Added support for centuries.
* 07/23/98 stephen JDK 1.2 sync
* 11/15/99 weiv Added support for week of year/day of week formatting
********************************************************************************
*/
#ifndef DATEFMT_H
#define DATEFMT_H
#include "unicode/utypes.h"
#if U_SHOW_CPLUSPLUS_API
#if !UCONFIG_NO_FORMATTING
#include "unicode/udat.h"
#include "unicode/calendar.h"
#include "unicode/numfmt.h"
#include "unicode/format.h"
#include "unicode/locid.h"
#include "unicode/enumset.h"
#include "unicode/udisplaycontext.h"
U_NAMESPACE_BEGIN
class TimeZone;
class DateTimePatternGenerator;
class U_I18N_API_CLASS DateFormat : public Format {
public:
enum EStyle
{
kNone = -1,
kFull = 0,
kLong = 1,
kMedium = 2,
kShort = 3,
kDateOffset = kShort + 1,
// kFull + kDateOffset = 4
// kLong + kDateOffset = 5
// kMedium + kDateOffset = 6
// kShort + kDateOffset = 7
kDateTime = 8,
// Default DateTime
kDateTimeOffset = kDateTime + 1,
// kFull + kDateTimeOffset = 9
// kLong + kDateTimeOffset = 10
// kMedium + kDateTimeOffset = 11
// kShort + kDateTimeOffset = 12
// relative dates
kRelative = (1 << 7),
kFullRelative = (kFull | kRelative),
kLongRelative = kLong | kRelative,
kMediumRelative = kMedium | kRelative,
kShortRelative = kShort | kRelative,
kDefault = kMedium,
FULL = kFull,
LONG = kLong,
MEDIUM = kMedium,
SHORT = kShort,
DEFAULT = kDefault,
DATE_OFFSET = kDateOffset,
NONE = kNone,
DATE_TIME = kDateTime
};
U_I18N_API virtual ~DateFormat();
U_I18N_API virtual DateFormat* clone() const override = 0;
U_I18N_API virtual bool operator==(const Format&) const override;
using Format::format;
U_I18N_API virtual UnicodeString& format(const Formattable& obj,
UnicodeString& appendTo,
FieldPosition& pos,
UErrorCode& status) const override;
U_I18N_API virtual UnicodeString& format(const Formattable& obj,
UnicodeString& appendTo,
FieldPositionIterator* posIter,
UErrorCode& status) const override;
U_I18N_API virtual UnicodeString& format(Calendar& cal,
UnicodeString& appendTo,
FieldPosition& fieldPosition) const = 0;
U_I18N_API virtual UnicodeString& format(Calendar& cal,
UnicodeString& appendTo,
FieldPositionIterator* posIter,
UErrorCode& status) const;
U_I18N_API UnicodeString& format(UDate date,
UnicodeString& appendTo,
FieldPosition& fieldPosition) const;
U_I18N_API UnicodeString& format(UDate date,
UnicodeString& appendTo,
FieldPositionIterator* posIter,
UErrorCode& status) const;
U_I18N_API UnicodeString& format(UDate date, UnicodeString& appendTo) const;
U_I18N_API virtual UDate parse(const UnicodeString& text, UErrorCode& status) const;
U_I18N_API virtual void parse(const UnicodeString& text,
Calendar& cal,
ParsePosition& pos) const = 0;
U_I18N_API UDate parse(const UnicodeString& text, ParsePosition& pos) const;
U_I18N_API virtual void parseObject(const UnicodeString& source,
Formattable& result,
ParsePosition& parse_pos) const override;
U_I18N_API static DateFormat* U_EXPORT2 createInstance();
U_I18N_API static DateFormat* U_EXPORT2
createTimeInstance(EStyle style = kDefault, const Locale& aLocale = Locale::getDefault());
U_I18N_API static DateFormat* U_EXPORT2
createDateInstance(EStyle style = kDefault, const Locale& aLocale = Locale::getDefault());
U_I18N_API static DateFormat* U_EXPORT2
createDateTimeInstance(EStyle dateStyle = kDefault,
EStyle timeStyle = kDefault,
const Locale& aLocale = Locale::getDefault());
#ifndef U_HIDE_INTERNAL_API
U_I18N_API static UnicodeString getBestPattern(const Locale& locale,
const UnicodeString& skeleton,
UErrorCode& status);
#endif /* U_HIDE_INTERNAL_API */
U_I18N_API static DateFormat* U_EXPORT2 createInstanceForSkeleton(const UnicodeString& skeleton,
UErrorCode& status);
U_I18N_API static DateFormat* U_EXPORT2 createInstanceForSkeleton(const UnicodeString& skeleton,
const Locale& locale,
UErrorCode& status);
U_I18N_API static DateFormat* U_EXPORT2 createInstanceForSkeleton(Calendar* calendarToAdopt,
const UnicodeString& skeleton,
const Locale& locale,
UErrorCode& status);
U_I18N_API static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
U_I18N_API virtual UBool isLenient() const;
U_I18N_API virtual void setLenient(UBool lenient);
U_I18N_API virtual UBool isCalendarLenient() const;
U_I18N_API virtual void setCalendarLenient(UBool lenient);
U_I18N_API virtual const Calendar* getCalendar() const;
U_I18N_API virtual void adoptCalendar(Calendar* calendarToAdopt);
U_I18N_API virtual void setCalendar(const Calendar& newCalendar);
U_I18N_API virtual const NumberFormat* getNumberFormat() const;
U_I18N_API virtual void adoptNumberFormat(NumberFormat* formatToAdopt);
U_I18N_API virtual void setNumberFormat(const NumberFormat& newNumberFormat);
U_I18N_API virtual const TimeZone& getTimeZone() const;
U_I18N_API virtual void adoptTimeZone(TimeZone* zoneToAdopt);
U_I18N_API virtual void setTimeZone(const TimeZone& zone);
U_I18N_API virtual void setContext(UDisplayContext value, UErrorCode& status);
U_I18N_API virtual UDisplayContext getContext(UDisplayContextType type, UErrorCode& status) const;
U_I18N_API virtual DateFormat& U_EXPORT2 setBooleanAttribute(UDateFormatBooleanAttribute attr,
UBool newvalue, UErrorCode& status);
U_I18N_API virtual UBool U_EXPORT2 getBooleanAttribute(UDateFormatBooleanAttribute attr,
UErrorCode& status) const;
protected:
U_I18N_API DateFormat();
U_I18N_API DateFormat(const DateFormat&);
U_I18N_API DateFormat& operator=(const DateFormat&);
Calendar* fCalendar;
NumberFormat* fNumberFormat;
private:
static DateFormat* U_EXPORT2 create(EStyle timeStyle, EStyle dateStyle, const Locale& inLocale);
EnumSet<UDateFormatBooleanAttribute, 0, UDAT_BOOLEAN_ATTRIBUTE_COUNT> fBoolFlags;
UDisplayContext fCapitalizationContext;
friend class DateFmtKeyByStyle;
public:
#ifndef U_HIDE_OBSOLETE_API
enum EField
{
// Obsolete; use UDateFormatField instead
kEraField = UDAT_ERA_FIELD,
kYearField = UDAT_YEAR_FIELD,
kMonthField = UDAT_MONTH_FIELD,
kDateField = UDAT_DATE_FIELD,
kHourOfDay1Field = UDAT_HOUR_OF_DAY1_FIELD,
kHourOfDay0Field = UDAT_HOUR_OF_DAY0_FIELD,
kMinuteField = UDAT_MINUTE_FIELD,
kSecondField = UDAT_SECOND_FIELD,
kMillisecondField = UDAT_FRACTIONAL_SECOND_FIELD,
kDayOfWeekField = UDAT_DAY_OF_WEEK_FIELD,
kDayOfYearField = UDAT_DAY_OF_YEAR_FIELD,
kDayOfWeekInMonthField = UDAT_DAY_OF_WEEK_IN_MONTH_FIELD,
kWeekOfYearField = UDAT_WEEK_OF_YEAR_FIELD,
kWeekOfMonthField = UDAT_WEEK_OF_MONTH_FIELD,
kAmPmField = UDAT_AM_PM_FIELD,
kHour1Field = UDAT_HOUR1_FIELD,
kHour0Field = UDAT_HOUR0_FIELD,
kTimezoneField = UDAT_TIMEZONE_FIELD,
kYearWOYField = UDAT_YEAR_WOY_FIELD,
kDOWLocalField = UDAT_DOW_LOCAL_FIELD,
kExtendedYearField = UDAT_EXTENDED_YEAR_FIELD,
kJulianDayField = UDAT_JULIAN_DAY_FIELD,
kMillisecondsInDayField = UDAT_MILLISECONDS_IN_DAY_FIELD,
// Obsolete; use UDateFormatField instead
ERA_FIELD = UDAT_ERA_FIELD,
YEAR_FIELD = UDAT_YEAR_FIELD,
MONTH_FIELD = UDAT_MONTH_FIELD,
DATE_FIELD = UDAT_DATE_FIELD,
HOUR_OF_DAY1_FIELD = UDAT_HOUR_OF_DAY1_FIELD,
HOUR_OF_DAY0_FIELD = UDAT_HOUR_OF_DAY0_FIELD,
MINUTE_FIELD = UDAT_MINUTE_FIELD,
SECOND_FIELD = UDAT_SECOND_FIELD,
MILLISECOND_FIELD = UDAT_FRACTIONAL_SECOND_FIELD,
DAY_OF_WEEK_FIELD = UDAT_DAY_OF_WEEK_FIELD,
DAY_OF_YEAR_FIELD = UDAT_DAY_OF_YEAR_FIELD,
DAY_OF_WEEK_IN_MONTH_FIELD = UDAT_DAY_OF_WEEK_IN_MONTH_FIELD,
WEEK_OF_YEAR_FIELD = UDAT_WEEK_OF_YEAR_FIELD,
WEEK_OF_MONTH_FIELD = UDAT_WEEK_OF_MONTH_FIELD,
AM_PM_FIELD = UDAT_AM_PM_FIELD,
HOUR1_FIELD = UDAT_HOUR1_FIELD,
HOUR0_FIELD = UDAT_HOUR0_FIELD,
TIMEZONE_FIELD = UDAT_TIMEZONE_FIELD
};
#endif /* U_HIDE_OBSOLETE_API */
};
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif /* U_SHOW_CPLUSPLUS_API */
#endif // _DATEFMT
//eof
calendar.h
C++ API: Calendar object.
icu::Calendar
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
Definition calendar.h:189
icu::DateFormat::format
virtual U_I18N_API UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const override
Format an object to produce a string.
icu::DateFormat::createDateInstance
static U_I18N_API DateFormat * createDateInstance(EStyle style=kDefault, const Locale &aLocale=Locale::getDefault())
Creates a date formatter with the given formatting style for the given const locale.
icu::DateFormat::format
U_I18N_API UnicodeString & format(UDate date, UnicodeString &appendTo) const
Formats a UDate into a date/time string.
icu::DateFormat::setCalendar
virtual U_I18N_API void setCalendar(const Calendar &newCalendar)
Set the calendar to be used by this date format.
icu::DateFormat::DateFormat
U_I18N_API DateFormat()
Default constructor.
icu::DateFormat::getAvailableLocales
static U_I18N_API const Locale * getAvailableLocales(int32_t &count)
Gets the set of locales for which DateFormats are installed.
icu::DateFormat::parse
virtual U_I18N_API UDate parse(const UnicodeString &text, UErrorCode &status) const
Parse a date/time string.
icu::DateFormat::getNumberFormat
virtual U_I18N_API const NumberFormat * getNumberFormat() const
Gets the number formatter which this date/time formatter uses to format and parse the numeric portion...
icu::DateFormat::getBooleanAttribute
virtual U_I18N_API UBool getBooleanAttribute(UDateFormatBooleanAttribute attr, UErrorCode &status) const
Returns a boolean from this DateFormat May return U_UNSUPPORTED_ERROR if this instance does not suppo...
icu::DateFormat::format
U_I18N_API UnicodeString & format(UDate date, UnicodeString &appendTo, FieldPosition &fieldPosition) const
Formats a UDate into a date/time string.
icu::DateFormat::getTimeZone
virtual U_I18N_API const TimeZone & getTimeZone() const
Returns a reference to the TimeZone used by this DateFormat's calendar.
icu::DateFormat::setTimeZone
virtual U_I18N_API void setTimeZone(const TimeZone &zone)
Sets the time zone for the calendar of this DateFormat object.
icu::DateFormat::fCalendar
Calendar * fCalendar
The calendar that DateFormat uses to produce the time field values needed to implement date/time form...
Definition datefmt.h:851
icu::DateFormat::format
virtual U_I18N_API UnicodeString & format(Calendar &cal, UnicodeString &appendTo, FieldPosition &fieldPosition) const =0
Formats a date into a date/time string.
icu::DateFormat::fNumberFormat
NumberFormat * fNumberFormat
The number formatter that DateFormat uses to format numbers in dates and times.
Definition datefmt.h:859
icu::DateFormat::format
virtual U_I18N_API UnicodeString & format(Calendar &cal, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const
Formats a date into a date/time string.
icu::DateFormat::clone
virtual U_I18N_API DateFormat * clone() const override=0
Clones this object polymorphically.
icu::DateFormat::createInstanceForSkeleton
static U_I18N_API DateFormat * createInstanceForSkeleton(const UnicodeString &skeleton, UErrorCode &status)
Creates a date/time formatter for the given skeleton and default locale.
icu::DateFormat::operator=
U_I18N_API DateFormat & operator=(const DateFormat &)
Default assignment operator.
icu::DateFormat::format
U_I18N_API UnicodeString & format(UDate date, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const
Formats a UDate into a date/time string.
icu::DateFormat::adoptTimeZone
virtual U_I18N_API void adoptTimeZone(TimeZone *zoneToAdopt)
Sets the time zone for the calendar of this DateFormat object.
icu::DateFormat::createDateTimeInstance
static U_I18N_API DateFormat * createDateTimeInstance(EStyle dateStyle=kDefault, EStyle timeStyle=kDefault, const Locale &aLocale=Locale::getDefault())
Creates a date/time formatter with the given formatting styles for the given locale.
icu::DateFormat::setCalendarLenient
virtual U_I18N_API void setCalendarLenient(UBool lenient)
Specifies whether encapsulated Calendar date/time parsing is to be lenient.
icu::DateFormat::~DateFormat
virtual U_I18N_API ~DateFormat()
Destructor.
icu::DateFormat::createInstance
static U_I18N_API DateFormat * createInstance()
Create a default date/time formatter that uses the SHORT style for both the date and the time.
icu::DateFormat::setBooleanAttribute
virtual U_I18N_API DateFormat & setBooleanAttribute(UDateFormatBooleanAttribute attr, UBool newvalue, UErrorCode &status)
Sets an boolean attribute on this DateFormat.
icu::DateFormat::adoptCalendar
virtual U_I18N_API void adoptCalendar(Calendar *calendarToAdopt)
Set the calendar to be used by this date format.
icu::DateFormat::getCalendar
virtual U_I18N_API const Calendar * getCalendar() const
Gets the calendar associated with this date/time formatter.
icu::DateFormat::createInstanceForSkeleton
static U_I18N_API DateFormat * createInstanceForSkeleton(Calendar *calendarToAdopt, const UnicodeString &skeleton, const Locale &locale, UErrorCode &status)
Creates a date/time formatter for the given skeleton and locale.
icu::DateFormat::format
virtual U_I18N_API UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const override
Format an object to produce a string.
icu::DateFormat::parse
virtual U_I18N_API void parse(const UnicodeString &text, Calendar &cal, ParsePosition &pos) const =0
Parse a date/time string beginning at the given parse position.
icu::DateFormat::createInstanceForSkeleton
static U_I18N_API DateFormat * createInstanceForSkeleton(const UnicodeString &skeleton, const Locale &locale, UErrorCode &status)
Creates a date/time formatter for the given skeleton and locale.
icu::DateFormat::getContext
virtual U_I18N_API UDisplayContext getContext(UDisplayContextType type, UErrorCode &status) const
Get the formatter's UDisplayContext value for the specified UDisplayContextType, such as UDISPCTX_TYP...
icu::DateFormat::isLenient
virtual U_I18N_API UBool isLenient() const
Returns whether both date/time parsing in the encapsulated Calendar object and DateFormat whitespace ...
icu::DateFormat::operator==
virtual U_I18N_API bool operator==(const Format &) const override
Equality operator.
icu::DateFormat::DateFormat
U_I18N_API DateFormat(const DateFormat &)
Copy constructor.
icu::DateFormat::adoptNumberFormat
virtual U_I18N_API void adoptNumberFormat(NumberFormat *formatToAdopt)
Allows you to set the number formatter.
icu::DateFormat::EStyle
EStyle
Constants for various style patterns.
Definition datefmt.h:155
icu::DateFormat::FULL
@ FULL
These constants are provided for backwards compatibility only.
Definition datefmt.h:198
icu::DateFormat::parse
U_I18N_API UDate parse(const UnicodeString &text, ParsePosition &pos) const
Parse a date/time string beginning at the given parse position.
icu::DateFormat::isCalendarLenient
virtual U_I18N_API UBool isCalendarLenient() const
Returns whether date/time parsing in the encapsulated Calendar object processing is lenient.
icu::DateFormat::EField
EField
Field selector for FieldPosition for DateFormat fields.
Definition datefmt.h:892
icu::DateFormat::setLenient
virtual U_I18N_API void setLenient(UBool lenient)
Specifies whether date/time parsing is to be lenient.
icu::DateFormat::setNumberFormat
virtual U_I18N_API void setNumberFormat(const NumberFormat &newNumberFormat)
Allows you to set the number formatter.
icu::DateFormat::getBestPattern
static U_I18N_API UnicodeString getBestPattern(const Locale &locale, const UnicodeString &skeleton, UErrorCode &status)
Returns the best pattern given a skeleton and locale.
icu::DateFormat::parseObject
virtual U_I18N_API void parseObject(const UnicodeString &source, Formattable &result, ParsePosition &parse_pos) const override
Parse a string to produce an object.
icu::DateFormat::createTimeInstance
static U_I18N_API DateFormat * createTimeInstance(EStyle style=kDefault, const Locale &aLocale=Locale::getDefault())
Creates a time formatter with the given formatting style for the given locale.
icu::DateFormat::setContext
virtual U_I18N_API void setContext(UDisplayContext value, UErrorCode &status)
Set a particular UDisplayContext value in the formatter, such as UDISPCTX_CAPITALIZATION_FOR_STANDALO...
icu::FieldPositionIterator
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
Definition fpositer.h:58
icu::FieldPosition
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Definition fieldpos.h:110
icu::Format::Format
U_I18N_API Format()
Default constructor for subclass use only.
icu::Format::format
U_I18N_API UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const
Formats an object to produce a string.
icu::Formattable
Formattable objects can be passed to the Format class or its subclasses for formatting.
Definition fmtable.h:63
icu::Locale
A Locale object represents a specific geographical, political, or cultural region.
Definition locid.h:198
icu::Locale::getDefault
static U_COMMON_API const Locale & getDefault()
Common methods of getting the current default Locale.
icu::NumberFormat
Definition numfmt.h:175
icu::ParsePosition
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Definition parsepos.h:52
icu::TimeZone
TimeZone represents a time zone offset, and also figures out daylight savings.
Definition timezone.h:133
icu::UnicodeString
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition unistr.h:303
enumset.h
C++: internal template EnumSet<>.
format.h
C++ API: Base class for all formats.
locid.h
C++ API: Locale ID object.
numfmt.h
C++ API: Compatibility APIs for number formatting.
udat.h
C API: DateFormat.
UDAT_AM_PM_FIELD
@ UDAT_AM_PM_FIELD
FieldPosition and UFieldPosition selector for 'a' field alignment, corresponding to the UCAL_AM_PM fi...
Definition udat.h:631
UDAT_TIMEZONE_FIELD
@ UDAT_TIMEZONE_FIELD
FieldPosition and UFieldPosition selector for 'z' field alignment, corresponding to the UCAL_ZONE_OFF...
Definition udat.h:657
UDAT_DOW_LOCAL_FIELD
@ UDAT_DOW_LOCAL_FIELD
FieldPosition and UFieldPosition selector for 'e' field alignment, corresponding to the UCAL_DOW_LOCA...
Definition udat.h:671
UDAT_DATE_FIELD
@ UDAT_DATE_FIELD
FieldPosition and UFieldPosition selector for 'd' field alignment, corresponding to the UCAL_DATE fie...
Definition udat.h:542
UDAT_MONTH_FIELD
@ UDAT_MONTH_FIELD
FieldPosition and UFieldPosition selector for 'M' field alignment, corresponding to the UCAL_MONTH fi...
Definition udat.h:535
UDAT_JULIAN_DAY_FIELD
@ UDAT_JULIAN_DAY_FIELD
FieldPosition and UFieldPosition selector for 'g' field alignment, corresponding to the UCAL_JULIAN_D...
Definition udat.h:685
UDAT_EXTENDED_YEAR_FIELD
@ UDAT_EXTENDED_YEAR_FIELD
FieldPosition and UFieldPosition selector for 'u' field alignment, corresponding to the UCAL_EXTENDED...
Definition udat.h:678
UDAT_DAY_OF_WEEK_FIELD
@ UDAT_DAY_OF_WEEK_FIELD
FieldPosition and UFieldPosition selector for 'E' field alignment, corresponding to the UCAL_DAY_OF_W...
Definition udat.h:596
UDAT_MILLISECONDS_IN_DAY_FIELD
@ UDAT_MILLISECONDS_IN_DAY_FIELD
FieldPosition and UFieldPosition selector for 'A' field alignment, corresponding to the UCAL_MILLISEC...
Definition udat.h:692
UDAT_YEAR_FIELD
@ UDAT_YEAR_FIELD
FieldPosition and UFieldPosition selector for 'y' field alignment, corresponding to the UCAL_YEAR fie...
Definition udat.h:528
UDAT_ERA_FIELD
@ UDAT_ERA_FIELD
FieldPosition and UFieldPosition selector for 'G' field alignment, corresponding to the UCAL_ERA fiel...
Definition udat.h:521
UDAT_DAY_OF_YEAR_FIELD
@ UDAT_DAY_OF_YEAR_FIELD
FieldPosition and UFieldPosition selector for 'D' field alignment, corresponding to the UCAL_DAY_OF_Y...
Definition udat.h:603
UDAT_WEEK_OF_MONTH_FIELD
@ UDAT_WEEK_OF_MONTH_FIELD
FieldPosition and UFieldPosition selector for 'W' field alignment, corresponding to the UCAL_WEEK_OF_...
Definition udat.h:624
UDAT_FRACTIONAL_SECOND_FIELD
@ UDAT_FRACTIONAL_SECOND_FIELD
FieldPosition and UFieldPosition selector for 'S' field alignment, corresponding to the UCAL_MILLISEC...
Definition udat.h:589
UDAT_DAY_OF_WEEK_IN_MONTH_FIELD
@ UDAT_DAY_OF_WEEK_IN_MONTH_FIELD
FieldPosition and UFieldPosition selector for 'F' field alignment, corresponding to the UCAL_DAY_OF_W...
Definition udat.h:610
UDAT_SECOND_FIELD
@ UDAT_SECOND_FIELD
FieldPosition and UFieldPosition selector for 's' field alignment, corresponding to the UCAL_SECOND f...
Definition udat.h:574
UDAT_HOUR1_FIELD
@ UDAT_HOUR1_FIELD
FieldPosition and UFieldPosition selector for 'h' field alignment, corresponding to the UCAL_HOUR fie...
Definition udat.h:640
UDAT_MINUTE_FIELD
@ UDAT_MINUTE_FIELD
FieldPosition and UFieldPosition selector for 'm' field alignment, corresponding to the UCAL_MINUTE f...
Definition udat.h:567
UDAT_HOUR0_FIELD
@ UDAT_HOUR0_FIELD
FieldPosition and UFieldPosition selector for 'K' field alignment, corresponding to the UCAL_HOUR fie...
Definition udat.h:649
UDAT_YEAR_WOY_FIELD
@ UDAT_YEAR_WOY_FIELD
FieldPosition and UFieldPosition selector for 'Y' field alignment, corresponding to the UCAL_YEAR_WOY...
Definition udat.h:664
UDAT_WEEK_OF_YEAR_FIELD
@ UDAT_WEEK_OF_YEAR_FIELD
FieldPosition and UFieldPosition selector for 'w' field alignment, corresponding to the UCAL_WEEK_OF_...
Definition udat.h:617
UDAT_HOUR_OF_DAY0_FIELD
@ UDAT_HOUR_OF_DAY0_FIELD
FieldPosition and UFieldPosition selector for 'H' field alignment, corresponding to the UCAL_HOUR_OF_...
Definition udat.h:560
UDAT_HOUR_OF_DAY1_FIELD
@ UDAT_HOUR_OF_DAY1_FIELD
FieldPosition and UFieldPosition selector for 'k' field alignment, corresponding to the UCAL_HOUR_OF_...
Definition udat.h:551
UDateFormatBooleanAttribute
UDateFormatBooleanAttribute
DateFormat boolean attributes.
Definition udat.h:917
udisplaycontext.h
C API: Display context types (enum values).
UDisplayContextType
UDisplayContextType
Display context types, for getting values of a particular setting.
Definition udisplaycontext.h:27
UDisplayContext
UDisplayContext
Display context settings.
Definition udisplaycontext.h:64
UBool
int8_t UBool
The ICU boolean type, a signed-byte integer.
Definition umachine.h:269
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition utypes.h:509
U_I18N_API_CLASS
#define U_I18N_API_CLASS
Set to export library symbols from inside the i18n library, and to import them from outside,...
Definition utypes.h:457
U_I18N_API
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
Definition utypes.h:316
UDate
double UDate
Date and Time data type.
Definition utypes.h:218