Go to the documentation of this file.
14 #ifndef __DTPTNGEN_H__
15 #define __DTPTNGEN_H__
19 #if U_SHOW_CPLUSPLUS_API
38 class DateTimeMatcher;
42 class SharedDateTimePatternGenerator;
77 #ifndef U_HIDE_INTERNAL_API
222 #ifndef U_HIDE_INTERNAL_API
343 #if !UCONFIG_NO_FORMATTING
507 #ifndef U_HIDE_INTERNAL_API
543 #if !UCONFIG_NO_FORMATTING
602 DateTimeMatcher* dtMatcher;
603 DistanceInfo *distanceInfo;
604 PatternMap *patternMap;
609 DateTimeMatcher *skipMatcher;
610 Hashtable *fAvailableFormatKeyHash;
612 char16_t fDefaultHourFormatChar;
614 int32_t fAllowedHourFormats[7];
624 kDTPGFixFractionalSeconds = 1,
625 kDTPGSkeletonUsesCapJ = 2
633 void getCalendarTypeToUse(
const Locale& locale, CharString& destination,
UErrorCode& err);
647 const UnicodeString* getBestRaw(DateTimeMatcher& source, int32_t includeMask, DistanceInfo* missingFields,
UErrorCode& status,
const PtnSkeleton** specifiedSkeletonPtr =
nullptr);
650 int32_t getTopBitNumber(int32_t foundMask)
const;
653 void copyHashtable(Hashtable *other,
UErrorCode &status);
658 struct U_HIDDEN AppendItemFormatsSink;
659 struct U_HIDDEN AppendItemNamesSink;
660 struct U_HIDDEN AvailableFormatsSink;
@ UDATPG_FIELD_COUNT
One more than the highest normal UDateTimePatternField value.
Basic definitions for ICU, for both C and C++ APIs.
UDateTimePatternConflict
Status return values from udatpg_addPattern().
int8_t UBool
The ICU boolean type, a signed-byte integer.
C API: Wrapper for icu::DateTimePatternGenerator (unicode/dtptngen.h).
This class provides flexible generation of date format patterns, like "yy-MM-dd".
UDateTimePatternField
Field number constants for udatpg_getAppendItemFormats() and similar functions.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
UDateFormatHourCycle
Hour Cycle.
Base class for 'pure' C++ implementations of uenum api.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
@ UDATPG_MATCH_NO_OPTIONS
U_COMMON_API UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
UDateTimePatternMatchOptions
Masks to control forcing the length of specified fields in the returned pattern to match those in the...
C++ API: Abstract class for converting dates.
bool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
UDateFormatStyle
The possible date/time format styles.
C++ API: Locale ID object.
A Locale object represents a specific geographical, political, or cultural region.
UDateTimePGDisplayWidth
Field display name width constants for udatpg_getFieldDisplayName().