34 #if !UCONFIG_NO_FORMATTING
37 #include "unicode/udisplaycontext.h"
41 class DateFormatSymbols;
44 class FieldPositionHandler;
713 virtual void applyLocalizedPattern(
const UnicodeString& pattern,
752 static UClassID U_EXPORT2 getStaticClassID(
void);
788 virtual void setContext(UDisplayContext value,
UErrorCode& status);
801 virtual UDisplayContext getContext(UDisplayContextType type,
UErrorCode& status)
const;
811 virtual void adoptTimeZoneFormat(
TimeZoneFormat* timeZoneFormatToAdopt);
818 virtual void setTimeZoneFormat(
const TimeZoneFormat& newTimeZoneFormat);
827 #ifndef U_HIDE_INTERNAL_API
863 const Locale& getSmpFmtLocale(
void)
const;
869 void initializeDefaultCentury(
void);
917 UDisplayContext capitalizationContext,
919 FieldPositionHandler& handler,
936 void zeroPaddingNumber(
NumberFormat *currentNumberFormat,
940 int32_t maxDigits)
const;
946 static UBool isNumeric(
UChar formatChar, int32_t count);
956 static UBool isAfterNonNumericField(
const UnicodeString &pattern, int32_t patternOffset);
1062 int32_t patLoc,
MessageFormat * numericLeapMonthFormatter)
const;
1067 UBool allowNegative,
1074 UBool allowNegative,
1077 int32_t checkIntSuffix(
const UnicodeString& text, int32_t start,
1078 int32_t patLoc,
UBool isNegative)
const;
1092 static void translatePattern(
const UnicodeString& originalPattern,
1124 int32_t skipPatternWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1130 int32_t skipUWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1168 static const int32_t fgCalendarFieldToLevel[];
1169 static const int32_t fgPatternCharToLevel[];
1211 UDate fDefaultCenturyStart;
1216 int32_t fDefaultCenturyStartYear;
1220 typedef struct NSOverride {
1228 NSOverride *fOverrideList;
1230 UBool fHaveDefaultCentury;
1232 UDisplayContext fCapitalizationContext;
1238 return fDefaultCenturyStart;
1247 return DateFormat::format(obj, appendTo, status);
1258 return DateFormat::format(obj, appendTo, pos, status);
1269 return DateFormat::format(obj, appendTo, posIter, status);
1278 return DateFormat::format(date, appendTo, fieldPosition);
1288 return DateFormat::format(date, appendTo, posIter, status);
1293 return DateFormat::format(date, appendTo);
UCalendarDateFields
Possible fields in a UCalendar.
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
double UDate
Date and Time data type.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
TimeZone represents a time zone offset, and also figures out daylight savings.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
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_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat...
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...
C++ API: Abstract class for converting dates.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.