31 #if U_SHOW_CPLUSPLUS_API 38 #if !UCONFIG_NO_FORMATTING 47 class DateFormatSymbols;
50 class FieldPositionHandler;
52 class SharedNumberFormat;
53 class SimpleDateFormatMutableNFs;
54 class DateIntervalFormat;
57 class LocalizedNumberFormatter;
58 class SimpleNumberFormatter;
1049 virtual void applyLocalizedPattern(
const UnicodeString& pattern,
1088 static UClassID U_EXPORT2 getStaticClassID(
void);
1122 virtual void adoptTimeZoneFormat(
TimeZoneFormat* timeZoneFormatToAdopt);
1129 virtual void setTimeZoneFormat(
const TimeZoneFormat& newTimeZoneFormat);
1181 const NumberFormat * getNumberFormatForField(char16_t field)
const;
1183 #ifndef U_HIDE_INTERNAL_API 1219 const Locale& getSmpFmtLocale(
void)
const;
1226 void initializeDefaultCentury(
void);
1228 void initializeBooleanAttributes(
void);
1278 char16_t fieldToOutput,
1279 FieldPositionHandler& handler,
1296 void zeroPaddingNumber(
const NumberFormat *currentNumberFormat,
1300 int32_t maxDigits)
const;
1306 static UBool isNumeric(char16_t formatChar, int32_t count);
1316 static UBool isAfterNonNumericField(
const UnicodeString &pattern, int32_t patternOffset);
1375 int32_t matchAlphaMonthStrings(
const UnicodeString& text, int32_t start,
1377 int32_t stringArrayCount,
Calendar& cal)
const;
1397 int32_t matchDayPeriodStrings(
const UnicodeString& text, int32_t start,
1399 int32_t &dayPeriod)
const;
1418 UBool whitespaceLenient,
UBool partialMatchLenient,
UBool oldLeniency);
1440 int32_t subParse(
const UnicodeString& text, int32_t& start, char16_t ch, int32_t count,
1443 int32_t *dayPeriod=
nullptr)
const;
1448 UBool allowNegative,
1455 UBool allowNegative,
1458 int32_t checkIntSuffix(
const UnicodeString& text, int32_t start,
1459 int32_t patLoc,
UBool isNegative)
const;
1469 int32_t countDigits(
const UnicodeString& text, int32_t start, int32_t end)
const;
1483 static void translatePattern(
const UnicodeString& originalPattern,
1515 int32_t skipPatternWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1521 int32_t skipUWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1526 void initSimpleNumberFormatter(
UErrorCode &status);
1561 static const int32_t fgCalendarFieldToLevel[];
1566 static int32_t getLevelFromChar(char16_t ch);
1571 static UBool isSyntaxChar(char16_t ch);
1613 UDate fDefaultCenturyStart;
1617 UBool fHasHanYearChar;
1622 void parsePattern();
1627 int32_t fDefaultCenturyStartYear;
1629 struct NSOverride :
public UMemory {
1630 const SharedNumberFormat *snf;
1634 NSOverride() : snf(
nullptr), hash(0), next(
nullptr) {
1643 const SharedNumberFormat **fSharedNumberFormatters =
nullptr;
1654 UBool fHaveDefaultCentury;
1662 return fDefaultCenturyStart;
UCalendarDateFields
Possible fields in a UCalendar.
UTimeZoneFormatTimeType
Constants for time types used by TimeZoneFormat APIs for receiving time type (standard time...
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
UDisplayContext
Display context settings.
double UDate
Date and Time data type.
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.
C API: Display context types (enum values)
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
The BreakIterator class implements methods for finding the location of boundaries in text...
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat...
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
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...
UMemory is the common ICU base class.
int8_t UBool
The ICU boolean type, a signed-byte integer.
A Locale object represents a specific geographical, political, or cultural region.