19#if U_SHOW_CPLUSPLUS_API
32#if !UCONFIG_NO_FORMATTING
83#ifndef U_HIDE_DEPRECATED_API
190#ifndef U_HIDE_DEPRECATED_API
242#ifndef U_HIDE_DEPRECATED_API
251#if !UCONFIG_NO_BREAK_ITERATION
256class RelativeDateTimeCacheData;
257class SharedNumberFormat;
258class SharedPluralRules;
259class SharedBreakIterator;
262class FormattedRelativeDateTime;
263class FormattedRelativeDateTimeData;
319 FormattedRelativeDateTimeData *fData;
324 : fData(nullptr), fErrorCode(errorCode) {}
325 friend class RelativeDateTimeFormatter;
694 const RelativeDateTimeCacheData* fCache;
695 const SharedNumberFormat *fNumberFormat;
696 const SharedPluralRules *fPluralRules;
699 const SharedBreakIterator *fOptBreakIterator;
708 template<
typename F,
typename... Args>
715 template<
typename F,
typename... Args>
725 FormattedRelativeDateTimeData& output,
727 void formatAbsoluteImpl(
730 FormattedRelativeDateTimeData& output,
732 void formatNumericImpl(
735 FormattedRelativeDateTimeData& output,
737 void formatRelativeImpl(
740 FormattedRelativeDateTimeData& output,
Base class for objects to which Unicode characters and strings can be appended.
The BreakIterator class implements methods for finding the location of boundaries in text.
Represents a span of a string containing a given field.
A Locale object represents a specific geographical, political, or cultural region.
UMemory is the common ICU base class.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Locale ID object.
UDateAbsoluteUnit
Represents an absolute unit.
@ UDAT_ABSOLUTE_FRIDAY
Friday.
@ UDAT_ABSOLUTE_YEAR
Year.
@ UDAT_ABSOLUTE_WEDNESDAY
Wednesday.
@ UDAT_ABSOLUTE_HOUR
Hour.
@ UDAT_ABSOLUTE_WEEK
Week.
@ UDAT_ABSOLUTE_MINUTE
Minute.
@ UDAT_ABSOLUTE_THURSDAY
Thursday.
@ UDAT_ABSOLUTE_TUESDAY
Tuesday.
@ UDAT_ABSOLUTE_MONTH
Month.
@ UDAT_ABSOLUTE_SUNDAY
Sunday.
@ UDAT_ABSOLUTE_UNIT_COUNT
One more than the highest normal UDateAbsoluteUnit value.
@ UDAT_ABSOLUTE_MONDAY
Monday.
@ UDAT_ABSOLUTE_SATURDAY
Saturday.
@ UDAT_ABSOLUTE_QUARTER
Quarter.
UDateRelativeUnit
Represents the unit for formatting a relative date.
@ UDAT_RELATIVE_DAYS
Days.
@ UDAT_RELATIVE_UNIT_COUNT
One more than the highest normal UDateRelativeUnit value.
@ UDAT_RELATIVE_HOURS
Hours.
@ UDAT_RELATIVE_MONTHS
Months.
@ UDAT_RELATIVE_WEEKS
Weeks.
@ UDAT_RELATIVE_YEARS
Years.
@ UDAT_RELATIVE_MINUTES
Minutes.
@ UDAT_RELATIVE_SECONDS
Seconds.
UDateDirection
Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday".
@ UDAT_DIRECTION_PLAIN
Plain, which means the absence of a qualifier.
@ UDAT_DIRECTION_THIS
This.
@ UDAT_DIRECTION_LAST_2
Two before.
@ UDAT_DIRECTION_LAST
Last.
@ UDAT_DIRECTION_NEXT
Next.
@ UDAT_DIRECTION_NEXT_2
Two after.
@ UDAT_DIRECTION_COUNT
One more than the highest normal UDateDirection value.
C API: Display context types (enum values)
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.
C++ API: Common ICU base class UObject.
C API: URelativeDateTimeFormatter, relative date formatting of unit + numeric offset.
UDateRelativeDateTimeFormatterStyle
The formatting style.
URelativeDateTimeUnit
Represents the unit for formatting a relative date.
Basic definitions for ICU, for both C and C++ APIs.
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.