Go to the documentation of this file.
36 #if !UCONFIG_NO_FORMATTING
45 class DateFormatSymbols;
48 class FieldPositionHandler;
50 class SharedNumberFormat;
51 class SimpleDateFormatMutableNFs;
54 class LocalizedNumberFormatter;
1045 virtual void applyLocalizedPattern(
const UnicodeString& pattern,
1084 static UClassID U_EXPORT2 getStaticClassID(
void);
1118 virtual void adoptTimeZoneFormat(
TimeZoneFormat* timeZoneFormatToAdopt);
1125 virtual void setTimeZoneFormat(
const TimeZoneFormat& newTimeZoneFormat);
1177 const NumberFormat * getNumberFormatForField(char16_t field)
const;
1179 #ifndef U_HIDE_INTERNAL_API
1215 const Locale& getSmpFmtLocale(
void)
const;
1221 void initializeDefaultCentury(
void);
1223 void initializeBooleanAttributes(
void);
1273 FieldPositionHandler& handler,
1290 void zeroPaddingNumber(
const NumberFormat *currentNumberFormat,
1294 int32_t maxDigits)
const;
1300 static UBool isNumeric(char16_t formatChar, int32_t count);
1310 static UBool isAfterNonNumericField(
const UnicodeString &pattern, int32_t patternOffset);
1375 int32_t matchDayPeriodStrings(
const UnicodeString& text, int32_t start,
1377 int32_t &dayPeriod)
const;
1396 UBool whitespaceLenient,
UBool partialMatchLenient,
UBool oldLeniency);
1418 int32_t subParse(
const UnicodeString& text, int32_t& start, char16_t ch, int32_t count,
1421 int32_t *dayPeriod=
NULL)
const;
1426 UBool allowNegative,
1433 UBool allowNegative,
1436 int32_t checkIntSuffix(
const UnicodeString& text, int32_t start,
1437 int32_t patLoc,
UBool isNegative)
const;
1447 int32_t countDigits(
const UnicodeString& text, int32_t start, int32_t end)
const;
1461 static void translatePattern(
const UnicodeString& originalPattern,
1493 int32_t skipPatternWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1499 int32_t skipUWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1504 void initFastNumberFormatters(
UErrorCode& status);
1509 void freeFastNumberFormatters();
1544 static const int32_t fgCalendarFieldToLevel[];
1549 static int32_t getLevelFromChar(char16_t ch);
1554 static UBool isSyntaxChar(char16_t ch);
1596 UDate fDefaultCenturyStart;
1604 void parsePattern();
1609 int32_t fDefaultCenturyStartYear;
1611 struct NSOverride :
public UMemory {
1612 const SharedNumberFormat *snf;
1616 NSOverride() : snf(
NULL), hash(0), next(
NULL) {
1625 const SharedNumberFormat **fSharedNumberFormatters;
1627 enum NumberFormatterKey {
1641 UBool fHaveDefaultCentury;
1649 return fDefaultCenturyStart;
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
The BreakIterator class implements methods for finding the location of boundaries in text.
Basic definitions for ICU, for both C and C++ APIs.
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
int8_t UBool
The ICU boolean type.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
TimeZone represents a time zone offset, and also figures out daylight savings.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UTimeZoneFormatTimeType
Constants for time types used by TimeZoneFormat APIs for receiving time type (standard time,...
UMemory is the common ICU base class.
C++ API: Abstract class for converting dates.
double UDate
Date and Time data type.
UDisplayContext
Display context settings.
UCalendarDateFields
Possible fields in a UCalendar.
C API: Display context types (enum values)
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
#define U_NAMESPACE_BEGIN
A Locale object represents a specific geographical, political, or cultural region.