DateFormatSymbols;
50 classFieldPositionHandler;
52 classSharedNumberFormat;
53 classSimpleDateFormatMutableNFs;
54 classDateIntervalFormat;
57 classLocalizedNumberFormatter;
58 classSimpleNumberFormatter;
841 #ifndef U_HIDE_INTERNAL_API 884 voidinitializeDefaultCentury();
886 voidinitializeBooleanAttributes();
936char16_t fieldToOutput,
937FieldPositionHandler& handler,
954 voidzeroPaddingNumber(
const NumberFormat*currentNumberFormat,
958int32_t maxDigits)
const;
964 static UBoolisNumeric(char16_t formatChar, int32_t count);
974 static UBoolisAfterNonNumericField(
const UnicodeString&pattern, int32_t patternOffset);
1018 const UnicodeString* stringArray, int32_t stringArrayCount,
1033int32_t matchAlphaMonthStrings(
const UnicodeString& text, int32_t start,
1035int32_t stringArrayCount,
Calendar& cal)
const;
1055int32_t matchDayPeriodStrings(
const UnicodeString& text, int32_t start,
1056 const UnicodeString* stringArray, int32_t stringArrayCount,
1057int32_t &dayPeriod)
const;
1076 UBoolwhitespaceLenient,
UBoolpartialMatchLenient,
UBoololdLeniency);
1098int32_t subParse(
const UnicodeString& text, int32_t& start, char16_t ch, int32_t count,
1101int32_t *dayPeriod=
nullptr)
const;
1106 UBoolallowNegative,
1113 UBoolallowNegative,
1116int32_t checkIntSuffix(
const UnicodeString& text, int32_t start,
1117int32_t patLoc,
UBoolisNegative)
const;
1127int32_t countDigits(
const UnicodeString& text, int32_t start, int32_t end)
const;
1141 static voidtranslatePattern(
const UnicodeString& originalPattern,
1154 voidparseAmbiguousDatesAsAfter(
UDatestartDate,
UErrorCode& status);
1167int32_t pos)
const;
1173int32_t skipPatternWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1179int32_t skipUWhiteSpace(
const UnicodeString& text, int32_t pos)
const;
1184 voidinitSimpleNumberFormatter(
UErrorCode&status);
1219 static constint32_t fgCalendarFieldToLevel[];
1224 staticint32_t getLevelFromChar(char16_t ch);
1229 static UBoolisSyntaxChar(char16_t ch);
1271 UDatefDefaultCenturyStart;
1275 UBoolfHasHanYearChar;
1280 voidparsePattern();
1285int32_t fDefaultCenturyStartYear;
1287 structNSOverride :
public UMemory{
1288 constSharedNumberFormat *snf;
1292NSOverride() : snf(nullptr), hash(0), next(nullptr) {
1301 constSharedNumberFormat **fSharedNumberFormatters =
nullptr;
1310 constnumber::SimpleNumberFormatter* fSimpleNumberFormatter =
nullptr;
1312 UBoolfHaveDefaultCentury;
1314 constBreakIterator* fCapitalizationBrkIter =
nullptr;
1320 returnfDefaultCenturyStart;
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
DateFormatSymbols is a public class for encapsulating localizable date-time formatting data – includi...
DateFormat is an abstract class for a family of classes that convert dates and times from their inter...
virtual UDate parse(const UnicodeString &text, UErrorCode &status) const
Parse a date/time string.
EStyle
Constants for various style patterns.
UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const
Formats an object to produce a string.
DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent man...
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...
Base class for all formats.
Formattable objects can be passed to the Format class or its subclasses for formatting.
A Locale object represents a specific geographical, political, or cultural region.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manne...
virtual UnicodeString & format(Calendar &cal, UnicodeString &appendTo, FieldPosition &pos) const override
Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.
virtual bool operator==(const Format &other) const override
Return true if the given Format objects are semantically equal.
virtual void parse(const UnicodeString &text, Calendar &cal, ParsePosition &pos) const override
Parse a date/time string beginning at the given parse position.
virtual const TimeZoneFormat * getTimeZoneFormat() const
Gets the time zone format object associated with this date/time formatter.
SimpleDateFormat(const UnicodeString &pattern, const UnicodeString &override, UErrorCode &status)
Construct a SimpleDateFormat using the given pattern, numbering system override, and the default loca...
virtual void applyPattern(const UnicodeString &pattern)
Apply the given unlocalized pattern string to this date format.
SimpleDateFormat(const SimpleDateFormat &)
Copy constructor.
virtual void adoptDateFormatSymbols(DateFormatSymbols *newFormatSymbols)
Set the date/time formatting symbols.
SimpleDateFormat(const UnicodeString &pattern, DateFormatSymbols *formatDataToAdopt, UErrorCode &status)
Construct a SimpleDateFormat using the given pattern and locale-specific symbol data.
virtual void setDateFormatSymbols(const DateFormatSymbols &newFormatSymbols)
Set the date/time formatting data.
virtual UnicodeString & toPattern(UnicodeString &result) const
Return a pattern string describing this date format.
SimpleDateFormat(const UnicodeString &pattern, UErrorCode &status)
Construct a SimpleDateFormat using the given pattern and the default locale.
virtual UClassID getDynamicClassID() const override
Returns a unique class ID POLYMORPHICALLY.
virtual UnicodeString & toLocalizedPattern(UnicodeString &result, UErrorCode &status) const
Return a localized pattern string describing this date format.
const NumberFormat * getNumberFormatForField(char16_t field) const
Get the numbering system to be used for a particular field.
virtual void setContext(UDisplayContext value, UErrorCode &status) override
Set a particular UDisplayContext value in the formatter, such as UDISPCTX_CAPITALIZATION_FOR_STANDALO...
void adoptNumberFormat(NumberFormat *formatToAdopt) override
Overrides base class method and This method clears per field NumberFormat instances previously set by...
UBool isFieldUnitIgnored(UCalendarDateFields field) const
This is for ICU internal use only.
SimpleDateFormat(const UnicodeString &pattern, const DateFormatSymbols &formatData, UErrorCode &status)
Construct a SimpleDateFormat using the given pattern and locale-specific symbol data.
virtual void setTimeZoneFormat(const TimeZoneFormat &newTimeZoneFormat)
Sets the TimeZoneFormat to be used by this date/time formatter.
SimpleDateFormat & operator=(const SimpleDateFormat &)
Assignment operator.
virtual void adoptCalendar(Calendar *calendarToAdopt) override
Set the calendar to be used by this date format.
SimpleDateFormat(UErrorCode &status)
Construct a SimpleDateFormat using the default pattern for the default locale.
static UClassID getStaticClassID()
Return the class ID for this class.
virtual UnicodeString & format(Calendar &cal, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const override
Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970.
virtual void set2DigitYearStart(UDate d, UErrorCode &status)
Set the start UDate used to interpret two-digit year strings.
virtual ~SimpleDateFormat()
Destructor.
void adoptNumberFormat(const UnicodeString &fields, NumberFormat *formatToAdopt, UErrorCode &status)
Allow the user to set the NumberFormat for several fields It can be a single field like: "y"(year) or...
SimpleDateFormat(const UnicodeString &pattern, const UnicodeString &override, const Locale &locale, UErrorCode &status)
Construct a SimpleDateFormat using the given pattern, numbering system override, and locale.
SimpleDateFormat(const UnicodeString &pattern, const Locale &locale, UErrorCode &status)
Construct a SimpleDateFormat using the given pattern and locale.
static UBool isFieldUnitIgnored(const UnicodeString &pattern, UCalendarDateFields field)
This is for ICU internal use only.
virtual void adoptTimeZoneFormat(TimeZoneFormat *timeZoneFormatToAdopt)
Sets the TimeZoneFormat to be used by this date/time formatter.
const Locale & getSmpFmtLocale() const
This is for ICU internal use only.
virtual void applyLocalizedPattern(const UnicodeString &pattern, UErrorCode &status)
Apply the given localized pattern string to this date format.
virtual const DateFormatSymbols * getDateFormatSymbols() const
Gets the date/time formatting symbols (this is an object carrying the various strings and other symbo...
virtual SimpleDateFormat * clone() const override
Clone this Format object polymorphically.
TimeZoneFormat supports time zone display name formatting and parsing.
TimeZone represents a time zone offset, and also figures out daylight savings.
UMemory is the common ICU base class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Abstract class for converting dates.
UTimeZoneFormatTimeType
Constants for time types used by TimeZoneFormat APIs for receiving time type (standard time,...
UCalendarDateFields
Possible fields in a UCalendar.
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat.
C API: Display context types (enum values)
UDisplayContext
Display context settings.
int8_t UBool
The ICU boolean type, a signed-byte integer.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
double UDate
Date and Time data type.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4