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
254class RelativeDateTimeCacheData;
255class SharedNumberFormat;
256class SharedPluralRules;
257class SharedBreakIterator;
260class FormattedRelativeDateTime;
261class FormattedRelativeDateTimeData;
322 : fData(
nullptr), fErrorCode(errorCode) {}
323 friend class RelativeDateTimeFormatter;
699#if !UCONFIG_NO_BREAK_ITERATION
702 std::nullptr_t fOptBreakIterator =
nullptr;
716 template<
typename F,
typename...
Args>
723 template<
typename F,
typename...
Args>
735 void formatAbsoluteImpl(
740 void formatNumericImpl(
745 void formatRelativeImpl(
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.
"Smart pointer" base class; do not use directly: use LocalPointer etc.
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.
#define UCONFIG_NO_BREAK_ITERATION
This switch turns off break iteration.
C API: Display context types (enum values)
UDisplayContext
Display context settings.
int8_t UBool
The ICU boolean type, a signed-byte integer.
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.