12 #ifndef __DTITVINF_H__
13 #define __DTITVINF_H__
22 #if !UCONFIG_NO_FORMATTING
153 #ifndef U_HIDE_INTERNAL_API
342 friend struct DateIntervalSink;
349 enum IntervalPatternIndex
362 #ifndef U_HIDE_INTERNAL_API
368 kMaxIntervalPatternIndex = kIPI_MAX_INDEX
392 void setIntervalPatternInternally(
const UnicodeString& skeleton,
417 int8_t& bestMatchDistanceInfo)
const;
427 static void U_EXPORT2 parseSkeleton(
const UnicodeString& skeleton,
428 int32_t* skeletonFieldWidth);
442 static UBool U_EXPORT2 stringNumeric(int32_t fieldWidth,
443 int32_t anotherFieldWidth,
460 static IntervalPatternIndex U_EXPORT2 calendarFieldToIntervalIndex(
470 void deleteHash(Hashtable* hTable);
490 void copyHash(
const Hashtable* source, Hashtable* target,
UErrorCode& status);
497 UBool fFirstDateInPtnIsLaterDate;
501 Hashtable* fIntervalPatterns;
DateIntervalInfo is a public class for encapsulating localizable date time interval patterns.
DateIntervalInfo(const Locale &locale, UErrorCode &status)
Construct DateIntervalInfo for the given locale,.
UBool getDefaultOrder() const
Get default order – whether the first date in pattern is later date or not.
virtual DateIntervalInfo * clone(void) const
Clone this object polymorphically.
virtual UBool operator==(const DateIntervalInfo &other) const
Return true if another object is semantically equal to this one.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
void setIntervalPattern(const UnicodeString &skeleton, UCalendarDateFields lrgDiffCalUnit, const UnicodeString &intervalPattern, UErrorCode &status)
Provides a way for client to build interval patterns.
UnicodeString & getFallbackIntervalPattern(UnicodeString &result) const
Get the fallback interval pattern.
UBool operator!=(const DateIntervalInfo &other) const
Return true if another object is semantically unequal to this one.
UnicodeString & getIntervalPattern(const UnicodeString &skeleton, UCalendarDateFields field, UnicodeString &result, UErrorCode &status) const
Get the interval pattern given skeleton and the largest different calendar field.
virtual ~DateIntervalInfo()
Destructor.
void setFallbackIntervalPattern(const UnicodeString &fallbackPattern, UErrorCode &status)
Re-set the fallback interval pattern.
DateIntervalInfo(const DateIntervalInfo &)
Copy constructor.
DateIntervalInfo & operator=(const DateIntervalInfo &)
Assignment operator.
DateIntervalInfo(UErrorCode &status)
Default constructor.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
A Locale object represents a specific geographical, political, or cultural region.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Date/Time Pattern Generator.
C++ API: Locale ID object.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
UCalendarDateFields
Possible fields in a UCalendar.
int8_t UBool
The ICU boolean type.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.