25 #if U_SHOW_CPLUSPLUS_API 27 #if !UCONFIG_NO_FORMATTING 44 class SimpleDateFormat;
114 #ifndef U_HIDE_INTERNAL_API 220 void setEraNames(
const UnicodeString* eraNames, int32_t count);
237 void setNarrowEras(
const UnicodeString* narrowEras, int32_t count);
271 void setShortMonths(
const UnicodeString* shortMonths, int32_t count);
280 #ifndef U_HIDE_DEPRECATED_API 286 #endif // U_HIDE_DEPRECATED_API 302 #ifndef U_HIDE_DEPRECATED_API 308 #endif // U_HIDE_DEPRECATED_API 347 void setWeekdays(
const UnicodeString* weekdays, int32_t count);
365 void setShortWeekdays(
const UnicodeString* abbrevWeekdays, int32_t count);
424 void setAmPmStrings(
const UnicodeString* ampms, int32_t count);
426 #ifndef U_HIDE_INTERNAL_API 432 static const char16_t DEFAULT_TIME_SEPARATOR = 0x003a;
438 static const char16_t ALTERNATE_TIME_SEPARATOR = 0x002e;
453 void setTimeSeparatorString(
const UnicodeString& newTimeSeparator);
478 void setYearNames(
const UnicodeString* yearNames, int32_t count,
503 void setZodiacNames(
const UnicodeString* zodiacNames, int32_t count,
506 #ifndef U_HIDE_INTERNAL_API 517 kLeapMonthPatternFormatWide,
518 kLeapMonthPatternFormatAbbrev,
519 kLeapMonthPatternFormatNarrow,
520 kLeapMonthPatternStandaloneWide,
521 kLeapMonthPatternStandaloneAbbrev,
522 kLeapMonthPatternStandaloneNarrow,
523 kLeapMonthPatternNumeric,
539 const UnicodeString* getLeapMonthPatterns(int32_t& count)
const;
543 #ifndef U_HIDE_DEPRECATED_API 551 const UnicodeString** getZoneStrings(int32_t& rowCount, int32_t& columnCount)
const;
565 void setZoneStrings(
const UnicodeString*
const* strings, int32_t rowCount, int32_t columnCount);
572 static const char16_t * U_EXPORT2 getPatternUChars(
void);
592 void setLocalPatternChars(
const UnicodeString& newLocalPatternChars);
609 #ifndef U_HIDE_INTERNAL_API 610 kCapContextUsageOther = 0,
611 kCapContextUsageMonthFormat,
612 kCapContextUsageMonthStandalone,
613 kCapContextUsageMonthNarrow,
614 kCapContextUsageDayFormat,
615 kCapContextUsageDayStandalone,
616 kCapContextUsageDayNarrow,
617 kCapContextUsageEraWide,
618 kCapContextUsageEraAbbrev,
619 kCapContextUsageEraNarrow,
620 kCapContextUsageZoneLong,
621 kCapContextUsageZoneShort,
622 kCapContextUsageMetazoneLong,
623 kCapContextUsageMetazoneShort,
625 kCapContextUsageTypeCount = 14
640 static UClassID U_EXPORT2 getStaticClassID();
645 friend class DateFormatSymbolsSingleSetter;
657 int32_t fEraNamesCount;
663 int32_t fNarrowErasCount;
669 int32_t fMonthsCount;
675 int32_t fShortMonthsCount;
681 int32_t fNarrowMonthsCount;
687 int32_t fStandaloneMonthsCount;
693 int32_t fStandaloneShortMonthsCount;
699 int32_t fStandaloneNarrowMonthsCount;
705 int32_t fWeekdaysCount;
711 int32_t fShortWeekdaysCount;
717 int32_t fShorterWeekdaysCount;
723 int32_t fNarrowWeekdaysCount;
729 int32_t fStandaloneWeekdaysCount;
735 int32_t fStandaloneShortWeekdaysCount;
741 int32_t fStandaloneShorterWeekdaysCount;
747 int32_t fStandaloneNarrowWeekdaysCount;
759 int32_t fNarrowAmPmsCount;
770 int32_t fQuartersCount;
776 int32_t fShortQuartersCount;
782 int32_t fStandaloneQuartersCount;
788 int32_t fStandaloneShortQuartersCount;
794 int32_t fLeapMonthPatternsCount;
802 int32_t fShortYearNamesCount;
810 int32_t fShortZodiacNamesCount;
851 int32_t fZoneStringsRowCount;
852 int32_t fZoneStringsColCount;
866 UBool fCapitalization[kCapContextUsageTypeCount][2];
872 int32_t fAbbreviatedDayPeriodsCount;
878 int32_t fWideDayPeriodsCount;
884 int32_t fNarrowDayPeriodsCount;
890 int32_t fStandaloneAbbreviatedDayPeriodsCount;
896 int32_t fStandaloneWideDayPeriodsCount;
902 int32_t fStandaloneNarrowDayPeriodsCount;
956 void createZoneStrings(
const UnicodeString *
const * otherStrings);
972 void initZoneStringsArray(
void);
977 void disposeZoneStrings(
void);
993 static UBool U_EXPORT2 isNumericPatternChar(char16_t c, int32_t count);
995 #ifndef U_HIDE_INTERNAL_API
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
#define ULOC_FULLNAME_CAPACITY
Useful constant for the maximum size of the whole locale ID (including the terminating NULL and all k...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
C++ API: Calendar object.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
C++ API: Common ICU base class UObject.
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat...
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested...
C++ API: String Enumeration.
C++ API: Locale ID object.
#define U_FINAL
Defined to the C++11 "final" keyword if available.
Basic definitions for ICU, for both C and C++ APIs.
#define FALSE
The FALSE value of a UBool.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.