13 #ifndef __DTITVFMT_H__ 14 #define __DTITVFMT_H__ 19 #if U_SHOW_CPLUSPLUS_API 26 #if !UCONFIG_NO_FORMATTING 38 class FormattedDateIntervalData;
39 class DateIntervalFormat;
103 FormattedDateIntervalData *fData;
107 explicit FormattedDateInterval(
UErrorCode errorCode)
108 : fData(nullptr), fErrorCode(errorCode) {}
109 friend class DateIntervalFormat;
637 virtual const TimeZone& getTimeZone(
void)
const;
645 virtual void adoptTimeZone(
TimeZone* zoneToAdopt);
652 virtual void setTimeZone(
const TimeZone& zone);
665 static UClassID U_EXPORT2 getStaticClassID(
void);
725 UBool laterDateFirst;
779 void fallbackFormatRange(
784 FieldPositionHandler& fphandler,
811 UBool fromToOnSameDay,
814 FieldPositionHandler& fphandler,
894 static void U_EXPORT2 getDateTimeSkeleton(
const UnicodeString& skeleton,
957 int8_t differenceInfo,
989 static void U_EXPORT2 adjustFieldWidth(
993 int8_t differenceInfo,
1027 static int32_t U_EXPORT2 splitPatternInto2Part(
const UnicodeString& intervalPattern);
1047 UBool laterDateFirst);
1062 UBool laterDateFirst);
1093 FieldPositionHandler& fphandler,
1100 FieldPositionHandler& fphandler,
1105 static const char16_t fgCalendarFieldToPatternLetter[];
1132 PatternInfo fIntervalPatterns[DateIntervalInfo::kIPI_MAX_INDEX];
1153 #endif // _DTITVFMT_H__
#define U_OVERRIDE
Defined to the C++11 "override" keyword if available.
UCalendarDateFields
Possible fields in a UCalendar.
C++ API: Date/Time Pattern Generator.
DateIntervalInfo is a public class for encapsulating localizable date time interval patterns...
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
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.
TimeZone represents a time zone offset, and also figures out daylight savings.
This class represents a date interval.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
C++ API: Format and parse dates in a language-independent manner.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
#define NULL
Define NULL if necessary, to nullptr for C++ and to ((void *)0) for C.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
Represents a span of a string containing a given field.
C++ API: Date Interval data type.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Basic definitions for ICU, for both C and C++ APIs.
C++ API: Date/Time interval patterns for formatting date/time interval.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UMemory is the common ICU base class.
Requested operation can not be completed with ICU in its current state.
int8_t UBool
The ICU boolean type.
Base class for objects to which Unicode characters and strings can be appended.
A Locale object represents a specific geographical, political, or cultural region.