24 #if !UCONFIG_NO_FORMATTING
157 kDateOffset = kShort + 1,
166 kDateTimeOffset = kDateTime + 1,
173 kRelative = (1 << 7),
175 kFullRelative = (kFull | kRelative),
177 kLongRelative = kLong | kRelative,
179 kMediumRelative = kMedium | kRelative,
181 kShortRelative = kShort | kRelative,
197 DATE_OFFSET = kDateOffset,
199 DATE_TIME = kDateTime
473 EStyle timeStyle = kDefault,
489 virtual UBool isLenient(
void)
const;
501 virtual void setLenient(
UBool lenient);
508 virtual const Calendar* getCalendar(
void)
const;
519 virtual void adoptCalendar(
Calendar* calendarToAdopt);
528 virtual void setCalendar(
const Calendar& newCalendar);
537 virtual const NumberFormat* getNumberFormat(
void)
const;
545 virtual void adoptNumberFormat(
NumberFormat* formatToAdopt);
552 virtual void setNumberFormat(
const NumberFormat& newNumberFormat);
559 virtual const TimeZone& getTimeZone(
void)
const;
567 virtual void adoptTimeZone(
TimeZone* zoneToAdopt);
574 virtual void setTimeZone(
const TimeZone& zone);
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...
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
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_...
double UDate
Date and Time data type.
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...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
FieldPosition and UFieldPosition selector for 'F' field alignment, corresponding to the UCAL_DAY_OF_W...
FieldPosition and UFieldPosition selector for 'A' field alignment, corresponding to the UCAL_MILLISEC...
C++ API: Calendar object.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
FieldPosition and UFieldPosition selector for 'W' field alignment, corresponding to the UCAL_WEEK_OF_...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
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...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
static const Locale & getDefault(void)
Common methods of getting the current default Locale.
FieldPosition and UFieldPosition selector for 'G' field alignment, corresponding to the UCAL_ERA fiel...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
TimeZone represents a time zone offset, and also figures out daylight savings.
FieldPosition and UFieldPosition selector for 'm' field alignment, corresponding to the UCAL_MINUTE f...
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...
C++ API: Abstract base class for all number formats.
FieldPosition and UFieldPosition selector for 'H' field alignment, corresponding to the UCAL_HOUR_OF_...
A Locale object represents a specific geographical, political, or cultural region.
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...
signed int int32_t
Define 64 bit limits.
This class provides flexible generation of date format patterns, like "yy-MM-dd". ...
int8_t UBool
The ICU boolean type.