19#if U_SHOW_CPLUSPLUS_API
26#if !UCONFIG_NO_FORMATTING
39class FormattedDateIntervalData;
40class DateIntervalFormat;
104 FormattedDateIntervalData *fData;
109 : fData(nullptr), fErrorCode(errorCode) {}
110 friend class DateIntervalFormat;
458 using Format::format;
752 UBool laterDateFirst;
806 void fallbackFormatRange(
811 FieldPositionHandler& fphandler,
838 UBool fromToOnSameDay,
841 FieldPositionHandler& fphandler,
934 static void U_EXPORT2 getDateTimeSkeleton(
const UnicodeString& skeleton,
997 int8_t differenceInfo,
1030 static void U_EXPORT2 adjustFieldWidth(
1034 int8_t differenceInfo,
1035 UBool suppressDayPeriodField,
1045 static void U_EXPORT2 findReplaceInPattern(
UnicodeString& targetString,
1080 static int32_t U_EXPORT2 splitPatternInto2Part(
const UnicodeString& intervalPattern);
1100 UBool laterDateFirst);
1115 UBool laterDateFirst);
1146 FieldPositionHandler& fphandler,
1153 FieldPositionHandler& fphandler,
1158 static const char16_t fgCalendarFieldToPatternLetter[];
1185 PatternInfo fIntervalPatterns[DateIntervalInfo::kIPI_MAX_INDEX];
Base class for objects to which Unicode characters and strings can be appended.
Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...
Represents a span of a string containing a given field.
DateIntervalInfo is a public class for encapsulating localizable date time interval patterns.
This class represents a date interval.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
A Locale object represents a specific geographical, political, or cultural region.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
TimeZone represents a time zone offset, and also figures out daylight savings.
UMemory is the common ICU base class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Date Interval data type.
C++ API: Date/Time interval patterns for formatting date/time interval.
C++ API: Date/Time Pattern Generator.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
bool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
C++ API: Format and parse dates in a language-independent manner.
UCalendarDateFields
Possible fields in a UCalendar.
C API: Display context types (enum values)
UDisplayContextType
Display context types, for getting values of a particular setting.
UDisplayContext
Display context settings.
int8_t UBool
The ICU boolean type, a signed-byte integer.
#define U_OVERRIDE
Defined to the C++11 "override" keyword if available.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
#define NULL
Define NULL if necessary, to nullptr for C++ and to ((void *)0) for C.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
@ U_INVALID_STATE_ERROR
Requested operation can not be completed with ICU in its current state.
@ U_ZERO_ERROR
No error, no warning.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.