26 #if U_SHOW_CPLUSPLUS_API 28 #if !UCONFIG_NO_FORMATTING 46 class DateTimePatternGenerator;
53 #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN && !defined(U_IN_DOXYGEN) 175 kDateOffset = kShort + 1,
184 kDateTimeOffset = kDateTime + 1,
191 kRelative = (1 << 7),
193 kFullRelative = (kFull | kRelative),
195 kLongRelative = kLong | kRelative,
197 kMediumRelative = kMedium | kRelative,
199 kShortRelative = kShort | kRelative,
215 DATE_OFFSET = kDateOffset,
217 DATE_TIME = kDateTime
535 static DateFormat* U_EXPORT2 createInstance(
void);
549 const Locale& aLocale = Locale::getDefault());
567 const Locale& aLocale = Locale::getDefault());
587 static DateFormat* U_EXPORT2 createDateTimeInstance(
EStyle dateStyle = kDefault,
588 EStyle timeStyle = kDefault,
589 const Locale& aLocale = Locale::getDefault());
591 #ifndef U_HIDE_INTERNAL_API 619 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
636 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
655 static DateFormat* U_EXPORT2 createInstanceForSkeleton(
669 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
676 virtual UBool isLenient(
void)
const;
698 virtual void setLenient(
UBool lenient);
705 virtual UBool isCalendarLenient(
void)
const;
717 virtual void setCalendarLenient(
UBool lenient);
728 virtual const Calendar* getCalendar(
void)
const;
739 virtual void adoptCalendar(
Calendar* calendarToAdopt);
748 virtual void setCalendar(
const Calendar& newCalendar);
757 virtual const NumberFormat* getNumberFormat(
void)
const;
765 virtual void adoptNumberFormat(
NumberFormat* formatToAdopt);
772 virtual void setNumberFormat(
const NumberFormat& newNumberFormat);
779 virtual const TimeZone& getTimeZone(
void)
const;
787 virtual void adoptTimeZone(
TimeZone* zoneToAdopt);
794 virtual void setTimeZone(
const TimeZone& zone);
899 EnumSet<UDateFormatBooleanAttribute, 0, UDAT_BOOLEAN_ATTRIBUTE_COUNT> fBoolFlags;
903 friend class DateFmtKeyByStyle;
906 #ifndef U_HIDE_OBSOLETE_API FieldPosition and UFieldPosition selector for 'w' field alignment, corresponding to the UCAL_WEEK_OF_...
FieldPosition and UFieldPosition selector for 'e' field alignment, corresponding to the UCAL_DOW_LOCA...
FieldPosition and UFieldPosition selector for 'M' field alignment, corresponding to the UCAL_MONTH fi...
FieldPosition and UFieldPosition selector for 'k' field alignment, corresponding to the UCAL_HOUR_OF_...
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
UDisplayContext
Display context settings.
double UDate
Date and Time data type.
TimeZone represents a time zone offset, and also figures out daylight savings.
One more than the highest normal UDateFormatBooleanAttribute value.
C API: Display context types (enum values)
FieldPosition and UFieldPosition selector for 'g' field alignment, corresponding to the UCAL_JULIAN_D...
FieldPosition and UFieldPosition selector for 'D' field alignment, corresponding to the UCAL_DAY_OF_Y...
FieldPosition and UFieldPosition selector for 'u' field alignment, corresponding to the UCAL_EXTENDED...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
FieldPosition and UFieldPosition selector for 'd' field alignment, corresponding to the UCAL_DATE fie...
FieldPosition and UFieldPosition selector for 'Y' field alignment, corresponding to the UCAL_YEAR_WOY...
FieldPosition and UFieldPosition selector for 'F' field alignment, corresponding to the UCAL_DAY_OF_W...
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
FieldPosition and UFieldPosition selector for 'A' field alignment, corresponding to the UCAL_MILLISEC...
C++ API: Calendar object.
FieldPosition and UFieldPosition selector for 'W' field alignment, corresponding to the UCAL_WEEK_OF_...
FieldPosition and UFieldPosition selector for 'E' field alignment, corresponding to the UCAL_DAY_OF_W...
FieldPosition and UFieldPosition selector for 'a' field alignment, corresponding to the UCAL_AM_PM fi...
FieldPosition and UFieldPosition selector for 'K' field alignment, corresponding to the UCAL_HOUR fie...
UDisplayContextType
Display context types, for getting values of a particular setting.
FieldPosition and UFieldPosition selector for 'G' field alignment, corresponding to the UCAL_ERA fiel...
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
FieldPosition and UFieldPosition selector for 'm' field alignment, corresponding to the UCAL_MINUTE f...
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...
C++ API: Locale ID object.
FieldPosition and UFieldPosition selector for 's' field alignment, corresponding to the UCAL_SECOND f...
Basic definitions for ICU, for both C and C++ APIs.
FieldPosition and UFieldPosition selector for 'z' field alignment, corresponding to the UCAL_ZONE_OFF...
FieldPosition and UFieldPosition selector for 'y' field alignment, corresponding to the UCAL_YEAR fie...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++: internal template EnumSet<>
C++ API: Compatibility APIs for number formatting.
FieldPosition and UFieldPosition selector for 'H' field alignment, corresponding to the UCAL_HOUR_OF_...
UDateFormatBooleanAttribute
DateFormat boolean attributes.
FieldPosition and UFieldPosition selector for 'S' field alignment, corresponding to the UCAL_MILLISEC...
FieldPosition and UFieldPosition selector for 'h' field alignment, corresponding to the UCAL_HOUR fie...
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.