13 #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION
68 #ifndef U_HIDE_DRAFT_API
173 #ifndef U_HIDE_DRAFT_API
231 #if U_SHOW_CPLUSPLUS_API
283 int32_t resultCapacity,
319 int32_t resultCapacity,
353 const UChar * relativeDateString,
354 int32_t relativeDateStringLen,
355 const UChar * timeString,
356 int32_t timeStringLen,
358 int32_t resultCapacity,
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
C API: Display context types (enum values)
UDisplayContext
Display context settings.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
void * UNumberFormat
A number formatter.
UDateRelativeDateTimeFormatterStyle
The formatting style.
@ UDAT_STYLE_COUNT
The number of styles.
@ UDAT_STYLE_LONG
Everything spelled out.
@ UDAT_STYLE_NARROW
Use the shortest possible form.
@ UDAT_STYLE_SHORT
Abbreviations used when possible.
int32_t ureldatefmt_combineDateAndTime(const URelativeDateTimeFormatter *reldatefmt, const UChar *relativeDateString, int32_t relativeDateStringLen, const UChar *timeString, int32_t timeStringLen, UChar *result, int32_t resultCapacity, UErrorCode *status)
Combines a relative date string and a time string in this object's locale.
void ureldatefmt_close(URelativeDateTimeFormatter *reldatefmt)
Close a URelativeDateTimeFormatter object.
URelativeDateTimeUnit
Represents the unit for formatting a relative date.
@ UDAT_REL_UNIT_SATURDAY
Specifies that relative unit is Saturday, e.g.
@ UDAT_REL_UNIT_WEEK
Specifies that relative unit is week, e.g.
@ UDAT_REL_UNIT_SECOND
Specifies that relative unit is second, e.g.
@ UDAT_REL_UNIT_FRIDAY
Specifies that relative unit is Friday, e.g.
@ UDAT_REL_UNIT_DAY
Specifies that relative unit is day, e.g.
@ UDAT_REL_UNIT_COUNT
Count of URelativeDateTimeUnit values
@ UDAT_REL_UNIT_MONTH
Specifies that relative unit is month, e.g.
@ UDAT_REL_UNIT_SUNDAY
Specifies that relative unit is Sunday, e.g.
@ UDAT_REL_UNIT_WEDNESDAY
Specifies that relative unit is Wednesday, e.g.
@ UDAT_REL_UNIT_QUARTER
Specifies that relative unit is quarter, e.g.
@ UDAT_REL_UNIT_HOUR
Specifies that relative unit is hour, e.g.
@ UDAT_REL_UNIT_MINUTE
Specifies that relative unit is minute, e.g.
@ UDAT_REL_UNIT_TUESDAY
Specifies that relative unit is Tuesday, e.g.
@ UDAT_REL_UNIT_THURSDAY
Specifies that relative unit is Thursday, e.g.
@ UDAT_REL_UNIT_MONDAY
Specifies that relative unit is Monday, e.g.
@ UDAT_REL_UNIT_YEAR
Specifies that relative unit is year, e.g.
int32_t ureldatefmt_formatNumeric(const URelativeDateTimeFormatter *reldatefmt, double offset, URelativeDateTimeUnit unit, UChar *result, int32_t resultCapacity, UErrorCode *status)
Format a combination of URelativeDateTimeUnit and numeric offset using a numeric style,...
struct URelativeDateTimeFormatter URelativeDateTimeFormatter
C typedef for struct URelativeDateTimeFormatter.
URelativeDateTimeFormatter * ureldatefmt_open(const char *locale, UNumberFormat *nfToAdopt, UDateRelativeDateTimeFormatterStyle width, UDisplayContext capitalizationContext, UErrorCode *status)
Open a new URelativeDateTimeFormatter object for a given locale using the specified width and capital...
int32_t ureldatefmt_format(const URelativeDateTimeFormatter *reldatefmt, double offset, URelativeDateTimeUnit unit, UChar *result, int32_t resultCapacity, UErrorCode *status)
Format a combination of URelativeDateTimeUnit and numeric offset using a text style if possible,...
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.