25 #if !UCONFIG_NO_FORMATTING 42 class SimpleDateFormat;
112 #ifndef U_HIDE_INTERNAL_API 218 void setEraNames(
const UnicodeString* eraNames, int32_t count);
235 void setNarrowEras(
const UnicodeString* narrowEras, int32_t count);
269 void setShortMonths(
const UnicodeString* shortMonths, int32_t count);
278 #ifndef U_HIDE_DEPRECATED_API 284 #endif // U_HIDE_DEPRECATED_API 300 #ifndef U_HIDE_DEPRECATED_API 306 #endif // U_HIDE_DEPRECATED_API 345 void setWeekdays(
const UnicodeString* weekdays, int32_t count);
363 void setShortWeekdays(
const UnicodeString* abbrevWeekdays, int32_t count);
422 void setAmPmStrings(
const UnicodeString* ampms, int32_t count);
424 #ifndef U_HIDE_INTERNAL_API 430 static const char16_t DEFAULT_TIME_SEPARATOR = 0x003a;
436 static const char16_t ALTERNATE_TIME_SEPARATOR = 0x002e;
451 void setTimeSeparatorString(
const UnicodeString& newTimeSeparator);
476 void setYearNames(
const UnicodeString* yearNames, int32_t count,
501 void setZodiacNames(
const UnicodeString* zodiacNames, int32_t count,
504 #ifndef U_HIDE_INTERNAL_API 515 kLeapMonthPatternFormatWide,
516 kLeapMonthPatternFormatAbbrev,
517 kLeapMonthPatternFormatNarrow,
518 kLeapMonthPatternStandaloneWide,
519 kLeapMonthPatternStandaloneAbbrev,
520 kLeapMonthPatternStandaloneNarrow,
521 kLeapMonthPatternNumeric,
537 const UnicodeString* getLeapMonthPatterns(int32_t& count)
const;
541 #ifndef U_HIDE_DEPRECATED_API 549 const UnicodeString** getZoneStrings(int32_t& rowCount, int32_t& columnCount)
const;
563 void setZoneStrings(
const UnicodeString*
const* strings, int32_t rowCount, int32_t columnCount);
570 static const char16_t * U_EXPORT2 getPatternUChars(
void);
590 void setLocalPatternChars(
const UnicodeString& newLocalPatternChars);
607 #ifndef U_HIDE_INTERNAL_API 608 kCapContextUsageOther = 0,
609 kCapContextUsageMonthFormat,
610 kCapContextUsageMonthStandalone,
611 kCapContextUsageMonthNarrow,
612 kCapContextUsageDayFormat,
613 kCapContextUsageDayStandalone,
614 kCapContextUsageDayNarrow,
615 kCapContextUsageEraWide,
616 kCapContextUsageEraAbbrev,
617 kCapContextUsageEraNarrow,
618 kCapContextUsageZoneLong,
619 kCapContextUsageZoneShort,
620 kCapContextUsageMetazoneLong,
621 kCapContextUsageMetazoneShort,
623 kCapContextUsageTypeCount = 14
638 static UClassID U_EXPORT2 getStaticClassID();
643 friend class DateFormatSymbolsSingleSetter;
655 int32_t fEraNamesCount;
661 int32_t fNarrowErasCount;
667 int32_t fMonthsCount;
673 int32_t fShortMonthsCount;
679 int32_t fNarrowMonthsCount;
685 int32_t fStandaloneMonthsCount;
691 int32_t fStandaloneShortMonthsCount;
697 int32_t fStandaloneNarrowMonthsCount;
703 int32_t fWeekdaysCount;
709 int32_t fShortWeekdaysCount;
715 int32_t fShorterWeekdaysCount;
721 int32_t fNarrowWeekdaysCount;
727 int32_t fStandaloneWeekdaysCount;
733 int32_t fStandaloneShortWeekdaysCount;
739 int32_t fStandaloneShorterWeekdaysCount;
745 int32_t fStandaloneNarrowWeekdaysCount;
757 int32_t fNarrowAmPmsCount;
768 int32_t fQuartersCount;
774 int32_t fShortQuartersCount;
780 int32_t fStandaloneQuartersCount;
786 int32_t fStandaloneShortQuartersCount;
792 int32_t fLeapMonthPatternsCount;
800 int32_t fShortYearNamesCount;
808 int32_t fShortZodiacNamesCount;
849 int32_t fZoneStringsRowCount;
850 int32_t fZoneStringsColCount;
864 UBool fCapitalization[kCapContextUsageTypeCount][2];
870 int32_t fAbbreviatedDayPeriodsCount;
876 int32_t fWideDayPeriodsCount;
882 int32_t fNarrowDayPeriodsCount;
888 int32_t fStandaloneAbbreviatedDayPeriodsCount;
894 int32_t fStandaloneWideDayPeriodsCount;
900 int32_t fStandaloneNarrowDayPeriodsCount;
954 void createZoneStrings(
const UnicodeString *
const * otherStrings);
970 void initZoneStringsArray(
void);
975 void disposeZoneStrings(
void);
991 static UBool U_EXPORT2 isNumericPatternChar(char16_t c, int32_t count);
993 #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...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
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.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
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.