25 #if !UCONFIG_NO_FORMATTING 41 class SimpleDateFormat;
111 #ifndef U_HIDE_INTERNAL_API 217 void setEraNames(
const UnicodeString* eraNames, int32_t count);
234 void setNarrowEras(
const UnicodeString* narrowEras, int32_t count);
268 void setShortMonths(
const UnicodeString* shortMonths, int32_t count);
277 #ifndef U_HIDE_DEPRECATED_API 283 #endif // U_HIDE_DEPRECATED_API 299 #ifndef U_HIDE_DEPRECATED_API 305 #endif // U_HIDE_DEPRECATED_API 344 void setWeekdays(
const UnicodeString* weekdays, int32_t count);
362 void setShortWeekdays(
const UnicodeString* abbrevWeekdays, int32_t count);
421 void setAmPmStrings(
const UnicodeString* ampms, int32_t count);
423 #ifndef U_HIDE_INTERNAL_API 429 static const UChar DEFAULT_TIME_SEPARATOR = 0x003a;
435 static const UChar ALTERNATE_TIME_SEPARATOR = 0x002e;
450 void setTimeSeparatorString(
const UnicodeString& newTimeSeparator);
475 void setYearNames(
const UnicodeString* yearNames, int32_t count,
500 void setZodiacNames(
const UnicodeString* zodiacNames, int32_t count,
503 #ifndef U_HIDE_INTERNAL_API 514 kLeapMonthPatternFormatWide,
515 kLeapMonthPatternFormatAbbrev,
516 kLeapMonthPatternFormatNarrow,
517 kLeapMonthPatternStandaloneWide,
518 kLeapMonthPatternStandaloneAbbrev,
519 kLeapMonthPatternStandaloneNarrow,
520 kLeapMonthPatternNumeric,
536 const UnicodeString* getLeapMonthPatterns(int32_t& count)
const;
540 #ifndef U_HIDE_DEPRECATED_API 548 const UnicodeString** getZoneStrings(int32_t& rowCount, int32_t& columnCount)
const;
562 void setZoneStrings(
const UnicodeString*
const* strings, int32_t rowCount, int32_t columnCount);
569 static const UChar * U_EXPORT2 getPatternUChars(
void);
589 void setLocalPatternChars(
const UnicodeString& newLocalPatternChars);
606 #ifndef U_HIDE_INTERNAL_API 607 kCapContextUsageOther = 0,
608 kCapContextUsageMonthFormat,
609 kCapContextUsageMonthStandalone,
610 kCapContextUsageMonthNarrow,
611 kCapContextUsageDayFormat,
612 kCapContextUsageDayStandalone,
613 kCapContextUsageDayNarrow,
614 kCapContextUsageEraWide,
615 kCapContextUsageEraAbbrev,
616 kCapContextUsageEraNarrow,
617 kCapContextUsageZoneLong,
618 kCapContextUsageZoneShort,
619 kCapContextUsageMetazoneLong,
620 kCapContextUsageMetazoneShort,
622 kCapContextUsageTypeCount = 14
637 static UClassID U_EXPORT2 getStaticClassID();
642 friend class DateFormatSymbolsSingleSetter;
654 int32_t fEraNamesCount;
660 int32_t fNarrowErasCount;
666 int32_t fMonthsCount;
672 int32_t fShortMonthsCount;
678 int32_t fNarrowMonthsCount;
684 int32_t fStandaloneMonthsCount;
690 int32_t fStandaloneShortMonthsCount;
696 int32_t fStandaloneNarrowMonthsCount;
702 int32_t fWeekdaysCount;
708 int32_t fShortWeekdaysCount;
714 int32_t fShorterWeekdaysCount;
720 int32_t fNarrowWeekdaysCount;
726 int32_t fStandaloneWeekdaysCount;
732 int32_t fStandaloneShortWeekdaysCount;
738 int32_t fStandaloneShorterWeekdaysCount;
744 int32_t fStandaloneNarrowWeekdaysCount;
756 int32_t fNarrowAmPmsCount;
767 int32_t fQuartersCount;
773 int32_t fShortQuartersCount;
779 int32_t fStandaloneQuartersCount;
785 int32_t fStandaloneShortQuartersCount;
791 int32_t fLeapMonthPatternsCount;
799 int32_t fShortYearNamesCount;
807 int32_t fShortZodiacNamesCount;
848 int32_t fZoneStringsRowCount;
849 int32_t fZoneStringsColCount;
863 UBool fCapitalization[kCapContextUsageTypeCount][2];
869 int32_t fAbbreviatedDayPeriodsCount;
875 int32_t fWideDayPeriodsCount;
881 int32_t fNarrowDayPeriodsCount;
887 int32_t fStandaloneAbbreviatedDayPeriodsCount;
893 int32_t fStandaloneWideDayPeriodsCount;
899 int32_t fStandaloneNarrowDayPeriodsCount;
953 void createZoneStrings(
const UnicodeString *
const * otherStrings);
969 void initZoneStringsArray(
void);
974 void disposeZoneStrings(
void);
990 static UBool U_EXPORT2 isNumericPatternChar(
UChar c, int32_t count);
992 #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.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#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: Locale ID object.
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.