Go to the documentation of this file.
34 #if !UCONFIG_NO_FORMATTING
43 class DateFormatSymbols;
46 class FieldPositionHandler;
48 class SharedNumberFormat;
49 class SimpleDateFormatMutableNFs;
1033 virtual void applyLocalizedPattern(
const UnicodeString& pattern,
1072 static UClassID U_EXPORT2 getStaticClassID(
void);
1106 virtual void adoptTimeZoneFormat(
TimeZoneFormat* timeZoneFormatToAdopt);
1113 virtual void setTimeZoneFormat(
const TimeZoneFormat& newTimeZoneFormat);
1167 #ifndef U_HIDE_INTERNAL_API
1203 const Locale& getSmpFmtLocale(
void)
const;
1209 void initializeDefaultCentury(
void);
1211 void initializeBooleanAttributes(
void);
1261 FieldPositionHandler& handler,
1263 SimpleDateFormatMutableNFs &mutableNFs,
1279 void zeroPaddingNumber(
NumberFormat *currentNumberFormat,
1283 int32_t maxDigits)
const;
1289 static UBool isNumeric(
UChar formatChar, int32_t count);
1299 static UBool isAfterNonNumericField(
const UnicodeString &pattern, int32_t patternOffset);
1364 int32_t matchDayPeriodStrings(
const UnicodeString& text, int32_t start,
1366 int32_t &dayPeriod)
const;
1385 UBool whitespaceLenient,
UBool partialMatchLenient,
UBool oldLeniency);
1410 int32_t *dayPeriod=
NULL)
const;
1415 UBool allowNegative,
1422 UBool allowNegative,
1425 int32_t checkIntSuffix(
const UnicodeString& text, int32_t start,
1426 int32_t patLoc,
UBool isNegative)
const;
1440 static void translatePattern(
const UnicodeString& originalPattern,
1472 int32_t skipPatternWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1478 int32_t skipUWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1513 static const int32_t fgCalendarFieldToLevel[];
1518 static int32_t getLevelFromChar(
UChar ch);
1565 UDate fDefaultCenturyStart;
1573 void parsePattern();
1578 int32_t fDefaultCenturyStartYear;
1580 struct NSOverride :
public UMemory {
1581 const SharedNumberFormat *snf;
1585 NSOverride() : snf(
NULL), hash(0), next(
NULL) {
1594 const SharedNumberFormat **fSharedNumberFormatters;
1596 UBool fHaveDefaultCentury;
1604 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.