Go to the documentation of this file.
15 #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION
63 #ifndef U_HIDE_DEPRECATED_API
168 #ifndef U_HIDE_DEPRECATED_API
233 #if U_SHOW_CPLUSPLUS_API
285 int32_t resultCapacity,
321 int32_t resultCapacity,
355 const UChar * relativeDateString,
356 int32_t relativeDateStringLen,
357 const UChar * timeString,
358 int32_t timeStringLen,
360 int32_t resultCapacity,
Specifies that relative unit is second, e.g.
Basic definitions for ICU, for both C and C++ APIs.
Specifies that relative unit is year, e.g.
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,...
URelativeDateTimeUnit
Represents the unit for formatting a relative date.
Specifies that relative unit is Wednesday, e.g.
void ureldatefmt_close(URelativeDateTimeFormatter *reldatefmt)
Close a URelativeDateTimeFormatter object.
Abbreviations used when possible.
Specifies that relative unit is quarter, e.g.
Specifies that relative unit is month, e.g.
Specifies that relative unit is hour, e.g.
C API: Compatibility APIs for number formatting.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Specifies that relative unit is day, 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,...
Specifies that relative unit is Friday, e.g.
Specifies that relative unit is Thursday, e.g.
One more than the highest normal URelativeDateTimeUnit value.
Specifies that relative unit is week, e.g.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
One more than the highest normal UDateRelativeDateTimeFormatterStyle value.
Specifies that relative unit is Tuesday, e.g.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
UDisplayContext
Display context settings.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Specifies that relative unit is Saturday, e.g.
void * UNumberFormat
A number formatter.
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...
Use the shortest possible form.
Specifies that relative unit is Sunday, e.g.
C API: Display context types (enum values)
Specifies that relative unit is minute, e.g.
UDateRelativeDateTimeFormatterStyle
The formatting style.
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.
#define U_NAMESPACE_BEGIN
struct URelativeDateTimeFormatter URelativeDateTimeFormatter
C typedef for struct URelativeDateTimeFormatter.
Specifies that relative unit is Monday, e.g.