SimpleDateFormat;
115 #ifndef U_HIDE_INTERNAL_API 281 #ifndef U_HIDE_DEPRECATED_API 303 #ifndef U_HIDE_DEPRECATED_API 425 #ifndef U_HIDE_INTERNAL_API 431 static constchar16_t DEFAULT_TIME_SEPARATOR = 0x003a;
437 static constchar16_t ALTERNATE_TIME_SEPARATOR = 0x002e;
505 #ifndef U_HIDE_INTERNAL_API 516kLeapMonthPatternFormatWide,
517kLeapMonthPatternFormatAbbrev,
518kLeapMonthPatternFormatNarrow,
519kLeapMonthPatternStandaloneWide,
520kLeapMonthPatternStandaloneAbbrev,
521kLeapMonthPatternStandaloneNarrow,
522kLeapMonthPatternNumeric,
542 #ifndef U_HIDE_DEPRECATED_API 608 #ifndef U_HIDE_INTERNAL_API 609kCapContextUsageOther = 0,
610kCapContextUsageMonthFormat,
611kCapContextUsageMonthStandalone,
612kCapContextUsageMonthNarrow,
613kCapContextUsageDayFormat,
614kCapContextUsageDayStandalone,
615kCapContextUsageDayNarrow,
616kCapContextUsageEraWide,
617kCapContextUsageEraAbbrev,
618kCapContextUsageEraNarrow,
619kCapContextUsageZoneLong,
620kCapContextUsageZoneShort,
621kCapContextUsageMetazoneLong,
622kCapContextUsageMetazoneShort,
624kCapContextUsageTypeCount = 14
644 friend classDateFormatSymbolsSingleSetter;
656int32_t fEraNamesCount;
662int32_t fNarrowErasCount;
668int32_t fMonthsCount;
674int32_t fShortMonthsCount;
680int32_t fNarrowMonthsCount;
686int32_t fStandaloneMonthsCount;
692int32_t fStandaloneShortMonthsCount;
698int32_t fStandaloneNarrowMonthsCount;
704int32_t fWeekdaysCount;
710int32_t fShortWeekdaysCount;
716int32_t fShorterWeekdaysCount;
722int32_t fNarrowWeekdaysCount;
728int32_t fStandaloneWeekdaysCount;
734int32_t fStandaloneShortWeekdaysCount;
740int32_t fStandaloneShorterWeekdaysCount;
746int32_t fStandaloneNarrowWeekdaysCount;
758int32_t fNarrowAmPmsCount;
769int32_t fQuartersCount;
775int32_t fShortQuartersCount;
782int32_t fNarrowQuartersCount;
788int32_t fStandaloneQuartersCount;
794int32_t fStandaloneShortQuartersCount;
801int32_t fStandaloneNarrowQuartersCount;
807int32_t fLeapMonthPatternsCount;
815int32_t fShortYearNamesCount;
823int32_t fShortZodiacNamesCount;
864int32_t fZoneStringsRowCount;
865int32_t fZoneStringsColCount;
879 UBoolfCapitalization[kCapContextUsageTypeCount][2];
885int32_t fAbbreviatedDayPeriodsCount;
891int32_t fWideDayPeriodsCount;
897int32_t fNarrowDayPeriodsCount;
903int32_t fStandaloneAbbreviatedDayPeriodsCount;
909int32_t fStandaloneWideDayPeriodsCount;
915int32_t fStandaloneNarrowDayPeriodsCount;
921CharString* validLocale =
nullptr;
922CharString* actualLocale =
nullptr;
935 voidinitializeData(
const Locale& locale,
const char*type,
970 voidcreateZoneStrings(
const UnicodeString*
const* otherStrings);
986 voidinitZoneStringsArray();
991 voiddisposeZoneStrings();
1007 static UBoolU_EXPORT2 isNumericPatternChar(char16_t c, int32_t count);
1009 #ifndef U_HIDE_INTERNAL_APIC++ API: Calendar object.
DateFormatSymbols is a public class for encapsulating localizable date-time formatting data – includi...
const UnicodeString * getAmPmStrings(int32_t &count) const
Gets AM/PM strings.
void setYearNames(const UnicodeString *yearNames, int32_t count, DtContextType context, DtWidthType width)
Sets cyclic year name strings by width and context.
void setWeekdays(const UnicodeString *weekdays, int32_t count)
Sets wide weekday strings.
const UnicodeString * getQuarters(int32_t &count, DtContextType context, DtWidthType width) const
Gets quarter strings by width and context.
void setShortMonths(const UnicodeString *shortMonths, int32_t count)
Sets short month strings.
void setLocalPatternChars(const UnicodeString &newLocalPatternChars)
Sets localized date-time pattern characters.
DateFormatSymbols(const char *type, UErrorCode &status)
Construct a DateFormatSymbols object by loading format data from resources for the default locale,...
static DateFormatSymbols * createForLocale(const Locale &locale, UErrorCode &status)
Gets a DateFormatSymbols by locale.
UnicodeString & getLocalPatternChars(UnicodeString &result) const
Gets localized date-time pattern characters.
const UnicodeString * getEras(int32_t &count) const
Gets abbreviated era strings.
Locale getLocale(ULocDataLocaleType type, UErrorCode &status) const
Returns the locale for this object.
const UnicodeString * getWeekdays(int32_t &count, DtContextType context, DtWidthType width) const
Gets weekday strings by width and context.
void setEras(const UnicodeString *eras, int32_t count)
Sets abbreviated era strings.
void setQuarters(const UnicodeString *quarters, int32_t count, DtContextType context, DtWidthType width)
Sets quarter strings by width and context.
const UnicodeString * getEraNames(int32_t &count) const
Gets era name strings.
bool operator!=(const DateFormatSymbols &other) const
Return true if another object is semantically unequal to this one.
DateFormatSymbols(UErrorCode &status)
Construct a DateFormatSymbols object by loading format data from resources for the default locale,...
void setAmPmStrings(const UnicodeString *ampms, int32_t count)
Sets ampm strings.
DtWidthType
Selector for date formatting width.
@ SHORT
Short width is currently only supported for weekday names.
DateFormatSymbols & operator=(const DateFormatSymbols &)
Assignment operator.
const UnicodeString * getNarrowEras(int32_t &count) const
Gets narrow era strings.
const UnicodeString * getShortWeekdays(int32_t &count) const
Gets abbreviated weekday strings.
void setShortWeekdays(const UnicodeString *abbrevWeekdays, int32_t count)
Sets abbreviated weekday strings.
const UnicodeString * getYearNames(int32_t &count, DtContextType context, DtWidthType width) const
Gets cyclic year name strings if the calendar has them, by width and context.
static const char16_t * getPatternUChars()
Get the non-localized date-time pattern characters.
const UnicodeString * getWeekdays(int32_t &count) const
Gets wide weekday strings.
const UnicodeString * getMonths(int32_t &count) const
Gets month strings.
const UnicodeString * getMonths(int32_t &count, DtContextType context, DtWidthType width) const
Gets month strings by width and context.
DateFormatSymbols(const Locale &locale, const char *type, UErrorCode &status)
Construct a DateFormatSymbols object by loading format data from resources for the given locale,...
const UnicodeString * getZodiacNames(int32_t &count, DtContextType context, DtWidthType width) const
Gets calendar zodiac name strings if the calendar has them, by width and context.
void setZoneStrings(const UnicodeString *const *strings, int32_t rowCount, int32_t columnCount)
Sets timezone strings.
void setNarrowEras(const UnicodeString *narrowEras, int32_t count)
Sets narrow era strings.
bool operator==(const DateFormatSymbols &other) const
Return true if another object is semantically equal to this one.
const UnicodeString * getLeapMonthPatterns(int32_t &count) const
Somewhat temporary function for getting complete set of leap month patterns for all contexts & widths...
DateFormatSymbols(const DateFormatSymbols &)
Copy constructor.
virtual UClassID getDynamicClassID() const override
ICU "poor man's RTTI", returns a UClassID for the actual class.
void setEraNames(const UnicodeString *eraNames, int32_t count)
Sets era name strings.
void setMonths(const UnicodeString *months, int32_t count, DtContextType context, DtWidthType width)
Sets month strings by width and context.
void setTimeSeparatorString(const UnicodeString &newTimeSeparator)
Sets the time separator string.
void setZodiacNames(const UnicodeString *zodiacNames, int32_t count, DtContextType context, DtWidthType width)
Sets calendar zodiac name strings by width and context.
virtual ~DateFormatSymbols()
Destructor.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
UnicodeString & getTimeSeparatorString(UnicodeString &result) const
Gets the time separator string.
void setMonths(const UnicodeString *months, int32_t count)
Sets month strings.
void setWeekdays(const UnicodeString *weekdays, int32_t count, DtContextType context, DtWidthType width)
Sets weekday strings by width and context.
DtContextType
Selector for date formatting context.
ECapitalizationContextUsageType
Constants for capitalization context usage types.
DateFormatSymbols(const Locale &locale, UErrorCode &status)
Construct a DateFormatSymbols object by loading format data from resources for the given locale,...
EMonthPatternType
Somewhat temporary constants for leap month pattern types, adequate for supporting just leap month pa...
const UnicodeString * getShortMonths(int32_t &count) const
Gets short month strings.
const UnicodeString ** getZoneStrings(int32_t &rowCount, int32_t &columnCount) const
Gets timezone strings.
A Locale object represents a specific geographical, political, or cultural region.
SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manne...
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Locale ID object.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
C++ API: String Enumeration.
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat.
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested,...
int8_t UBool
The ICU boolean type, a signed-byte integer.
C++ API: Common ICU base class UObject.
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.
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