13 #ifndef __DTITVFMT_H__ 14 #define __DTITVFMT_H__ 19 #if U_SHOW_CPLUSPLUS_API 26 #if !UCONFIG_NO_FORMATTING 39 class FormattedDateIntervalData;
40 class DateIntervalFormat;
104 FormattedDateIntervalData *fData;
108 explicit FormattedDateInterval(
UErrorCode errorCode)
109 : fData(nullptr), fErrorCode(errorCode) {}
110 friend class DateIntervalFormat;
729 UBool laterDateFirst;
782 void fallbackFormatRange(
787 FieldPositionHandler& fphandler,
813 UBool fromToOnSameDay,
816 FieldPositionHandler& fphandler,
970 int8_t differenceInfo,
1006 int8_t differenceInfo,
1007 UBool suppressDayPeriodField,
1070 UBool laterDateFirst);
1085 UBool laterDateFirst);
1115 FieldPositionHandler& fphandler,
1122 FieldPositionHandler& fphandler,
1127 static const char16_t fgCalendarFieldToPatternLetter[];
1154 PatternInfo fIntervalPatterns[DateIntervalInfo::kIPI_MAX_INDEX];
1180 #endif // _DTITVFMT_H__
bool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
UCalendarDateFields
Possible fields in a UCalendar.
U_COMMON_API UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
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 ...
UDisplayContext
Display context settings.
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.
C API: Display context types (enum values)
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...
#define U_I18N_API_CLASS
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.
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.
UDisplayContextType
Display context types, for getting values of a particular setting.
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, a signed-byte integer.
Base class for objects to which Unicode characters and strings can be appended.
A Locale object represents a specific geographical, political, or cultural region.