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);
297 const UnicodeString* getMonths(int32_t& count, DtContextType context, DtWidthType width)
const;
308 void setMonths(
const UnicodeString* months, int32_t count, DtContextType context, DtWidthType width);
325 void setWeekdays(
const UnicodeString* weekdays, int32_t count);
341 void setShortWeekdays(
const UnicodeString* shortWeekdays, int32_t count);
351 const UnicodeString* getWeekdays(int32_t& count, DtContextType context, DtWidthType width)
const;
361 void setWeekdays(
const UnicodeString* weekdays, int32_t count, DtContextType context, DtWidthType width);
372 const UnicodeString* getQuarters(int32_t& count, DtContextType context, DtWidthType width)
const;
384 void setQuarters(
const UnicodeString* quarters, int32_t count, DtContextType context, DtWidthType width);
400 void setAmPmStrings(
const UnicodeString* ampms, int32_t count);
402 #ifndef U_HIDE_INTERNAL_API
413 kLeapMonthPatternFormatWide,
414 kLeapMonthPatternFormatAbbrev,
415 kLeapMonthPatternFormatNarrow,
416 kLeapMonthPatternStandaloneWide,
417 kLeapMonthPatternStandaloneAbbrev,
418 kLeapMonthPatternStandaloneNarrow,
419 kLeapMonthPatternNumeric,
435 const UnicodeString* getLeapMonthPatterns(int32_t& count)
const;
439 #ifndef U_HIDE_DEPRECATED_API
447 const UnicodeString** getZoneStrings(int32_t& rowCount, int32_t& columnCount)
const;
461 void setZoneStrings(
const UnicodeString*
const* strings, int32_t rowCount, int32_t columnCount);
468 static const UChar * U_EXPORT2 getPatternUChars(
void);
488 void setLocalPatternChars(
const UnicodeString& newLocalPatternChars);
497 #ifndef U_HIDE_INTERNAL_API
504 kCapContextUsageOther,
505 kCapContextUsageMonthFormat,
506 kCapContextUsageMonthStandalone,
507 kCapContextUsageMonthNarrow,
508 kCapContextUsageDayFormat,
509 kCapContextUsageDayStandalone,
510 kCapContextUsageDayNarrow,
511 kCapContextUsageEraWide,
512 kCapContextUsageEraAbbrev,
513 kCapContextUsageEraNarrow,
514 kCapContextUsageZoneLong,
515 kCapContextUsageZoneShort,
516 kCapContextUsageMetazoneLong,
517 kCapContextUsageMetazoneShort,
518 kCapContextUsageTypeCount
534 static UClassID U_EXPORT2 getStaticClassID();
539 friend class DateFormatSymbolsSingleSetter;
551 int32_t fEraNamesCount;
557 int32_t fNarrowErasCount;
563 int32_t fMonthsCount;
569 int32_t fShortMonthsCount;
575 int32_t fNarrowMonthsCount;
581 int32_t fStandaloneMonthsCount;
587 int32_t fStandaloneShortMonthsCount;
593 int32_t fStandaloneNarrowMonthsCount;
599 int32_t fWeekdaysCount;
605 int32_t fShortWeekdaysCount;
611 int32_t fNarrowWeekdaysCount;
617 int32_t fStandaloneWeekdaysCount;
623 int32_t fStandaloneShortWeekdaysCount;
629 int32_t fStandaloneNarrowWeekdaysCount;
641 int32_t fQuartersCount;
647 int32_t fShortQuartersCount;
653 int32_t fStandaloneQuartersCount;
659 int32_t fStandaloneShortQuartersCount;
665 int32_t fLeapMonthPatternsCount;
671 int32_t fShortYearNamesCount;
712 int32_t fZoneStringsRowCount;
713 int32_t fZoneStringsColCount;
722 #ifndef U_HIDE_INTERNAL_API
728 UBool fCapitalization[kCapContextUsageTypeCount][2];
784 void createZoneStrings(
const UnicodeString *
const * otherStrings);
800 void initZoneStringsArray(
void);
805 void disposeZoneStrings(
void);
821 static UBool U_EXPORT2 isNumericPatternChar(
UChar c, int32_t count);
virtual UClassID getDynamicClassID() const =0
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.