34 #if !UCONFIG_NO_FORMATTING
43 class FieldPositionHandler;
666 virtual void applyLocalizedPattern(
const UnicodeString& pattern,
768 const Locale& getSmpFmtLocale(
void)
const;
774 void initializeDefaultCentury(
void);
821 FieldPositionHandler& handler,
838 void zeroPaddingNumber(
NumberFormat *currentNumberFormat,
842 int32_t maxDigits)
const;
848 static UBool isNumeric(
UChar formatChar, int32_t count);
951 int32_t patLoc)
const;
966 int32_t checkIntSuffix(
const UnicodeString& text, int32_t start,
967 int32_t patLoc,
UBool isNegative)
const;
981 static void translatePattern(
const UnicodeString& originalPattern,
1013 int32_t skipPatternWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1019 int32_t skipUWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1028 UBool isDefaultGMTFormat()
const;
1030 void formatRFC822TZ(
UnicodeString &appendTo, int32_t offset)
const;
1065 TimeZoneFormat *tzFormat()
const;
1073 static const int32_t fgCalendarFieldToLevel[];
1074 static const int32_t fgPatternCharToLevel[];
1106 TimeZoneFormat* fTimeZoneFormat;
1116 UDate fDefaultCenturyStart;
1121 int32_t fDefaultCenturyStartYear;
1129 ParsedTZType tztype;
1131 typedef struct NSOverride {
1141 kGMTNegativeHMS = 0,
1149 kGMTNegativeHMSMinLenIdx = 0,
1150 kGMTPositiveHMSMinLenIdx,
1152 kNumGMTFormatMinLengths
1163 int32_t fGMTFormatHmsMinLen[kNumGMTFormatMinLengths];
1167 NSOverride *fOverrideList;
1169 UBool fHaveDefaultCentury;
1175 return fDefaultCenturyStart;
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.
#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.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
#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...
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
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.
C++ API: Abstract class for converting dates.
Basic definitions for ICU, for both C and C++ APIs.
A Locale object represents a specific geographical, political, or cultural region.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
int8_t UBool
The ICU boolean type.