<!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.11"/> <title>ICU 58.2: tmutfmt.h File 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="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 58.2  <span id="projectnumber">58.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.11 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li><li class="navelem"><a class="el" href="dir_3c42bef9a3e7804b3d74ebb2809ebf86.html">i18n</a></li><li class="navelem"><a class="el" href="dir_fa4147b4d9cbc9ae7619e21b25239322.html">unicode</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#nested-classes">Data Structures</a> | <a href="#namespaces">Namespaces</a> | <a href="#typedef-members">Typedefs</a> | <a href="#enum-members">Enumerations</a> </div> <div class="headertitle"> <div class="title">tmutfmt.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>C++ API: Format and parse duration in single time unit. <a href="#details">More...</a></p> <div class="textblock"><code>#include "<a class="el" href="utypes_8h_source.html">unicode/utypes.h</a>"</code><br /> <code>#include "<a class="el" href="unistr_8h_source.html">unicode/unistr.h</a>"</code><br /> <code>#include "<a class="el" href="tmunit_8h_source.html">unicode/tmunit.h</a>"</code><br /> <code>#include "<a class="el" href="tmutamt_8h_source.html">unicode/tmutamt.h</a>"</code><br /> <code>#include "<a class="el" href="measfmt_8h_source.html">unicode/measfmt.h</a>"</code><br /> <code>#include "<a class="el" href="numfmt_8h_source.html">unicode/numfmt.h</a>"</code><br /> <code>#include "<a class="el" href="plurrule_8h_source.html">unicode/plurrule.h</a>"</code><br /> </div> <p><a href="tmutfmt_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Data Structures</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1TimeUnitFormat.html">icu::TimeUnitFormat</a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> or parse a <a class="el" href="classicu_1_1TimeUnitAmount.html" title="Express a duration as a time unit and number. ">TimeUnitAmount</a>, using plural rules for the units where available. <a href="classicu_1_1TimeUnitFormat.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> Namespaces</h2></td></tr> <tr class="memitem:namespaceicu"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceicu.html">icu</a></td></tr> <tr class="memdesc:namespaceicu"><td class="mdescLeft"> </td><td class="mdescRight">File <a class="el" href="coll_8h.html" title="C++ API: Collation Service. ">coll.h</a>. <br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr class="memitem:a082436426d89a0c7fc83ca94e1e11fb2"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3f">UTimeUnitFormatStyle</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="tmutfmt_8h.html#a082436426d89a0c7fc83ca94e1e11fb2">UTimeUnitFormatStyle</a></td></tr> <tr class="separator:a082436426d89a0c7fc83ca94e1e11fb2"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> Enumerations</h2></td></tr> <tr class="memitem:ace3ab3a9adff9b70f2e8f153e0f18e3f"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3f">UTimeUnitFormatStyle</a> { <a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3fae9da691edeb42d9fd00f872c5aec0cd4">UTMUTFMT_FULL_STYLE</a>, <a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3fa1de2b8fbe4639aecc8b19ec5b7837a20">UTMUTFMT_ABBREVIATED_STYLE</a>, <a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3facb2233346493c90d46d57b2f086b74cb">UTMUTFMT_FORMAT_STYLE_COUNT</a> }<tr class="memdesc:ace3ab3a9adff9b70f2e8f153e0f18e3f"><td class="mdescLeft"> </td><td class="mdescRight">Constants for various styles. <a href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3f">More...</a><br /></td></tr> </td></tr> <tr class="separator:ace3ab3a9adff9b70f2e8f153e0f18e3f"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>C++ API: Format and parse duration in single time unit. </p> <p>Definition in file <a class="el" href="tmutfmt_8h_source.html">tmutfmt.h</a>.</p> </div><h2 class="groupheader">Typedef Documentation</h2> <a class="anchor" id="a082436426d89a0c7fc83ca94e1e11fb2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef enum <a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3f">UTimeUnitFormatStyle</a> <a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3f">UTimeUnitFormatStyle</a></td> </tr> </table> </div><div class="memdoc"> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000375">Deprecated:</a></b></dt><dd>ICU 53 </dd></dl> <p>Definition at line <a class="el" href="tmutfmt_8h_source.html#l00047">47</a> of file <a class="el" href="tmutfmt_8h_source.html">tmutfmt.h</a>.</p> </div> </div> <h2 class="groupheader">Enumeration Type Documentation</h2> <a class="anchor" id="ace3ab3a9adff9b70f2e8f153e0f18e3f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="tmutfmt_8h.html#ace3ab3a9adff9b70f2e8f153e0f18e3f">UTimeUnitFormatStyle</a></td> </tr> </table> </div><div class="memdoc"> <p>Constants for various styles. </p> <p>There are 2 styles: full name and abbreviated name. For example, for English, the full name for hour duration is "3 hours", and the abbreviated name is "3 hrs". </p><dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000374">Deprecated:</a></b></dt><dd>ICU 53 Use MeasureFormat and UMeasureFormatWidth instead. </dd></dl> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ace3ab3a9adff9b70f2e8f153e0f18e3fae9da691edeb42d9fd00f872c5aec0cd4"></a>UTMUTFMT_FULL_STYLE </td><td class="fielddoc"> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000376">Deprecated:</a></b></dt><dd>ICU 53 </dd></dl> </td></tr> <tr><td class="fieldname"><a class="anchor" id="ace3ab3a9adff9b70f2e8f153e0f18e3fa1de2b8fbe4639aecc8b19ec5b7837a20"></a>UTMUTFMT_ABBREVIATED_STYLE </td><td class="fielddoc"> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000377">Deprecated:</a></b></dt><dd>ICU 53 </dd></dl> </td></tr> <tr><td class="fieldname"><a class="anchor" id="ace3ab3a9adff9b70f2e8f153e0f18e3facb2233346493c90d46d57b2f086b74cb"></a>UTMUTFMT_FORMAT_STYLE_COUNT </td><td class="fielddoc"> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000378">Deprecated:</a></b></dt><dd>ICU 53 </dd></dl> </td></tr> </table> <p>Definition at line <a class="el" href="tmutfmt_8h_source.html#l00039">39</a> of file <a class="el" href="tmutfmt_8h_source.html">tmutfmt.h</a>.</p> </div> </div> </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.11 </small></address> </body> </html>