Go to the documentation of this file.
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;
638 virtual const TimeZone& getTimeZone(
void)
const;
646 virtual void adoptTimeZone(
TimeZone* zoneToAdopt);
653 virtual void setTimeZone(
const TimeZone& zone);
655 #ifndef U_FORCE_HIDE_DRAFT_API
681 #endif // U_FORCE_HIDE_DRAFT_API
694 static UClassID U_EXPORT2 getStaticClassID(
void);
754 UBool laterDateFirst;
808 void fallbackFormatRange(
813 FieldPositionHandler& fphandler,
840 UBool fromToOnSameDay,
843 FieldPositionHandler& fphandler,
936 static void U_EXPORT2 getDateTimeSkeleton(
const UnicodeString& skeleton,
999 int8_t differenceInfo,
1032 static void U_EXPORT2 adjustFieldWidth(
1036 int8_t differenceInfo,
1037 UBool suppressDayPeriodField,
1047 static void U_EXPORT2 findReplaceInPattern(
UnicodeString& targetString,
1082 static int32_t U_EXPORT2 splitPatternInto2Part(
const UnicodeString& intervalPattern);
1102 UBool laterDateFirst);
1117 UBool laterDateFirst);
1148 FieldPositionHandler& fphandler,
1155 FieldPositionHandler& fphandler,
1160 static const char16_t fgCalendarFieldToPatternLetter[];
1187 PatternInfo fIntervalPatterns[DateIntervalInfo::kIPI_MAX_INDEX];
1213 #endif // _DTITVFMT_H__
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Basic definitions for ICU, for both C and C++ APIs.
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
int8_t UBool
The ICU boolean type, a signed-byte integer.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
DateIntervalInfo is a public class for encapsulating localizable date time interval patterns.
TimeZone represents a time zone offset, and also figures out daylight savings.
This class represents a date interval.
UDisplayContextType
Display context types, for getting values of a particular setting.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Date/Time Pattern Generator.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UMemory is the common ICU base class.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
@ U_ZERO_ERROR
No error, no warning.
Base class for objects to which Unicode characters and strings can be appended.
UDisplayContext
Display context settings.
UCalendarDateFields
Possible fields in a UCalendar.
C API: Display context types (enum values)
C++ API: Date Interval data type.
C++ API: Format and parse dates in a language-independent manner.
@ U_INVALID_STATE_ERROR
Requested operation can not be completed with ICU in its current state.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
C++ API: Date/Time interval patterns for formatting date/time interval.
A Locale object represents a specific geographical, political, or cultural region.
Represents a span of a string containing a given field.