23 #if !UCONFIG_NO_FORMATTING
39 class SimpleDateFormat;
109 #ifndef U_HIDE_INTERNAL_API
215 void setEraNames(
const UnicodeString* eraNames, int32_t count);
232 void setNarrowEras(
const UnicodeString* narrowEras, int32_t count);
266 void setShortMonths(
const UnicodeString* shortMonths, int32_t count);
304 const UnicodeString* getMonths(int32_t& count, DtContextType context, DtWidthType width)
const;
315 void setMonths(
const UnicodeString* months, int32_t count, DtContextType context, DtWidthType width);
332 void setWeekdays(
const UnicodeString* weekdays, int32_t count);
350 void setShortWeekdays(
const UnicodeString* abbrevWeekdays, int32_t count);
360 const UnicodeString* getWeekdays(int32_t& count, DtContextType context, DtWidthType width)
const;
370 void setWeekdays(
const UnicodeString* weekdays, int32_t count, DtContextType context, DtWidthType width);
381 const UnicodeString* getQuarters(int32_t& count, DtContextType context, DtWidthType width)
const;
393 void setQuarters(
const UnicodeString* quarters, int32_t count, DtContextType context, DtWidthType width);
409 void setAmPmStrings(
const UnicodeString* ampms, int32_t count);
411 #ifndef U_HIDE_DRAFT_API
423 DtContextType context, DtWidthType width)
const;
434 void setYearNames(
const UnicodeString* yearNames, int32_t count,
435 DtContextType context, DtWidthType width);
448 DtContextType context, DtWidthType width)
const;
459 void setZodiacNames(
const UnicodeString* zodiacNames, int32_t count,
460 DtContextType context, DtWidthType width);
464 #ifndef U_HIDE_INTERNAL_API
475 kLeapMonthPatternFormatWide,
476 kLeapMonthPatternFormatAbbrev,
477 kLeapMonthPatternFormatNarrow,
478 kLeapMonthPatternStandaloneWide,
479 kLeapMonthPatternStandaloneAbbrev,
480 kLeapMonthPatternStandaloneNarrow,
481 kLeapMonthPatternNumeric,
497 const UnicodeString* getLeapMonthPatterns(int32_t& count)
const;
501 #ifndef U_HIDE_DEPRECATED_API
509 const UnicodeString** getZoneStrings(int32_t& rowCount, int32_t& columnCount)
const;
523 void setZoneStrings(
const UnicodeString*
const* strings, int32_t rowCount, int32_t columnCount);
530 static const UChar * U_EXPORT2 getPatternUChars(
void);
550 void setLocalPatternChars(
const UnicodeString& newLocalPatternChars);
567 #ifndef U_HIDE_INTERNAL_API
568 kCapContextUsageOther = 0,
569 kCapContextUsageMonthFormat,
570 kCapContextUsageMonthStandalone,
571 kCapContextUsageMonthNarrow,
572 kCapContextUsageDayFormat,
573 kCapContextUsageDayStandalone,
574 kCapContextUsageDayNarrow,
575 kCapContextUsageEraWide,
576 kCapContextUsageEraAbbrev,
577 kCapContextUsageEraNarrow,
578 kCapContextUsageZoneLong,
579 kCapContextUsageZoneShort,
580 kCapContextUsageMetazoneLong,
581 kCapContextUsageMetazoneShort,
583 kCapContextUsageTypeCount = 14
598 static UClassID U_EXPORT2 getStaticClassID();
603 friend class DateFormatSymbolsSingleSetter;
615 int32_t fEraNamesCount;
621 int32_t fNarrowErasCount;
627 int32_t fMonthsCount;
633 int32_t fShortMonthsCount;
639 int32_t fNarrowMonthsCount;
645 int32_t fStandaloneMonthsCount;
651 int32_t fStandaloneShortMonthsCount;
657 int32_t fStandaloneNarrowMonthsCount;
663 int32_t fWeekdaysCount;
669 int32_t fShortWeekdaysCount;
675 int32_t fShorterWeekdaysCount;
681 int32_t fNarrowWeekdaysCount;
687 int32_t fStandaloneWeekdaysCount;
693 int32_t fStandaloneShortWeekdaysCount;
699 int32_t fStandaloneShorterWeekdaysCount;
705 int32_t fStandaloneNarrowWeekdaysCount;
717 int32_t fQuartersCount;
723 int32_t fShortQuartersCount;
729 int32_t fStandaloneQuartersCount;
735 int32_t fStandaloneShortQuartersCount;
741 int32_t fLeapMonthPatternsCount;
749 int32_t fShortYearNamesCount;
757 int32_t fShortZodiacNamesCount;
798 int32_t fZoneStringsRowCount;
799 int32_t fZoneStringsColCount;
813 UBool fCapitalization[kCapContextUsageTypeCount][2];
867 void createZoneStrings(
const UnicodeString *
const * otherStrings);
883 void initZoneStringsArray(
void);
888 void disposeZoneStrings(
void);
904 static UBool U_EXPORT2 isNumericPatternChar(
UChar c, int32_t count);
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
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.
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.