Файловый менеджер - Редактировать - /opt/alt/alt-nodejs20/root/usr/share/doc/alt-nodejs20-libicu-doc/classicu_1_1RelativeDateTimeFormatter.html
Назад
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>ICU 78.3: icu::RelativeDateTimeFormatter Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">ICU 78.3  <span id="projectnumber">78.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceicu.html">icu</a></li><li class="navelem"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html">RelativeDateTimeFormatter</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">icu::RelativeDateTimeFormatter Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>Formats simple relative dates. <a href="classicu_1_1RelativeDateTimeFormatter.html#details">More...</a></p> <p><code>#include <<a class="el" href="reldatefmt_8h_source.html">reldatefmt.h</a>></code></p> <div class="dynheader"> Inheritance diagram for icu::RelativeDateTimeFormatter:</div> <div class="dyncontent"> <div class="center"> <img src="classicu_1_1RelativeDateTimeFormatter.png" usemap="#icu::RelativeDateTimeFormatter_map" alt=""/> <map id="icu::RelativeDateTimeFormatter_map" name="icu::RelativeDateTimeFormatter_map"> <area href="classicu_1_1UObject.html" title="UObject is the common ICU "boilerplate" class. " alt="icu::UObject" shape="rect" coords="0,56,186,80"/> <area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class. " alt="icu::UMemory" shape="rect" coords="0,0,186,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a2a0863aa1ea50e3c0c9b1193c53cc352"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a2a0863aa1ea50e3c0c9b1193c53cc352">RelativeDateTimeFormatter</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a2a0863aa1ea50e3c0c9b1193c53cc352"><td class="mdescLeft"> </td><td class="mdescRight">Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with default locale. <a href="#a2a0863aa1ea50e3c0c9b1193c53cc352">More...</a><br /></td></tr> <tr class="separator:a2a0863aa1ea50e3c0c9b1193c53cc352"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0df7696d688e4eacfc7c8857cb524f80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a0df7696d688e4eacfc7c8857cb524f80">RelativeDateTimeFormatter</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a0df7696d688e4eacfc7c8857cb524f80"><td class="mdescLeft"> </td><td class="mdescRight">Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with given locale. <a href="#a0df7696d688e4eacfc7c8857cb524f80">More...</a><br /></td></tr> <tr class="separator:a0df7696d688e4eacfc7c8857cb524f80"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6f20fa0e73072c1c7cfe6aef594fdae1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a6f20fa0e73072c1c7cfe6aef594fdae1">RelativeDateTimeFormatter</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &locale, <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> *nfToAdopt, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a6f20fa0e73072c1c7cfe6aef594fdae1"><td class="mdescLeft"> </td><td class="mdescRight">Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with given locale and <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a>. <a href="#a6f20fa0e73072c1c7cfe6aef594fdae1">More...</a><br /></td></tr> <tr class="separator:a6f20fa0e73072c1c7cfe6aef594fdae1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7b6802efd681c0fde3a4131eb9bda9f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a7b6802efd681c0fde3a4131eb9bda9f3">RelativeDateTimeFormatter</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &locale, <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> *nfToAdopt, <a class="el" href="ureldatefmt_8h.html#a43daf21543096115200b055932f9ad58">UDateRelativeDateTimeFormatterStyle</a> style, <a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> capitalizationContext, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a7b6802efd681c0fde3a4131eb9bda9f3"><td class="mdescLeft"> </td><td class="mdescRight">Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with given locale, <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a>, and capitalization context. <a href="#a7b6802efd681c0fde3a4131eb9bda9f3">More...</a><br /></td></tr> <tr class="separator:a7b6802efd681c0fde3a4131eb9bda9f3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afa45097f46b48f0f4a747031e4432b55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#afa45097f46b48f0f4a747031e4432b55">RelativeDateTimeFormatter</a> (const <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html">RelativeDateTimeFormatter</a> &other)</td></tr> <tr class="memdesc:afa45097f46b48f0f4a747031e4432b55"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#afa45097f46b48f0f4a747031e4432b55">More...</a><br /></td></tr> <tr class="separator:afa45097f46b48f0f4a747031e4432b55"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa86ccb4a4df58271e45f6e7ad61e47e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html">RelativeDateTimeFormatter</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#aa86ccb4a4df58271e45f6e7ad61e47e9">operator=</a> (const <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html">RelativeDateTimeFormatter</a> &other)</td></tr> <tr class="memdesc:aa86ccb4a4df58271e45f6e7ad61e47e9"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#aa86ccb4a4df58271e45f6e7ad61e47e9">More...</a><br /></td></tr> <tr class="separator:aa86ccb4a4df58271e45f6e7ad61e47e9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a31d835e2cbc25e99638bef11d856a7ae"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a31d835e2cbc25e99638bef11d856a7ae">~RelativeDateTimeFormatter</a> ()</td></tr> <tr class="memdesc:a31d835e2cbc25e99638bef11d856a7ae"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a31d835e2cbc25e99638bef11d856a7ae">More...</a><br /></td></tr> <tr class="separator:a31d835e2cbc25e99638bef11d856a7ae"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1938e2d46797c1033658b7b6a0e5ff79"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a1938e2d46797c1033658b7b6a0e5ff79">format</a> (double quantity, <a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> direction, <a class="el" href="reldatefmt_8h.html#acef843ce890f170add50c0d08aa0c15a">UDateRelativeUnit</a> unit, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:a1938e2d46797c1033658b7b6a0e5ff79"><td class="mdescLeft"> </td><td class="mdescRight">Formats a relative date with a quantity such as "in 5 days" or "3 months ago". <a href="#a1938e2d46797c1033658b7b6a0e5ff79">More...</a><br /></td></tr> <tr class="separator:a1938e2d46797c1033658b7b6a0e5ff79"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a083321d7a438e0a8088b45b8d2eb2950"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a083321d7a438e0a8088b45b8d2eb2950">formatToValue</a> (double quantity, <a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> direction, <a class="el" href="reldatefmt_8h.html#acef843ce890f170add50c0d08aa0c15a">UDateRelativeUnit</a> unit, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:a083321d7a438e0a8088b45b8d2eb2950"><td class="mdescLeft"> </td><td class="mdescRight">Formats a relative date with a quantity such as "in 5 days" or "3 months ago". <a href="#a083321d7a438e0a8088b45b8d2eb2950">More...</a><br /></td></tr> <tr class="separator:a083321d7a438e0a8088b45b8d2eb2950"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a095731d35fdc42614b6bb05f7de80a37"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a095731d35fdc42614b6bb05f7de80a37">format</a> (<a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> direction, <a class="el" href="reldatefmt_8h.html#a7790f9d3058dac2898cddfc65c3c3b16">UDateAbsoluteUnit</a> unit, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:a095731d35fdc42614b6bb05f7de80a37"><td class="mdescLeft"> </td><td class="mdescRight">Formats a relative date without a quantity. <a href="#a095731d35fdc42614b6bb05f7de80a37">More...</a><br /></td></tr> <tr class="separator:a095731d35fdc42614b6bb05f7de80a37"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a07e05e9ec5be39729238a9a538159cd4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a07e05e9ec5be39729238a9a538159cd4">formatToValue</a> (<a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> direction, <a class="el" href="reldatefmt_8h.html#a7790f9d3058dac2898cddfc65c3c3b16">UDateAbsoluteUnit</a> unit, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:a07e05e9ec5be39729238a9a538159cd4"><td class="mdescLeft"> </td><td class="mdescRight">Formats a relative date without a quantity. <a href="#a07e05e9ec5be39729238a9a538159cd4">More...</a><br /></td></tr> <tr class="separator:a07e05e9ec5be39729238a9a538159cd4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7a65ce3832be25a7b49bdd3765bf663f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a7a65ce3832be25a7b49bdd3765bf663f">formatNumeric</a> (double offset, <a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> unit, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:a7a65ce3832be25a7b49bdd3765bf663f"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a numeric style, e.g. <a href="#a7a65ce3832be25a7b49bdd3765bf663f">More...</a><br /></td></tr> <tr class="separator:a7a65ce3832be25a7b49bdd3765bf663f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af3cd3b81e9fffbcd9629cb38697478bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#af3cd3b81e9fffbcd9629cb38697478bd">formatNumericToValue</a> (double offset, <a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> unit, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:af3cd3b81e9fffbcd9629cb38697478bd"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a numeric style, e.g. <a href="#af3cd3b81e9fffbcd9629cb38697478bd">More...</a><br /></td></tr> <tr class="separator:af3cd3b81e9fffbcd9629cb38697478bd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adc28289bbcecd1025dd8e3dfac068b70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#adc28289bbcecd1025dd8e3dfac068b70">format</a> (double offset, <a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> unit, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:adc28289bbcecd1025dd8e3dfac068b70"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a text style if possible, e.g. <a href="#adc28289bbcecd1025dd8e3dfac068b70">More...</a><br /></td></tr> <tr class="separator:adc28289bbcecd1025dd8e3dfac068b70"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a17ef7f39cd9d33b7ef36f28b491e0a68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a17ef7f39cd9d33b7ef36f28b491e0a68">formatToValue</a> (double offset, <a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> unit, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:a17ef7f39cd9d33b7ef36f28b491e0a68"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a text style if possible, e.g. <a href="#a17ef7f39cd9d33b7ef36f28b491e0a68">More...</a><br /></td></tr> <tr class="separator:a17ef7f39cd9d33b7ef36f28b491e0a68"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7500fd87c85b0410c9d4b26322bd149c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a7500fd87c85b0410c9d4b26322bd149c">combineDateAndTime</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &relativeDateString, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &timeString, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr class="memdesc:a7500fd87c85b0410c9d4b26322bd149c"><td class="mdescLeft"> </td><td class="mdescRight">Combines a relative date string and a time string in this object's locale. <a href="#a7500fd87c85b0410c9d4b26322bd149c">More...</a><br /></td></tr> <tr class="separator:a7500fd87c85b0410c9d4b26322bd149c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a462e323c6dd83c3d05c9738c95507502"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> const <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a462e323c6dd83c3d05c9738c95507502">getNumberFormat</a> () const</td></tr> <tr class="memdesc:a462e323c6dd83c3d05c9738c95507502"><td class="mdescLeft"> </td><td class="mdescRight">Returns the <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> this object is using. <a href="#a462e323c6dd83c3d05c9738c95507502">More...</a><br /></td></tr> <tr class="separator:a462e323c6dd83c3d05c9738c95507502"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae35df2123665b3701e0f6efc50cd6347"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#ae35df2123665b3701e0f6efc50cd6347">getCapitalizationContext</a> () const</td></tr> <tr class="memdesc:ae35df2123665b3701e0f6efc50cd6347"><td class="mdescLeft"> </td><td class="mdescRight">Returns the capitalization context. <a href="#ae35df2123665b3701e0f6efc50cd6347">More...</a><br /></td></tr> <tr class="separator:ae35df2123665b3701e0f6efc50cd6347"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aed215d264ff48b2ecb713e6ae2716590"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="ureldatefmt_8h.html#a43daf21543096115200b055932f9ad58">UDateRelativeDateTimeFormatterStyle</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#aed215d264ff48b2ecb713e6ae2716590">getFormatStyle</a> () const</td></tr> <tr class="memdesc:aed215d264ff48b2ecb713e6ae2716590"><td class="mdescLeft"> </td><td class="mdescRight">Returns the format style. <a href="#aed215d264ff48b2ecb713e6ae2716590">More...</a><br /></td></tr> <tr class="separator:aed215d264ff48b2ecb713e6ae2716590"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classicu_1_1UObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classicu_1_1UObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classicu_1_1UObject.html">icu::UObject</a></td></tr> <tr class="memitem:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#af10026497704f510d3d1f2eff50acb18">~UObject</a> ()</td></tr> <tr class="memdesc:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="classicu_1_1UObject.html#af10026497704f510d3d1f2eff50acb18">More...</a><br /></td></tr> <tr class="separator:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#aca1169c4978c52ce2b76eda104e9a214">getDynamicClassID</a> () const</td></tr> <tr class="memdesc:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft"> </td><td class="mdescRight">ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. <a href="classicu_1_1UObject.html#aca1169c4978c52ce2b76eda104e9a214">More...</a><br /></td></tr> <tr class="separator:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Formats simple relative dates. </p> <p>There are two types of relative dates that it handles: </p><ul> <li> relative dates with a quantity e.g "in 5 days" </li> <li> relative dates without a quantity e.g "next Tuesday" </li> </ul> <p>This API is very basic and is intended to be a building block for more fancy APIs. The caller tells it exactly what to display in a locale independent way. While this class automatically provides the correct plural forms, the grammatical form is otherwise as neutral as possible. It is the caller's responsibility to handle cut-off logic such as deciding between displaying "in 7 days" or "in 1 week." This API supports relative dates involving one single unit. This API does not support relative dates involving compound units, e.g "in 5 days and 4 hours" nor does it support parsing. </p> <p>This class is mostly thread safe and immutable with the following caveats:</p><ol type="1"> <li>The assignment operator violates Immutability. It must not be used concurrently with other operations.</li> <li>Caller must not hold onto adopted pointers. </li> </ol> <p>This class is not intended for public subclassing. </p> <p>Here are some examples of use: </p><blockquote class="doxtable"> <pre> UErrorCode status = U_ZERO_ERROR; <a class="el" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> appendTo; <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> fmt(status); // Appends "in 1 day" fmt.format( 1, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_DAYS, appendTo, status); // Appends "in 3 days" fmt.format( 3, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_DAYS, appendTo, status); // Appends "3.2 years ago" fmt.format( 3.2, UDAT_DIRECTION_LAST, UDAT_RELATIVE_YEARS, appendTo, status); // Appends "last Sunday" fmt.format(UDAT_DIRECTION_LAST, UDAT_ABSOLUTE_SUNDAY, appendTo, status); // Appends "this Sunday" fmt.format(UDAT_DIRECTION_THIS, UDAT_ABSOLUTE_SUNDAY, appendTo, status); // Appends "next Sunday" fmt.format(UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_SUNDAY, appendTo, status); // Appends "Sunday" fmt.format(UDAT_DIRECTION_PLAIN, UDAT_ABSOLUTE_SUNDAY, appendTo, status);</pre><pre>// Appends "yesterday" fmt.format(UDAT_DIRECTION_LAST, UDAT_ABSOLUTE_DAY, appendTo, status); // Appends "today" fmt.format(UDAT_DIRECTION_THIS, UDAT_ABSOLUTE_DAY, appendTo, status); // Appends "tomorrow" fmt.format(UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_DAY, appendTo, status); // Appends "now" fmt.format(UDAT_DIRECTION_PLAIN, UDAT_ABSOLUTE_NOW, appendTo, status);</pre><pre></pre> </blockquote> <p>The UDateRelativeDateTimeFormatterStyle parameter allows selection of different length styles: LONG ("3 seconds ago"), SHORT ("3 sec. ago"), NARROW ("3s ago"). In the future, we may add more forms, such as relative day periods ("yesterday afternoon"), etc.</p> <p>The <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> class is not intended for public subclassing.</p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005493">Stable:</a></b></dt><dd>ICU 53 </dd></dl> <p class="definition">Definition at line <a class="el" href="reldatefmt_8h_source.html#l00396">396</a> of file <a class="el" href="reldatefmt_8h_source.html">reldatefmt.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a2a0863aa1ea50e3c0c9b1193c53cc352"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2a0863aa1ea50e3c0c9b1193c53cc352">◆ </a></span>RelativeDateTimeFormatter() <span class="overload">[1/5]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> icu::RelativeDateTimeFormatter::RelativeDateTimeFormatter </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with default locale. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005498">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="a0df7696d688e4eacfc7c8857cb524f80"></a> <h2 class="memtitle"><span class="permalink"><a href="#a0df7696d688e4eacfc7c8857cb524f80">◆ </a></span>RelativeDateTimeFormatter() <span class="overload">[2/5]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> icu::RelativeDateTimeFormatter::RelativeDateTimeFormatter </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with given locale. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005499">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="a6f20fa0e73072c1c7cfe6aef594fdae1"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6f20fa0e73072c1c7cfe6aef594fdae1">◆ </a></span>RelativeDateTimeFormatter() <span class="overload">[3/5]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> icu::RelativeDateTimeFormatter::RelativeDateTimeFormatter </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> * </td> <td class="paramname"><em>nfToAdopt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with given locale and <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a>. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">locale</td><td>the locale </td></tr> <tr><td class="paramname">nfToAdopt</td><td>Constructed object takes ownership of this pointer. It is an error for caller to delete this pointer or change its contents after calling this constructor. </td></tr> <tr><td class="paramname">status</td><td>Any error is returned here. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005500">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="a7b6802efd681c0fde3a4131eb9bda9f3"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7b6802efd681c0fde3a4131eb9bda9f3">◆ </a></span>RelativeDateTimeFormatter() <span class="overload">[4/5]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> icu::RelativeDateTimeFormatter::RelativeDateTimeFormatter </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> * </td> <td class="paramname"><em>nfToAdopt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="ureldatefmt_8h.html#a43daf21543096115200b055932f9ad58">UDateRelativeDateTimeFormatterStyle</a> </td> <td class="paramname"><em>style</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> </td> <td class="paramname"><em>capitalizationContext</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Create <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html" title="Formats simple relative dates. ">RelativeDateTimeFormatter</a> with given locale, <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a>, and capitalization context. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">locale</td><td>the locale </td></tr> <tr><td class="paramname">nfToAdopt</td><td>Constructed object takes ownership of this pointer. It is an error for caller to delete this pointer or change its contents after calling this constructor. Caller may pass nullptr for this argument if they want default number format behavior. </td></tr> <tr><td class="paramname">style</td><td>the format style. The UDAT_RELATIVE bit field has no effect. </td></tr> <tr><td class="paramname">capitalizationContext</td><td>A value from UDisplayContext that pertains to capitalization. </td></tr> <tr><td class="paramname">status</td><td>Any error is returned here. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005501">Stable:</a></b></dt><dd>ICU 54 </dd></dl> </div> </div> <a id="afa45097f46b48f0f4a747031e4432b55"></a> <h2 class="memtitle"><span class="permalink"><a href="#afa45097f46b48f0f4a747031e4432b55">◆ </a></span>RelativeDateTimeFormatter() <span class="overload">[5/5]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> icu::RelativeDateTimeFormatter::RelativeDateTimeFormatter </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html">RelativeDateTimeFormatter</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Copy constructor. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005502">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="a31d835e2cbc25e99638bef11d856a7ae"></a> <h2 class="memtitle"><span class="permalink"><a href="#a31d835e2cbc25e99638bef11d856a7ae">◆ </a></span>~RelativeDateTimeFormatter()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> icu::RelativeDateTimeFormatter::~RelativeDateTimeFormatter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Destructor. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005504">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a7500fd87c85b0410c9d4b26322bd149c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7500fd87c85b0410c9d4b26322bd149c">◆ </a></span>combineDateAndTime()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>& icu::RelativeDateTimeFormatter::combineDateAndTime </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>relativeDateString</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>timeString</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Combines a relative date string and a time string in this object's locale. </p> <p>This is done with the same date-time separator used for the default calendar in this locale.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">relativeDateString</td><td>the relative date, e.g 'yesterday' </td></tr> <tr><td class="paramname">timeString</td><td>the time e.g '3:45' </td></tr> <tr><td class="paramname">appendTo</td><td>concatenated date and time appended here </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>appendTo </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005513">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="a1938e2d46797c1033658b7b6a0e5ff79"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1938e2d46797c1033658b7b6a0e5ff79">◆ </a></span>format() <span class="overload">[1/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>& icu::RelativeDateTimeFormatter::format </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>quantity</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> </td> <td class="paramname"><em>direction</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#acef843ce890f170add50c0d08aa0c15a">UDateRelativeUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Formats a relative date with a quantity such as "in 5 days" or "3 months ago". </p> <p>This method returns a String. To get more information about the formatting result, use <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a083321d7a438e0a8088b45b8d2eb2950" title="Formats a relative date with a quantity such as "in 5 days" or "3 months ago". ">formatToValue()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">quantity</td><td>The numerical amount e.g 5. This value is formatted according to this object's <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> object. </td></tr> <tr><td class="paramname">direction</td><td>NEXT means a future relative date; LAST means a past relative date. If direction is anything else, this method sets status to U_ILLEGAL_ARGUMENT_ERROR. </td></tr> <tr><td class="paramname">unit</td><td>the unit e.g day? month? year? </td></tr> <tr><td class="paramname">appendTo</td><td>The string to which the formatted result will be appended </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>appendTo </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005505">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="a095731d35fdc42614b6bb05f7de80a37"></a> <h2 class="memtitle"><span class="permalink"><a href="#a095731d35fdc42614b6bb05f7de80a37">◆ </a></span>format() <span class="overload">[2/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>& icu::RelativeDateTimeFormatter::format </td> <td>(</td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> </td> <td class="paramname"><em>direction</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#a7790f9d3058dac2898cddfc65c3c3b16">UDateAbsoluteUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Formats a relative date without a quantity. </p> <p>This method returns a String. To get more information about the formatting result, use <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a083321d7a438e0a8088b45b8d2eb2950" title="Formats a relative date with a quantity such as "in 5 days" or "3 months ago". ">formatToValue()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">direction</td><td>NEXT, LAST, THIS, etc. </td></tr> <tr><td class="paramname">unit</td><td>e.g SATURDAY, DAY, MONTH </td></tr> <tr><td class="paramname">appendTo</td><td>The string to which the formatted result will be appended. If the value of direction is documented as not being fully supported in all locales then this method leaves appendTo unchanged if no format string is available. </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>appendTo </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005507">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="adc28289bbcecd1025dd8e3dfac068b70"></a> <h2 class="memtitle"><span class="permalink"><a href="#adc28289bbcecd1025dd8e3dfac068b70">◆ </a></span>format() <span class="overload">[3/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>& icu::RelativeDateTimeFormatter::format </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>offset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a text style if possible, e.g. </p> <p>"last week", "this week", "next week", "yesterday", "tomorrow". Falls back to numeric style if no appropriate text term is available for the specified offset in the object's locale.</p> <p>This method returns a String. To get more information about the formatting result, use <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a083321d7a438e0a8088b45b8d2eb2950" title="Formats a relative date with a quantity such as "in 5 days" or "3 months ago". ">formatToValue()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">offset</td><td>The signed offset for the specified unit. </td></tr> <tr><td class="paramname">unit</td><td>The unit to use when formatting the relative date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. </td></tr> <tr><td class="paramname">appendTo</td><td>The string to which the formatted result will be appended. </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>appendTo </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005511">Stable:</a></b></dt><dd>ICU 57 </dd></dl> </div> </div> <a id="a7a65ce3832be25a7b49bdd3765bf663f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7a65ce3832be25a7b49bdd3765bf663f">◆ </a></span>formatNumeric()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>& icu::RelativeDateTimeFormatter::formatNumeric </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>offset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a numeric style, e.g. </p> <p>"1 week ago", "in 1 week", "5 weeks ago", "in 5 weeks".</p> <p>This method returns a String. To get more information about the formatting result, use <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#af3cd3b81e9fffbcd9629cb38697478bd" title="Format a combination of URelativeDateTimeUnit and numeric offset using a numeric style, e.g. ">formatNumericToValue()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">offset</td><td>The signed offset for the specified unit. This will be formatted according to this object's <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> object. </td></tr> <tr><td class="paramname">unit</td><td>The unit to use when formatting the relative date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. </td></tr> <tr><td class="paramname">appendTo</td><td>The string to which the formatted result will be appended. </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>appendTo </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005509">Stable:</a></b></dt><dd>ICU 57 </dd></dl> </div> </div> <a id="af3cd3b81e9fffbcd9629cb38697478bd"></a> <h2 class="memtitle"><span class="permalink"><a href="#af3cd3b81e9fffbcd9629cb38697478bd">◆ </a></span>formatNumericToValue()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> icu::RelativeDateTimeFormatter::formatNumericToValue </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>offset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a numeric style, e.g. </p> <p>"1 week ago", "in 1 week", "5 weeks ago", "in 5 weeks".</p> <p>This method returns a <a class="el" href="classicu_1_1FormattedRelativeDateTime.html" title="An immutable class containing the result of a relative datetime formatting operation. ">FormattedRelativeDateTime</a>, which exposes more information than the String returned by <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a7a65ce3832be25a7b49bdd3765bf663f" title="Format a combination of URelativeDateTimeUnit and numeric offset using a numeric style, e.g. ">formatNumeric()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">offset</td><td>The signed offset for the specified unit. This will be formatted according to this object's <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> object. </td></tr> <tr><td class="paramname">unit</td><td>The unit to use when formatting the relative date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The formatted relative datetime </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005510">Stable:</a></b></dt><dd>ICU 64 </dd></dl> </div> </div> <a id="a083321d7a438e0a8088b45b8d2eb2950"></a> <h2 class="memtitle"><span class="permalink"><a href="#a083321d7a438e0a8088b45b8d2eb2950">◆ </a></span>formatToValue() <span class="overload">[1/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> icu::RelativeDateTimeFormatter::formatToValue </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>quantity</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> </td> <td class="paramname"><em>direction</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#acef843ce890f170add50c0d08aa0c15a">UDateRelativeUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Formats a relative date with a quantity such as "in 5 days" or "3 months ago". </p> <p>This method returns a <a class="el" href="classicu_1_1FormattedRelativeDateTime.html" title="An immutable class containing the result of a relative datetime formatting operation. ">FormattedRelativeDateTime</a>, which exposes more information than the String returned by <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a1938e2d46797c1033658b7b6a0e5ff79" title="Formats a relative date with a quantity such as "in 5 days" or "3 months ago". ">format()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">quantity</td><td>The numerical amount e.g 5. This value is formatted according to this object's <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> object. </td></tr> <tr><td class="paramname">direction</td><td>NEXT means a future relative date; LAST means a past relative date. If direction is anything else, this method sets status to U_ILLEGAL_ARGUMENT_ERROR. </td></tr> <tr><td class="paramname">unit</td><td>the unit e.g day? month? year? </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The formatted relative datetime </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005506">Stable:</a></b></dt><dd>ICU 64 </dd></dl> </div> </div> <a id="a07e05e9ec5be39729238a9a538159cd4"></a> <h2 class="memtitle"><span class="permalink"><a href="#a07e05e9ec5be39729238a9a538159cd4">◆ </a></span>formatToValue() <span class="overload">[2/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> icu::RelativeDateTimeFormatter::formatToValue </td> <td>(</td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#af26ab0856c1c3c66c20b3b58a51f6117">UDateDirection</a> </td> <td class="paramname"><em>direction</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="reldatefmt_8h.html#a7790f9d3058dac2898cddfc65c3c3b16">UDateAbsoluteUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Formats a relative date without a quantity. </p> <p>This method returns a <a class="el" href="classicu_1_1FormattedRelativeDateTime.html" title="An immutable class containing the result of a relative datetime formatting operation. ">FormattedRelativeDateTime</a>, which exposes more information than the String returned by <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a1938e2d46797c1033658b7b6a0e5ff79" title="Formats a relative date with a quantity such as "in 5 days" or "3 months ago". ">format()</a>.</p> <p>If the string is not available in the requested locale, the return value will be empty (calling toString will give an empty string).</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">direction</td><td>NEXT, LAST, THIS, etc. </td></tr> <tr><td class="paramname">unit</td><td>e.g SATURDAY, DAY, MONTH </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The formatted relative datetime </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005508">Stable:</a></b></dt><dd>ICU 64 </dd></dl> </div> </div> <a id="a17ef7f39cd9d33b7ef36f28b491e0a68"></a> <h2 class="memtitle"><span class="permalink"><a href="#a17ef7f39cd9d33b7ef36f28b491e0a68">◆ </a></span>formatToValue() <span class="overload">[3/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1FormattedRelativeDateTime.html">FormattedRelativeDateTime</a> icu::RelativeDateTimeFormatter::formatToValue </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>offset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="ureldatefmt_8h.html#aa44d7fab2f7f58a0ceb8912faab59761">URelativeDateTimeUnit</a> </td> <td class="paramname"><em>unit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> a combination of URelativeDateTimeUnit and numeric offset using a text style if possible, e.g. </p> <p>"last week", "this week", "next week", "yesterday", "tomorrow". Falls back to numeric style if no appropriate text term is available for the specified offset in the object's locale.</p> <p>This method returns a <a class="el" href="classicu_1_1FormattedRelativeDateTime.html" title="An immutable class containing the result of a relative datetime formatting operation. ">FormattedRelativeDateTime</a>, which exposes more information than the String returned by <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html#a1938e2d46797c1033658b7b6a0e5ff79" title="Formats a relative date with a quantity such as "in 5 days" or "3 months ago". ">format()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">offset</td><td>The signed offset for the specified unit. </td></tr> <tr><td class="paramname">unit</td><td>The unit to use when formatting the relative date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. </td></tr> <tr><td class="paramname">status</td><td>ICU error code returned here. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The formatted relative datetime </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005512">Stable:</a></b></dt><dd>ICU 64 </dd></dl> </div> </div> <a id="ae35df2123665b3701e0f6efc50cd6347"></a> <h2 class="memtitle"><span class="permalink"><a href="#ae35df2123665b3701e0f6efc50cd6347">◆ </a></span>getCapitalizationContext()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> icu::RelativeDateTimeFormatter::getCapitalizationContext </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the capitalization context. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005515">Stable:</a></b></dt><dd>ICU 54 </dd></dl> </div> </div> <a id="aed215d264ff48b2ecb713e6ae2716590"></a> <h2 class="memtitle"><span class="permalink"><a href="#aed215d264ff48b2ecb713e6ae2716590">◆ </a></span>getFormatStyle()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="ureldatefmt_8h.html#a43daf21543096115200b055932f9ad58">UDateRelativeDateTimeFormatterStyle</a> icu::RelativeDateTimeFormatter::getFormatStyle </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the format style. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005516">Stable:</a></b></dt><dd>ICU 54 </dd></dl> </div> </div> <a id="a462e323c6dd83c3d05c9738c95507502"></a> <h2 class="memtitle"><span class="permalink"><a href="#a462e323c6dd83c3d05c9738c95507502">◆ </a></span>getNumberFormat()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> const <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a>& icu::RelativeDateTimeFormatter::getNumberFormat </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> this object is using. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005514">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <a id="aa86ccb4a4df58271e45f6e7ad61e47e9"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa86ccb4a4df58271e45f6e7ad61e47e9">◆ </a></span>operator=()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html">RelativeDateTimeFormatter</a>& icu::RelativeDateTimeFormatter::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1RelativeDateTimeFormatter.html">RelativeDateTimeFormatter</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assignment operator. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable005503">Stable:</a></b></dt><dd>ICU 53 </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>i18n/unicode/<a class="el" href="reldatefmt_8h_source.html">reldatefmt.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>
| ver. 1.6 |
Github
|
.
| PHP 8.3.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка