Go to the documentation of this file.
14 #ifndef __RELDATEFMT_H
15 #define __RELDATEFMT_H
19 #if U_SHOW_CPLUSPLUS_API
32 #if !UCONFIG_NO_FORMATTING
83 #ifndef U_HIDE_DEPRECATED_API
89 #endif // U_HIDE_DEPRECATED_API
178 #ifndef U_HIDE_DRAFT_API
190 #endif // U_HIDE_DRAFT_API
192 #ifndef U_HIDE_DEPRECATED_API
198 #endif // U_HIDE_DEPRECATED_API
244 #ifndef U_HIDE_DEPRECATED_API
250 #endif // U_HIDE_DEPRECATED_API
253 #if !UCONFIG_NO_BREAK_ITERATION
258 class RelativeDateTimeCacheData;
259 class SharedNumberFormat;
260 class SharedPluralRules;
261 class SharedBreakIterator;
264 class FormattedRelativeDateTime;
265 class FormattedRelativeDateTimeData;
267 #ifndef U_HIDE_DRAFT_API
322 FormattedRelativeDateTimeData *fData;
326 explicit FormattedRelativeDateTime(
UErrorCode errorCode)
327 : fData(nullptr), fErrorCode(errorCode) {}
328 friend class RelativeDateTimeFormatter;
495 #ifndef U_HIDE_DRAFT_API
542 #ifndef U_HIDE_DRAFT_API
590 #ifndef U_HIDE_DRAFT_API
641 #ifndef U_HIDE_DRAFT_API
706 const RelativeDateTimeCacheData* fCache;
707 const SharedNumberFormat *fNumberFormat;
708 const SharedPluralRules *fPluralRules;
711 const SharedBreakIterator *fOptBreakIterator;
720 template<
typename F,
typename... Args>
727 #ifndef U_HIDE_DRAFT_API // for FormattedRelativeDateTime
728 template<
typename F,
typename... Args>
733 #endif // U_HIDE_DRAFT_API
739 FormattedRelativeDateTimeData& output,
741 void formatAbsoluteImpl(
744 FormattedRelativeDateTimeData& output,
746 void formatNumericImpl(
749 FormattedRelativeDateTimeData& output,
751 void formatRelativeImpl(
754 FormattedRelativeDateTimeData& output,
The BreakIterator class implements methods for finding the location of boundaries in text.
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
URelativeDateTimeUnit
Represents the unit for formatting a relative date.
One more than the highest normal UDateDirection value.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C API: URelativeDateTimeFormatter, relative date formatting of unit + numeric offset.
UDateDirection
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday".
UObject is the common ICU "boilerplate" class.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
UMemory is the common ICU base class.
Plain, which means the absence of a qualifier.
One more than the highest normal UDateRelativeUnit value.
Base class for objects to which Unicode characters and strings can be appended.
UDisplayContext
Display context settings.
UDateAbsoluteUnit
Represents an absolute unit.
One more than the highest normal UDateAbsoluteUnit value.
C API: Display context types (enum values)
C++ API: Locale ID object.
UDateRelativeDateTimeFormatterStyle
The formatting style.
UDateRelativeUnit
Represents the unit for formatting a relative date.
C++ API: Common ICU base class UObject.
Requested operation can not be completed with ICU in its current state.
A Locale object represents a specific geographical, political, or cultural region.
Represents a span of a string containing a given field.