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 339 #if !UCONFIG_NO_FORMATTING 340 #ifndef U_HIDE_DRAFT_API 517 #ifndef U_HIDE_INTERNAL_API 553 #if !UCONFIG_NO_FORMATTING 583 static UClassID U_EXPORT2 getStaticClassID(
void);
612 DateTimeMatcher* dtMatcher;
613 DistanceInfo *distanceInfo;
614 PatternMap *patternMap;
619 DateTimeMatcher *skipMatcher;
620 Hashtable *fAvailableFormatKeyHash;
622 char16_t fDefaultHourFormatChar;
624 int32_t fAllowedHourFormats[7];
634 kDTPGFixFractionalSeconds = 1,
635 kDTPGSkeletonUsesCapJ = 2
643 void getCalendarTypeToUse(
const Locale& locale, CharString& destination,
UErrorCode& err);
657 const UnicodeString* getBestRaw(DateTimeMatcher& source, int32_t includeMask, DistanceInfo* missingFields,
UErrorCode& status,
const PtnSkeleton** specifiedSkeletonPtr = 0);
660 int32_t getTopBitNumber(int32_t foundMask)
const;
663 void copyHashtable(Hashtable *other,
UErrorCode &status);
668 struct AppendItemFormatsSink;
669 struct AppendItemNamesSink;
670 struct AvailableFormatsSink;
bool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
This class provides flexible generation of date format patterns, like "yy-MM-dd". ...
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.
UDateFormatHourCycle
Hour Cycle.
Base class for 'pure' C++ implementations of uenum api.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
C API: Wrapper for icu::DateTimePatternGenerator (unicode/dtptngen.h).
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UDateFormatStyle
The possible date/time format styles.
UDateTimePatternConflict
Status return values from udatpg_addPattern().
One more than the highest normal UDateTimePatternField value.
UDateTimePatternField
Field number constants for udatpg_getAppendItemFormats() and similar functions.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
UDateTimePGDisplayWidth
Field display name width constants for udatpg_getFieldDisplayName().
C++ API: Abstract class for converting dates.
C++ API: Locale ID object.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
UDateTimePatternMatchOptions
Masks to control forcing the length of specified fields in the returned pattern to match those in the...
int8_t UBool
The ICU boolean type, a signed-byte integer.
A Locale object represents a specific geographical, political, or cultural region.