12 #ifndef __DTITVINF_H__
13 #define __DTITVINF_H__
22 #if !UCONFIG_NO_FORMATTING
153 #ifndef U_HIDE_INTERNAL_API
303 void setFallbackIntervalPattern(
const UnicodeString& fallbackPattern,
313 UBool getDefaultOrder()
const;
328 static UClassID U_EXPORT2 getStaticClassID();
347 enum IntervalPatternIndex
359 #ifndef U_HIDE_INTERNAL_API
365 kMaxIntervalPatternIndex = kIPI_MAX_INDEX
377 void initializeData(
const Locale& locale,
UErrorCode& status);
391 void setIntervalPatternInternally(
const UnicodeString& skeleton,
393 const UnicodeString& intervalPattern,
416 const UnicodeString* getBestSkeleton(
const UnicodeString& skeleton,
417 int8_t& bestMatchDistanceInfo)
const;
428 static void U_EXPORT2 parseSkeleton(
const UnicodeString& skeleton,
429 int32_t* skeletonFieldWidth);
444 static UBool U_EXPORT2 stringNumeric(int32_t fieldWidth,
445 int32_t anotherFieldWidth,
463 static IntervalPatternIndex U_EXPORT2 calendarFieldToIntervalIndex(
474 void deleteHash(Hashtable* hTable);
496 void copyHash(
const Hashtable* source, Hashtable* target,
UErrorCode& status);
501 UnicodeString fFallbackIntervalPattern;
503 UBool fFirstDateInPtnIsLaterDate;
507 Hashtable* fIntervalPatterns;
UCalendarDateFields
Possible fields in a UCalendar.
C++ API: Date/Time Pattern Generator.
DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...
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 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.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
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.
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.