<!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"/> <title>ICU 4.8.1.1: ChoiceFormat 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/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </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 style="padding-left: 0.5em;"> <div id="projectname">ICU 4.8.1.1  <span id="projectnumber">4.8.1.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <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 class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></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><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <div class="title">ChoiceFormat Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> converts between ranges of numeric values and strings for those ranges. <a href="classChoiceFormat.html#details">More...</a></p> <p><code>#include <<a class="el" href="choicfmt_8h_source.html">choicfmt.h</a>></code></p> <div class="dynheader"> Inheritance diagram for ChoiceFormat:</div> <div class="dyncontent"> <div class="center"> <img src="classChoiceFormat.png" usemap="#ChoiceFormat_map" alt=""/> <map id="ChoiceFormat_map" name="ChoiceFormat_map"> <area href="classNumberFormat.html" title="Abstract base class for all number formats." alt="NumberFormat" shape="rect" coords="0,168,95,192"/> <area href="classFormat.html" title="Base class for all formats." alt="Format" shape="rect" coords="0,112,95,136"/> <area href="classUObject.html" title="UObject is the common ICU "boilerplate" class." alt="UObject" shape="rect" coords="0,56,95,80"/> <area href="classUMemory.html" title="UMemory is the common ICU base class." alt="UMemory" shape="rect" coords="0,0,95,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a9551b876e173743f214d1530368ee92d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a9551b876e173743f214d1530368ee92d">ChoiceFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a9551b876e173743f214d1530368ee92d"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> from the pattern string. <a href="#a9551b876e173743f214d1530368ee92d"></a><br/></td></tr> <tr class="memitem:a5f097ff199910610ab5a5eb113e034e8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a5f097ff199910610ab5a5eb113e034e8">ChoiceFormat</a> (const double *limits, const <a class="el" href="classUnicodeString.html">UnicodeString</a> *formats, <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> count)</td></tr> <tr class="memdesc:a5f097ff199910610ab5a5eb113e034e8"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> with the given limits and message strings. <a href="#a5f097ff199910610ab5a5eb113e034e8"></a><br/></td></tr> <tr class="memitem:a491cc4d24cbd4c42acebb158b1e04204"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a491cc4d24cbd4c42acebb158b1e04204">ChoiceFormat</a> (const double *limits, const <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> *closures, const <a class="el" href="classUnicodeString.html">UnicodeString</a> *formats, <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> count)</td></tr> <tr class="memdesc:a491cc4d24cbd4c42acebb158b1e04204"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> with the given limits, closure flags and message strings. <a href="#a491cc4d24cbd4c42acebb158b1e04204"></a><br/></td></tr> <tr class="memitem:aaac82d203aea4854d148eabe422a8b17"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#aaac82d203aea4854d148eabe422a8b17">ChoiceFormat</a> (const <a class="el" href="classChoiceFormat.html">ChoiceFormat</a> &that)</td></tr> <tr class="memdesc:aaac82d203aea4854d148eabe422a8b17"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#aaac82d203aea4854d148eabe422a8b17"></a><br/></td></tr> <tr class="memitem:a2873dacc65a6fd80c8111711a6f0c3b4"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classChoiceFormat.html">ChoiceFormat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a2873dacc65a6fd80c8111711a6f0c3b4">operator=</a> (const <a class="el" href="classChoiceFormat.html">ChoiceFormat</a> &that)</td></tr> <tr class="memdesc:a2873dacc65a6fd80c8111711a6f0c3b4"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a2873dacc65a6fd80c8111711a6f0c3b4"></a><br/></td></tr> <tr class="memitem:a13b14e531d655819e8f3ab2c10bf9cb5"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a13b14e531d655819e8f3ab2c10bf9cb5">~ChoiceFormat</a> ()</td></tr> <tr class="memdesc:a13b14e531d655819e8f3ab2c10bf9cb5"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a13b14e531d655819e8f3ab2c10bf9cb5"></a><br/></td></tr> <tr class="memitem:a3ebd2e04337baee2dbb8c7629592714d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFormat.html">Format</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a3ebd2e04337baee2dbb8c7629592714d">clone</a> (void) const </td></tr> <tr class="memdesc:a3ebd2e04337baee2dbb8c7629592714d"><td class="mdescLeft"> </td><td class="mdescRight">Clones this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object. <a href="#a3ebd2e04337baee2dbb8c7629592714d"></a><br/></td></tr> <tr class="memitem:a68b2c94926681294a2fe0d1c7cf52975"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a68b2c94926681294a2fe0d1c7cf52975">operator==</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:a68b2c94926681294a2fe0d1c7cf52975"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the given <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> objects are semantically equal. <a href="#a68b2c94926681294a2fe0d1c7cf52975"></a><br/></td></tr> <tr class="memitem:a9e558988f447da3af36ef7fc8245fb55"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a9e558988f447da3af36ef7fc8245fb55">applyPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a9e558988f447da3af36ef7fc8245fb55"><td class="mdescLeft"> </td><td class="mdescRight">Sets the pattern. <a href="#a9e558988f447da3af36ef7fc8245fb55"></a><br/></td></tr> <tr class="memitem:a01a7bc685dacb242a2cc12f502a88546"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a01a7bc685dacb242a2cc12f502a88546">applyPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="structUParseError.html">UParseError</a> &parseError, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a01a7bc685dacb242a2cc12f502a88546"><td class="mdescLeft"> </td><td class="mdescRight">Sets the pattern. <a href="#a01a7bc685dacb242a2cc12f502a88546"></a><br/></td></tr> <tr class="memitem:a8a78bcd2a5d928a6e9fd29d5f95d86b1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a8a78bcd2a5d928a6e9fd29d5f95d86b1">toPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern) const </td></tr> <tr class="memdesc:a8a78bcd2a5d928a6e9fd29d5f95d86b1"><td class="mdescLeft"> </td><td class="mdescRight">Gets the pattern. <a href="#a8a78bcd2a5d928a6e9fd29d5f95d86b1"></a><br/></td></tr> <tr class="memitem:a5b737cf15cc825a52b7ef14b77a5b2b2"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a5b737cf15cc825a52b7ef14b77a5b2b2">setChoices</a> (const double *limitsToCopy, const <a class="el" href="classUnicodeString.html">UnicodeString</a> *formatsToCopy, <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> count)</td></tr> <tr class="memdesc:a5b737cf15cc825a52b7ef14b77a5b2b2"><td class="mdescLeft"> </td><td class="mdescRight">Sets the choices to be used in formatting. <a href="#a5b737cf15cc825a52b7ef14b77a5b2b2"></a><br/></td></tr> <tr class="memitem:a7a9bfd3b21d29c46ffce3329b2d96668"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a7a9bfd3b21d29c46ffce3329b2d96668">setChoices</a> (const double *limits, const <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> *closures, const <a class="el" href="classUnicodeString.html">UnicodeString</a> *formats, <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> count)</td></tr> <tr class="memdesc:a7a9bfd3b21d29c46ffce3329b2d96668"><td class="mdescLeft"> </td><td class="mdescRight">Sets the choices to be used in formatting. <a href="#a7a9bfd3b21d29c46ffce3329b2d96668"></a><br/></td></tr> <tr class="memitem:afa32b852545c0ba36952df0b3a88b252"><td class="memItemLeft" align="right" valign="top">virtual const double * </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#afa32b852545c0ba36952df0b3a88b252">getLimits</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> &count) const </td></tr> <tr class="memdesc:afa32b852545c0ba36952df0b3a88b252"><td class="mdescLeft"> </td><td class="mdescRight">Returns NULL and 0. <a href="#afa32b852545c0ba36952df0b3a88b252"></a><br/></td></tr> <tr class="memitem:a9966403f7f19dbb378921a417e033bb1"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a9966403f7f19dbb378921a417e033bb1">getClosures</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> &count) const </td></tr> <tr class="memdesc:a9966403f7f19dbb378921a417e033bb1"><td class="mdescLeft"> </td><td class="mdescRight">Returns NULL and 0. <a href="#a9966403f7f19dbb378921a417e033bb1"></a><br/></td></tr> <tr class="memitem:ac48619b6d0315ade9984e9b33ee86398"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classUnicodeString.html">UnicodeString</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#ac48619b6d0315ade9984e9b33ee86398">getFormats</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> &count) const </td></tr> <tr class="memdesc:ac48619b6d0315ade9984e9b33ee86398"><td class="mdescLeft"> </td><td class="mdescRight">Returns NULL and 0. <a href="#ac48619b6d0315ade9984e9b33ee86398"></a><br/></td></tr> <tr class="memitem:a3488103b67c452ace7cac7f6da452e72"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos) const </td></tr> <tr class="memdesc:a3488103b67c452ace7cac7f6da452e72"><td class="mdescLeft"> </td><td class="mdescRight">Formats a double number using this object's choices. <a href="#a3488103b67c452ace7cac7f6da452e72"></a><br/></td></tr> <tr class="memitem:a4c31ee3278dc0afb02e83127d4677161"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a4c31ee3278dc0afb02e83127d4677161">format</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos) const </td></tr> <tr class="memdesc:a4c31ee3278dc0afb02e83127d4677161"><td class="mdescLeft"> </td><td class="mdescRight">Formats an int32_t number using this object's choices. <a href="#a4c31ee3278dc0afb02e83127d4677161"></a><br/></td></tr> <tr class="memitem:a066409675f3c1ec30237668f7e3a80f0"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a066409675f3c1ec30237668f7e3a80f0">format</a> (<a class="el" href="pwin32_8h.html#adec1df1b8b51cb32b77e5b86fff46471">int64_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos) const </td></tr> <tr class="memdesc:a066409675f3c1ec30237668f7e3a80f0"><td class="mdescLeft"> </td><td class="mdescRight">Formats an int64_t number using this object's choices. <a href="#a066409675f3c1ec30237668f7e3a80f0"></a><br/></td></tr> <tr class="memitem:afd1964f35f534b3dc9aff6e13e37e6e1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#afd1964f35f534b3dc9aff6e13e37e6e1">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> *objs, <a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> cnt, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &success) const </td></tr> <tr class="memdesc:afd1964f35f534b3dc9aff6e13e37e6e1"><td class="mdescLeft"> </td><td class="mdescRight">Formats an array of objects using this object's choices. <a href="#afd1964f35f534b3dc9aff6e13e37e6e1"></a><br/></td></tr> <tr class="memitem:a4282d9e61550d4abb84d5c6f1ce29f6f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a4282d9e61550d4abb84d5c6f1ce29f6f">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a4282d9e61550d4abb84d5c6f1ce29f6f"><td class="mdescLeft"> </td><td class="mdescRight">Formats an object using this object's choices. <a href="#a4282d9e61550d4abb84d5c6f1ce29f6f"></a><br/></td></tr> <tr class="memitem:a1df3b8b4b32453583e6cef2aa74c5d97"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a1df3b8b4b32453583e6cef2aa74c5d97">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a1df3b8b4b32453583e6cef2aa74c5d97"><td class="mdescLeft"> </td><td class="mdescRight">Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. <a href="#a1df3b8b4b32453583e6cef2aa74c5d97"></a><br/></td></tr> <tr class="memitem:af4a83c08f52e73d89efa3ae68b938e0d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#af4a83c08f52e73d89efa3ae68b938e0d">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo) const </td></tr> <tr class="memdesc:af4a83c08f52e73d89efa3ae68b938e0d"><td class="mdescLeft"> </td><td class="mdescRight">Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. <a href="#af4a83c08f52e73d89efa3ae68b938e0d"></a><br/></td></tr> <tr class="memitem:a5c48a05a17d3f3e33bd18d1674c90c66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a5c48a05a17d3f3e33bd18d1674c90c66">format</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo) const </td></tr> <tr class="memdesc:a5c48a05a17d3f3e33bd18d1674c90c66"><td class="mdescLeft"> </td><td class="mdescRight">Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. <a href="#a5c48a05a17d3f3e33bd18d1674c90c66"></a><br/></td></tr> <tr class="memitem:af39ef720dd6a46678563da4f4f185bdd"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#af39ef720dd6a46678563da4f4f185bdd">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &text, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="classParsePosition.html">ParsePosition</a> &parsePosition) const </td></tr> <tr class="memdesc:af39ef720dd6a46678563da4f4f185bdd"><td class="mdescLeft"> </td><td class="mdescRight">Looks for the longest match of any message string on the input text and, if there is a match, sets the result object to the corresponding range's number. <a href="#af39ef720dd6a46678563da4f4f185bdd"></a><br/></td></tr> <tr class="memitem:aa1d8199f4ac3743ffb19f9deec3648f9"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#aa1d8199f4ac3743ffb19f9deec3648f9">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &text, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:aa1d8199f4ac3743ffb19f9deec3648f9"><td class="mdescLeft"> </td><td class="mdescRight">Looks for the longest match of any message string on the input text and, if there is a match, sets the result object to the corresponding range's number. <a href="#aa1d8199f4ac3743ffb19f9deec3648f9"></a><br/></td></tr> <tr class="memitem:a3bb9d296446885cca90a38e477ef5527"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#a3bb9d296446885cca90a38e477ef5527">getDynamicClassID</a> (void) const </td></tr> <tr class="memdesc:a3bb9d296446885cca90a38e477ef5527"><td class="mdescLeft"> </td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY. <a href="#a3bb9d296446885cca90a38e477ef5527"></a><br/></td></tr> <tr class="inherit_header pub_methods_classNumberFormat"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classNumberFormat')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classNumberFormat.html">NumberFormat</a></td></tr> <tr class="memitem:ab9364f134c85197678bdb68352f2ee15 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ab9364f134c85197678bdb68352f2ee15">~NumberFormat</a> ()</td></tr> <tr class="memdesc:ab9364f134c85197678bdb68352f2ee15 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ab9364f134c85197678bdb68352f2ee15"></a><br/></td></tr> <tr class="memitem:a6a5fcafaeefe33a9c8326e3b6eb8aa55 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a6a5fcafaeefe33a9c8326e3b6eb8aa55">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a6a5fcafaeefe33a9c8326e3b6eb8aa55 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an object to produce a string. <a href="#a6a5fcafaeefe33a9c8326e3b6eb8aa55"></a><br/></td></tr> <tr class="memitem:aae2d85a1f97ae55faf249a4a0f429976 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aae2d85a1f97ae55faf249a4a0f429976">parseObject</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &source, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="classParsePosition.html">ParsePosition</a> &parse_pos) const </td></tr> <tr class="memdesc:aae2d85a1f97ae55faf249a4a0f429976 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Parse a string to produce an object. <a href="#aae2d85a1f97ae55faf249a4a0f429976"></a><br/></td></tr> <tr class="memitem:acfd48a8b10451ea0dd4fcc3cfb121b4b inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#acfd48a8b10451ea0dd4fcc3cfb121b4b">format</a> (<a class="el" href="pwin32_8h.html#adec1df1b8b51cb32b77e5b86fff46471">int64_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo) const </td></tr> <tr class="memdesc:acfd48a8b10451ea0dd4fcc3cfb121b4b inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int64 number. <a href="#acfd48a8b10451ea0dd4fcc3cfb121b4b"></a><br/></td></tr> <tr class="memitem:a2e24260eda61044d532a577f0f711e7a inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a2e24260eda61044d532a577f0f711e7a">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a2e24260eda61044d532a577f0f711e7a inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a double number. <a href="#a2e24260eda61044d532a577f0f711e7a"></a><br/></td></tr> <tr class="memitem:a917ebc57480c4244941f7750356e7596 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a917ebc57480c4244941f7750356e7596">format</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a917ebc57480c4244941f7750356e7596 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int32 number. <a href="#a917ebc57480c4244941f7750356e7596"></a><br/></td></tr> <tr class="memitem:a1879e7057949f13eb626eafc4d184c1f inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a1879e7057949f13eb626eafc4d184c1f">format</a> (<a class="el" href="pwin32_8h.html#adec1df1b8b51cb32b77e5b86fff46471">int64_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a1879e7057949f13eb626eafc4d184c1f inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> an int64 number. <a href="#a1879e7057949f13eb626eafc4d184c1f"></a><br/></td></tr> <tr class="memitem:a96cdaf515b3b3ea1d2fa685f97b4b53e inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a96cdaf515b3b3ea1d2fa685f97b4b53e">format</a> (const <a class="el" href="classStringPiece.html">StringPiece</a> &number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a96cdaf515b3b3ea1d2fa685f97b4b53e inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number. <a href="#a96cdaf515b3b3ea1d2fa685f97b4b53e"></a><br/></td></tr> <tr class="memitem:a692963dfb668c207add70f31da4dd77e inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a692963dfb668c207add70f31da4dd77e">format</a> (const DigitList &number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a692963dfb668c207add70f31da4dd77e inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number. <a href="#a692963dfb668c207add70f31da4dd77e"></a><br/></td></tr> <tr class="memitem:a3f66a13580f2e17ace127cd13956a2c7 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a3f66a13580f2e17ace127cd13956a2c7">format</a> (const DigitList &number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a3f66a13580f2e17ace127cd13956a2c7 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> a decimal number. <a href="#a3f66a13580f2e17ace127cd13956a2c7"></a><br/></td></tr> <tr class="memitem:a08bffcf90d1cc63882ab686b6b271f9b inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFormattable.html">Formattable</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a08bffcf90d1cc63882ab686b6b271f9b">parseCurrency</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &text, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="classParsePosition.html">ParsePosition</a> &pos) const </td></tr> <tr class="memdesc:a08bffcf90d1cc63882ab686b6b271f9b inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Parses text from the given string as a currency amount. <a href="#a08bffcf90d1cc63882ab686b6b271f9b"></a><br/></td></tr> <tr class="memitem:a680f60d204c0d00bb06f65d7c3ea716a inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a680f60d204c0d00bb06f65d7c3ea716a">isParseIntegerOnly</a> (void) const </td></tr> <tr class="memdesc:a680f60d204c0d00bb06f65d7c3ea716a inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Return true if this format will parse numbers as integers only. <a href="#a680f60d204c0d00bb06f65d7c3ea716a"></a><br/></td></tr> <tr class="memitem:ac9b8eb834f6d18a61661cff71b954e52 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ac9b8eb834f6d18a61661cff71b954e52">setParseIntegerOnly</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> value)</td></tr> <tr class="memdesc:ac9b8eb834f6d18a61661cff71b954e52 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Sets whether or not numbers should be parsed as integers only. <a href="#ac9b8eb834f6d18a61661cff71b954e52"></a><br/></td></tr> <tr class="memitem:adfb0a84956f62cd02988497a2d4f714b inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#adfb0a84956f62cd02988497a2d4f714b">setLenient</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> enable)</td></tr> <tr class="memdesc:adfb0a84956f62cd02988497a2d4f714b inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Sets whether lenient parsing should be enabled (it is off by default). <a href="#adfb0a84956f62cd02988497a2d4f714b"></a><br/></td></tr> <tr class="memitem:a20de95cba4112b8479f05762448bb090 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a20de95cba4112b8479f05762448bb090">isLenient</a> (void) const </td></tr> <tr class="memdesc:a20de95cba4112b8479f05762448bb090 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether lenient parsing is enabled (it is off by default). <a href="#a20de95cba4112b8479f05762448bb090"></a><br/></td></tr> <tr class="memitem:a6fe9bf9d863b9c85ba8f61699e2bbd5b inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a6fe9bf9d863b9c85ba8f61699e2bbd5b">isGroupingUsed</a> (void) const </td></tr> <tr class="memdesc:a6fe9bf9d863b9c85ba8f61699e2bbd5b inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if grouping is used in this format. <a href="#a6fe9bf9d863b9c85ba8f61699e2bbd5b"></a><br/></td></tr> <tr class="memitem:a42f1ff1c899ec393a87ef24cfdfdd0a1 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a42f1ff1c899ec393a87ef24cfdfdd0a1">setGroupingUsed</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> newValue)</td></tr> <tr class="memdesc:a42f1ff1c899ec393a87ef24cfdfdd0a1 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Set whether or not grouping will be used in this format. <a href="#a42f1ff1c899ec393a87ef24cfdfdd0a1"></a><br/></td></tr> <tr class="memitem:a1b06a7feabb695be2e5f16a60a377cf3 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a1b06a7feabb695be2e5f16a60a377cf3">getMaximumIntegerDigits</a> (void) const </td></tr> <tr class="memdesc:a1b06a7feabb695be2e5f16a60a377cf3 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum number of digits allowed in the integer portion of a number. <a href="#a1b06a7feabb695be2e5f16a60a377cf3"></a><br/></td></tr> <tr class="memitem:a561c13b71c338e6b68729c786d2a3a09 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a561c13b71c338e6b68729c786d2a3a09">setMaximumIntegerDigits</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr> <tr class="memdesc:a561c13b71c338e6b68729c786d2a3a09 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Sets the maximum number of digits allowed in the integer portion of a number. <a href="#a561c13b71c338e6b68729c786d2a3a09"></a><br/></td></tr> <tr class="memitem:aa821c67615bf12bf1e8f1157108f6ad0 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aa821c67615bf12bf1e8f1157108f6ad0">getMinimumIntegerDigits</a> (void) const </td></tr> <tr class="memdesc:aa821c67615bf12bf1e8f1157108f6ad0 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns the minimum number of digits allowed in the integer portion of a number. <a href="#aa821c67615bf12bf1e8f1157108f6ad0"></a><br/></td></tr> <tr class="memitem:a92a1454c564b66707d0145a123f65cf3 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a92a1454c564b66707d0145a123f65cf3">setMinimumIntegerDigits</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr> <tr class="memdesc:a92a1454c564b66707d0145a123f65cf3 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Sets the minimum number of digits allowed in the integer portion of a number. <a href="#a92a1454c564b66707d0145a123f65cf3"></a><br/></td></tr> <tr class="memitem:ae2d2e103f14b46234f6dc90125c98eb1 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ae2d2e103f14b46234f6dc90125c98eb1">getMaximumFractionDigits</a> (void) const </td></tr> <tr class="memdesc:ae2d2e103f14b46234f6dc90125c98eb1 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum number of digits allowed in the fraction portion of a number. <a href="#ae2d2e103f14b46234f6dc90125c98eb1"></a><br/></td></tr> <tr class="memitem:abb97d22c2d628aab87d695c6f66e8dbb inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#abb97d22c2d628aab87d695c6f66e8dbb">setMaximumFractionDigits</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr> <tr class="memdesc:abb97d22c2d628aab87d695c6f66e8dbb inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Sets the maximum number of digits allowed in the fraction portion of a number. <a href="#abb97d22c2d628aab87d695c6f66e8dbb"></a><br/></td></tr> <tr class="memitem:a11eb09d7b8f01e40766898f4614598a2 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a11eb09d7b8f01e40766898f4614598a2">getMinimumFractionDigits</a> (void) const </td></tr> <tr class="memdesc:a11eb09d7b8f01e40766898f4614598a2 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns the minimum number of digits allowed in the fraction portion of a number. <a href="#a11eb09d7b8f01e40766898f4614598a2"></a><br/></td></tr> <tr class="memitem:a454c39db13cb0dde930e9249ee726db5 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a454c39db13cb0dde930e9249ee726db5">setMinimumFractionDigits</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr> <tr class="memdesc:a454c39db13cb0dde930e9249ee726db5 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Sets the minimum number of digits allowed in the fraction portion of a number. <a href="#a454c39db13cb0dde930e9249ee726db5"></a><br/></td></tr> <tr class="memitem:a1dbc762d377858e70de924aacc59d113 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a1dbc762d377858e70de924aacc59d113">setCurrency</a> (const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *theCurrency, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &ec)</td></tr> <tr class="memdesc:a1dbc762d377858e70de924aacc59d113 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Sets the currency used to display currency amounts. <a href="#a1dbc762d377858e70de924aacc59d113"></a><br/></td></tr> <tr class="memitem:acc485325edc696f35f73cbdad75eed59 inherit pub_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#acc485325edc696f35f73cbdad75eed59">getCurrency</a> () const </td></tr> <tr class="memdesc:acc485325edc696f35f73cbdad75eed59 inherit pub_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Gets the currency used to display currency amounts. <a href="#acc485325edc696f35f73cbdad75eed59"></a><br/></td></tr> <tr class="inherit_header pub_methods_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classFormat')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#aafee703f14d0f5ddb264b708a75174a8">~Format</a> ()</td></tr> <tr class="memdesc:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#aafee703f14d0f5ddb264b708a75174a8"></a><br/></td></tr> <tr class="memitem:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a4f65d87226814931dde8b035f47b69f3">operator!=</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> objects are not semantically equal. <a href="#a4f65d87226814931dde8b035f47b69f3"></a><br/></td></tr> <tr class="memitem:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a90da11177ef906f464d63ca14300e1c9">parseObject</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &source, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Parses a string to produce an object. <a href="#a90da11177ef906f464d63ca14300e1c9"></a><br/></td></tr> <tr class="memitem:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classLocale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a4502b04fe77be54f9f0343a87156fbd5">getLocale</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="#a4502b04fe77be54f9f0343a87156fbd5"></a><br/></td></tr> <tr class="memitem:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ad8ca4e4cbd2a11b4de3c748c48c7c536">getLocaleID</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="#ad8ca4e4cbd2a11b4de3c748c48c7c536"></a><br/></td></tr> <tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr> <tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr> <tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ace22cf29a90641ef43350deae5bedb85"></a><br/></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:adaeccf67d5eac282b6b3c4ccf020e9b5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classChoiceFormat.html#adaeccf67d5eac282b6b3c4ccf020e9b5">getStaticClassID</a> (void)</td></tr> <tr class="memdesc:adaeccf67d5eac282b6b3c4ccf020e9b5"><td class="mdescLeft"> </td><td class="mdescRight">Returns the class ID for this class. <a href="#adaeccf67d5eac282b6b3c4ccf020e9b5"></a><br/></td></tr> <tr class="inherit_header pub_static_methods_classNumberFormat"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classNumberFormat')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classNumberFormat.html">NumberFormat</a></td></tr> <tr class="memitem:a2483fa1e87f3600395ff0c8f364f7b6f inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a2483fa1e87f3600395ff0c8f364f7b6f">createInstance</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:a2483fa1e87f3600395ff0c8f364f7b6f inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns the default number format for the current default locale. <a href="#a2483fa1e87f3600395ff0c8f364f7b6f"></a><br/></td></tr> <tr class="memitem:a3aa6fc5e68d9d646998dbf8c91b939e2 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a3aa6fc5e68d9d646998dbf8c91b939e2">createInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &inLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:a3aa6fc5e68d9d646998dbf8c91b939e2 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns the default number format for the specified locale. <a href="#a3aa6fc5e68d9d646998dbf8c91b939e2"></a><br/></td></tr> <tr class="memitem:a7ea47195c3dd1b92e769e2cb295505f3 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a7ea47195c3dd1b92e769e2cb295505f3">createInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &desiredLocale, <a class="el" href="unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266d">UNumberFormatStyle</a> style, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode)</td></tr> <tr class="memdesc:a7ea47195c3dd1b92e769e2cb295505f3 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Creates the specified decimal format style of the desired locale. <a href="#a7ea47195c3dd1b92e769e2cb295505f3"></a><br/></td></tr> <tr class="memitem:a0c5d7b55f149281ed063e6bf631e1433 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a0c5d7b55f149281ed063e6bf631e1433">createCurrencyInstance</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:a0c5d7b55f149281ed063e6bf631e1433 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns a currency format for the current default locale. <a href="#a0c5d7b55f149281ed063e6bf631e1433"></a><br/></td></tr> <tr class="memitem:aafc5e5013c7ff22c53195bc30e63b845 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aafc5e5013c7ff22c53195bc30e63b845">createCurrencyInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &inLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:aafc5e5013c7ff22c53195bc30e63b845 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns a currency format for the specified locale. <a href="#aafc5e5013c7ff22c53195bc30e63b845"></a><br/></td></tr> <tr class="memitem:a033f486287d03fc07ccf422992a3e894 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a033f486287d03fc07ccf422992a3e894">createPercentInstance</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:a033f486287d03fc07ccf422992a3e894 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns a percentage format for the current default locale. <a href="#a033f486287d03fc07ccf422992a3e894"></a><br/></td></tr> <tr class="memitem:ac0b6f6d8fc351a0aad06910dfe043f91 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ac0b6f6d8fc351a0aad06910dfe043f91">createPercentInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &inLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:ac0b6f6d8fc351a0aad06910dfe043f91 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns a percentage format for the specified locale. <a href="#ac0b6f6d8fc351a0aad06910dfe043f91"></a><br/></td></tr> <tr class="memitem:aed63bba10230ae92fc98f50031eadf75 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aed63bba10230ae92fc98f50031eadf75">createScientificInstance</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:aed63bba10230ae92fc98f50031eadf75 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns a scientific format for the current default locale. <a href="#aed63bba10230ae92fc98f50031eadf75"></a><br/></td></tr> <tr class="memitem:aa26a23ba85c6dac9b8f429d1fe7d695f inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aa26a23ba85c6dac9b8f429d1fe7d695f">createScientificInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &inLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &)</td></tr> <tr class="memdesc:aa26a23ba85c6dac9b8f429d1fe7d695f inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns a scientific format for the specified locale. <a href="#aa26a23ba85c6dac9b8f429d1fe7d695f"></a><br/></td></tr> <tr class="memitem:a8f18e4922ee902adabdd355311fd11ae inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a8f18e4922ee902adabdd355311fd11ae">getAvailableLocales</a> (<a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> &count)</td></tr> <tr class="memdesc:a8f18e4922ee902adabdd355311fd11ae inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Get the set of Locales for which NumberFormats are installed. <a href="#a8f18e4922ee902adabdd355311fd11ae"></a><br/></td></tr> <tr class="memitem:a83e8d5a07d0b2c1444c051ab442e6c3e inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="umisc_8h.html#ab5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a83e8d5a07d0b2c1444c051ab442e6c3e">registerFactory</a> (<a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> *toAdopt, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a83e8d5a07d0b2c1444c051ab442e6c3e inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Register a new <a class="el" href="classNumberFormatFactory.html" title="A NumberFormatFactory is used to register new number formats.">NumberFormatFactory</a>. <a href="#a83e8d5a07d0b2c1444c051ab442e6c3e"></a><br/></td></tr> <tr class="memitem:ab6ecd9973fd855a9028af8cadbf0a4c3 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ab6ecd9973fd855a9028af8cadbf0a4c3">unregister</a> (<a class="el" href="umisc_8h.html#ab5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a> key, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:ab6ecd9973fd855a9028af8cadbf0a4c3 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Unregister a previously-registered <a class="el" href="classNumberFormatFactory.html" title="A NumberFormatFactory is used to register new number formats.">NumberFormatFactory</a> using the key returned from the register call. <a href="#ab6ecd9973fd855a9028af8cadbf0a4c3"></a><br/></td></tr> <tr class="memitem:a29addeb994249b22539ef1659d4017c7 inherit pub_static_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a29addeb994249b22539ef1659d4017c7">getAvailableLocales</a> (void)</td></tr> <tr class="memdesc:a29addeb994249b22539ef1659d4017c7 inherit pub_static_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classStringEnumeration.html" title="Base class for 'pure' C++ implementations of uenum api.">StringEnumeration</a> over the locales available at the time of the call, including registered locales. <a href="#a29addeb994249b22539ef1659d4017c7"></a><br/></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="friends"></a> Friends</h2></td></tr> <tr class="memitem:a878637013842f94d9e8f7eb5ec0411b2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a878637013842f94d9e8f7eb5ec0411b2"></a> class </td><td class="memItemRight" valign="bottom"><b>MessageFormat</b></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_types_classNumberFormat"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classNumberFormat')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classNumberFormat.html">NumberFormat</a></td></tr> <tr class="memitem:aac1d8bfe4ccd2cdf6fa1a933b2df75a1 inherit pub_types_classNumberFormat"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aac1d8bfe4ccd2cdf6fa1a933b2df75a1">EAlignmentFields</a> { <br/>   <b>kIntegerField</b>, <b>kFractionField</b>, <b>kDecimalSeparatorField</b>, <b>kExponentSymbolField</b>, <br/>   <b>kExponentSignField</b>, <b>kExponentField</b>, <b>kGroupingSeparatorField</b>, <b>kCurrencyField</b>, <br/>   <b>kPercentField</b>, <b>kPermillField</b>, <b>kSignField</b>, <a class="el" href="classNumberFormat.html#aac1d8bfe4ccd2cdf6fa1a933b2df75a1a193401497626cb3ca7f4f9baabe1c123">INTEGER_FIELD</a> = kIntegerField, <br/>   <b>FRACTION_FIELD</b> = kFractionField <br/> }</td></tr> <tr class="memdesc:aac1d8bfe4ccd2cdf6fa1a933b2df75a1"><td class="mdescLeft"> </td><td class="mdescRight">Alignment Field constants used to construct a <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...">FieldPosition</a> object. <a href="classNumberFormat.html#aac1d8bfe4ccd2cdf6fa1a933b2df75a1">More...</a><br/></td></tr> <tr class="inherit_header pro_methods_classNumberFormat"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classNumberFormat')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classNumberFormat.html">NumberFormat</a></td></tr> <tr class="memitem:a456d960b53c9f61acbf443f5fd56e7dc inherit pro_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a456d960b53c9f61acbf443f5fd56e7dc">NumberFormat</a> ()</td></tr> <tr class="memdesc:a456d960b53c9f61acbf443f5fd56e7dc inherit pro_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor for subclass use only. <a href="#a456d960b53c9f61acbf443f5fd56e7dc"></a><br/></td></tr> <tr class="memitem:aabbf4f0a039756b6ba100aadc7cede99 inherit pro_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aabbf4f0a039756b6ba100aadc7cede99">NumberFormat</a> (const <a class="el" href="classNumberFormat.html">NumberFormat</a> &)</td></tr> <tr class="memdesc:aabbf4f0a039756b6ba100aadc7cede99 inherit pro_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#aabbf4f0a039756b6ba100aadc7cede99"></a><br/></td></tr> <tr class="memitem:a8b9d5c0937f4da69d9a229fd10f8ec38 inherit pro_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classNumberFormat.html">NumberFormat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a8b9d5c0937f4da69d9a229fd10f8ec38">operator=</a> (const <a class="el" href="classNumberFormat.html">NumberFormat</a> &)</td></tr> <tr class="memdesc:a8b9d5c0937f4da69d9a229fd10f8ec38 inherit pro_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a8b9d5c0937f4da69d9a229fd10f8ec38"></a><br/></td></tr> <tr class="memitem:ae79eb815aa14fa432eec4307a3e2bc28 inherit pro_methods_classNumberFormat"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ae79eb815aa14fa432eec4307a3e2bc28">getEffectiveCurrency</a> (<a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &ec) const </td></tr> <tr class="memdesc:ae79eb815aa14fa432eec4307a3e2bc28 inherit pro_methods_classNumberFormat"><td class="mdescLeft"> </td><td class="mdescRight">Returns the currency in effect for this formatter. <a href="#ae79eb815aa14fa432eec4307a3e2bc28"></a><br/></td></tr> <tr class="inherit_header pro_methods_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classFormat')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:ae15f405ad3805e8d6691354047b500ca inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ae15f405ad3805e8d6691354047b500ca">setLocaleIDs</a> (const char *valid, const char *actual)</td></tr> <tr class="memitem:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a9326a787208f39b9544fc6fcbcbfcad3">Format</a> ()</td></tr> <tr class="memdesc:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor for subclass use only. <a href="#a9326a787208f39b9544fc6fcbcbfcad3"></a><br/></td></tr> <tr class="memitem:ab69111c370cfe44f9508e78e5431cc65 inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ab69111c370cfe44f9508e78e5431cc65">Format</a> (const <a class="el" href="classFormat.html">Format</a> &)</td></tr> <tr class="memitem:a7a5276a88c488462eea3a508b71f4d9c inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classFormat.html">Format</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a7a5276a88c488462eea3a508b71f4d9c">operator=</a> (const <a class="el" href="classFormat.html">Format</a> &)</td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> converts between ranges of numeric values and strings for those ranges. </p> <p>The strings must conform to the <a class="el" href="classMessageFormat.html">MessageFormat</a> pattern syntax.</p> <p><em><code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a></code> is probably not what you need. Please use <code><a class="el" href="classMessageFormat.html">MessageFormat</a></code> with <code>plural</code> arguments for proper plural selection, and <code>select</code> arguments for simple selection among a fixed set of choices!</em></p> <p>A <code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a></code> splits the real number line <code>-∞</code> to <code>+∞</code> into two or more contiguous ranges. Each range is mapped to a string.</p> <p><code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a></code> was originally intended for displaying grammatically correct plurals such as "There is one file." vs. "There are 2 files." <em>However,</em> plural rules for many languages are too complex for the capabilities of <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a>, and its requirement of specifying the precise rules for each message is unmanageable for translators.</p> <p>There are two methods of defining a <code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a></code>; both are equivalent. The first is by using a string pattern. This is the preferred method in most cases. The second method is through direct specification of the arrays that logically make up the <code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a></code>.</p> <p>Note: Typically, choice formatting is done (if done at all) via <code><a class="el" href="classMessageFormat.html">MessageFormat</a></code> with a <code>choice</code> argument type, rather than using a stand-alone <code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a></code>.</p> <h5>Patterns and Their Interpretation</h5> <p>The pattern string defines the range boundaries and the strings for each number range. Syntax: </p> <pre> choiceStyle = number separator message ('|' number separator message)* number = normal_number | ['-'] ∞ (U+221E, infinity) normal_number = double value (unlocalized ASCII string) separator = less_than | less_than_or_equal less_than = '<' less_than_or_equal = '#' | ≤ (U+2264) message: see <a class="el" href="classMessageFormat.html">MessageFormat</a> </pre><p> Pattern_White_Space between syntax elements is ignored, except around each range's sub-message.</p> <p>Each numeric sub-range extends from the current range's number to the next range's number. The number itself is included in its range if a <code>less_than_or_equal</code> sign is used, and excluded from its range (and instead included in the previous range) if a <code>less_than</code> sign is used.</p> <p>When a <code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a></code> is constructed from arrays of numbers, closure flags and strings, they are interpreted just like the sequence of <code>(number separator string)</code> in an equivalent pattern string. <code>closure[i]==TRUE</code> corresponds to a <code>less_than</code> separator sign. The equivalent pattern string will be constructed automatically.</p> <p>During formatting, a number is mapped to the first range where the number is not greater than the range's upper limit. That range's message string is returned. A NaN maps to the very first range.</p> <p>During parsing, a range is selected for the longest match of any range's message. That range's number is returned, ignoring the separator/closure. Only a simple string match is performed, without parsing of arguments that might be specified in the message strings.</p> <p>Note that the first range's number is ignored in formatting but may be returned from parsing.</p> <h5>Examples</h5> <p>Here is an example of two arrays that map the number <code>1..7</code> to the English day of the week abbreviations <code>Sun..Sat</code>. No closures array is given; this is the same as specifying all closures to be <code>FALSE</code>.</p> <pre> {1,2,3,4,5,6,7}, {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"}</pre><p>Here is an example that maps the ranges [-Inf, 1), [1, 1], and (1, +Inf] to three strings. That is, the number line is split into three ranges: x < 1.0, x = 1.0, and x > 1.0. (The round parentheses in the notation above indicate an exclusive boundary, like the turned bracket in European notation: [-Inf, 1) == [-Inf, 1[ )</p> <pre> {0, 1, 1}, {FALSE, FALSE, TRUE}, {"no files", "one file", "many files"}</pre><p>Here is an example that shows formatting and parsing: </p> <div class="fragment"><div class="line"><span class="preprocessor"> #include <<a class="code" href="choicfmt_8h.html" title="C++ API: Choice Format.">unicode/choicfmt.h</a>></span></div> <div class="line"><span class="preprocessor"> #include <<a class="code" href="unistr_8h.html" title="C++ API: Unicode String.">unicode/unistr.h</a>></span></div> <div class="line"><span class="preprocessor"> #include <iostream.h></span></div> <div class="line"> </div> <div class="line"> <span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[]) {</div> <div class="line"> <span class="keywordtype">double</span> limits[] = {1,2,3,4,5,6,7};</div> <div class="line"> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> monthNames[] = {</div> <div class="line"> <span class="stringliteral">"Sun"</span>,<span class="stringliteral">"Mon"</span>,<span class="stringliteral">"Tue"</span>,<span class="stringliteral">"Wed"</span>,<span class="stringliteral">"Thu"</span>,<span class="stringliteral">"Fri"</span>,<span class="stringliteral">"Sat"</span>};</div> <div class="line"> <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> fmt(limits, monthNames, 7);</div> <div class="line"> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> str;</div> <div class="line"> <span class="keywordtype">char</span> buf[256];</div> <div class="line"> <span class="keywordflow">for</span> (<span class="keywordtype">double</span> x = 1.0; x <= 8.0; x += 1.0) {</div> <div class="line"> fmt.format(x, str);</div> <div class="line"> str.<a class="code" href="classUnicodeString.html#a9b2d4e417740becdb24a59fab263b8e3" title="Copy the characters in the range [start, start + length) into the array dst, beginning at dstStart...">extract</a>(0, str.<a class="code" href="classUnicodeString.html#ac4cf80391a0e523c27aacaba796aede6" title="Return the length of the UnicodeString object.">length</a>(), buf, 256, <span class="stringliteral">""</span>);</div> <div class="line"> str.<a class="code" href="classUnicodeString.html#ad8fe3cabef409468a11b77111de45ebc" title="Truncate this UnicodeString to the targetLength.">truncate</a>(0);</div> <div class="line"> cout << x << <span class="stringliteral">" -> "</span></div> <div class="line"> << buf << endl;</div> <div class="line"> }</div> <div class="line"> cout << endl;</div> <div class="line"> <span class="keywordflow">return</span> 0;</div> <div class="line"> }</div> </div><!-- fragment --><p><em>User subclasses are not supported.</em> While clients may write subclasses, such code will not necessarily work and will not be guaranteed to work stably from release to release. </p> <p>Definition at line <a class="el" href="choicfmt_8h_source.html#l00168">168</a> of file <a class="el" href="choicfmt_8h_source.html">choicfmt.h</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a9551b876e173743f214d1530368ee92d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ChoiceFormat::ChoiceFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>pattern</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>Constructs a new <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> from the pattern string. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">pattern</td><td>Pattern used to construct object. </td></tr> <tr><td class="paramname">status</td><td>Output param to receive success code. If the pattern cannot be parsed, set to failure code. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002550">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a5f097ff199910610ab5a5eb113e034e8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ChoiceFormat::ChoiceFormat </td> <td>(</td> <td class="paramtype">const double * </td> <td class="paramname"><em>limits</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> * </td> <td class="paramname"><em>formats</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"><em>count</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Constructs a new <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> with the given limits and message strings. </p> <p>All closure flags default to <code>FALSE</code>, equivalent to <code>less_than_or_equal</code> separators.</p> <p>Copies the limits and formats instead of adopting them.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">limits</td><td>Array of limit values. </td></tr> <tr><td class="paramname">formats</td><td>Array of formats. </td></tr> <tr><td class="paramname">count</td><td>Size of 'limits' and 'formats' arrays. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002551">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a491cc4d24cbd4c42acebb158b1e04204"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ChoiceFormat::ChoiceFormat </td> <td>(</td> <td class="paramtype">const double * </td> <td class="paramname"><em>limits</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> * </td> <td class="paramname"><em>closures</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> * </td> <td class="paramname"><em>formats</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"><em>count</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Constructs a new <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> with the given limits, closure flags and message strings. </p> <p>Copies the limits and formats instead of adopting them.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">limits</td><td>Array of limit values </td></tr> <tr><td class="paramname">closures</td><td>Array of booleans specifying whether each element of 'limits' is open or closed. If FALSE, then the corresponding limit number is a member of its range. If TRUE, then the limit number belongs to the previous range it. </td></tr> <tr><td class="paramname">formats</td><td>Array of formats </td></tr> <tr><td class="paramname">count</td><td>Size of 'limits', 'closures', and 'formats' arrays </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002552">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="aaac82d203aea4854d148eabe422a8b17"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">ChoiceFormat::ChoiceFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classChoiceFormat.html">ChoiceFormat</a> & </td> <td class="paramname"><em>that</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Copy constructor. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">that</td><td><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> object to be copied from </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002553">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a13b14e531d655819e8f3ab2c10bf9cb5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual ChoiceFormat::~ChoiceFormat </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#_stable002555">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a9e558988f447da3af36ef7fc8245fb55"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void ChoiceFormat::applyPattern </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>pattern</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> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Sets the pattern. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">pattern</td><td>The pattern to be applied. </td></tr> <tr><td class="paramname">status</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002558">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a01a7bc685dacb242a2cc12f502a88546"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void ChoiceFormat::applyPattern </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>pattern</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structUParseError.html">UParseError</a> & </td> <td class="paramname"><em>parseError</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> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Sets the pattern. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">pattern</td><td>The pattern to be applied. </td></tr> <tr><td class="paramname">parseError</td><td>Struct to receive information on position of error if an error is encountered </td></tr> <tr><td class="paramname">status</td><td>Output param set to success/failure code on exit. If the pattern is invalid, this will be set to a failure result. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002559">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a3ebd2e04337baee2dbb8c7629592714d"></a> <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="classFormat.html">Format</a>* ChoiceFormat::clone </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const</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>Clones this <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> object. </p> <p>The caller owns the result and must delete it when done.</p> <dl class="section return"><dt>Returns:</dt><dd>a copy of this object </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002556">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a">Format</a>.</p> </div> </div> <a class="anchor" id="a3488103b67c452ace7cac7f6da452e72"></a> <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="classUnicodeString.html">UnicodeString</a>& ChoiceFormat::format </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>number</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.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="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>pos</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</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>Formats a double number using this object's choices. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">number</td><td>The value to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002563">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Implements <a class="el" href="classNumberFormat.html#a7078d52baaa94ddf6e0680a4bc2f542a">NumberFormat</a>.</p> <p>Referenced by <a class="el" href="choicfmt_8h_source.html#l00661">format()</a>.</p> </div> </div> <a class="anchor" id="a4c31ee3278dc0afb02e83127d4677161"></a> <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="classUnicodeString.html">UnicodeString</a>& ChoiceFormat::format </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"><em>number</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.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="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>pos</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</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>Formats an int32_t number using this object's choices. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">number</td><td>The value to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002564">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Implements <a class="el" href="classNumberFormat.html#acaaca11795df052b165e82261b7825f1">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="a066409675f3c1ec30237668f7e3a80f0"></a> <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="classUnicodeString.html">UnicodeString</a>& ChoiceFormat::format </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#adec1df1b8b51cb32b77e5b86fff46471">int64_t</a> </td> <td class="paramname"><em>number</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.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="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>pos</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</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>Formats an int64_t number using this object's choices. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">number</td><td>The value to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002565">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#ac64ccd4841f822f601f2533e63e0592b">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="afd1964f35f534b3dc9aff6e13e37e6e1"></a> <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="classUnicodeString.html">UnicodeString</a>& ChoiceFormat::format </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> * </td> <td class="paramname"><em>objs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"><em>cnt</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.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="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>pos</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>success</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</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>Formats an array of objects using this object's choices. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">objs</td><td>The array of objects to be formatted. </td></tr> <tr><td class="paramname">cnt</td><td>The size of objs. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> <tr><td class="paramname">success</td><td>Output param set to success/failure code on exit. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002566">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a4282d9e61550d4abb84d5c6f1ce29f6f"></a> <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="classUnicodeString.html">UnicodeString</a>& ChoiceFormat::format </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.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="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"><em>pos</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> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Formats an object using this object's choices. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">obj</td><td>The object to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr> <tr><td class="paramname">status</td><td>Output param set to success/failure code on exit. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002567">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="a1df3b8b4b32453583e6cef2aa74c5d97"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> & ChoiceFormat::format </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.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> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">obj</td><td>The object to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> <tr><td class="paramname">status</td><td>Output param set to success/failure code on exit. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002568">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#a67d754f52d336d911454e97ba32654de">NumberFormat</a>.</p> <p>Definition at line <a class="el" href="choicfmt_8h_source.html#l00661">661</a> of file <a class="el" href="choicfmt_8h_source.html">choicfmt.h</a>.</p> <p>References <a class="el" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72">format()</a>.</p> </div> </div> <a class="anchor" id="af4a83c08f52e73d89efa3ae68b938e0d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> & ChoiceFormat::format </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>number</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. </p> <p>Formats a double number. These methods call the <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> pure virtual <a class="el" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Formats a double number using this object's choices.">format()</a> methods with the default <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...">FieldPosition</a>.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">number</td><td>The value to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002569">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#ad0d0bf658489e6a530a6c7716ef44320">NumberFormat</a>.</p> <p>Definition at line <a class="el" href="choicfmt_8h_source.html#l00670">670</a> of file <a class="el" href="choicfmt_8h_source.html">choicfmt.h</a>.</p> <p>References <a class="el" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72">format()</a>.</p> </div> </div> <a class="anchor" id="a5c48a05a17d3f3e33bd18d1674c90c66"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> & ChoiceFormat::format </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"><em>number</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Redeclared <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> method. </p> <p>Formats an int32_t number. These methods call the <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> pure virtual <a class="el" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Formats a double number using this object's choices.">format()</a> methods with the default <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...">FieldPosition</a>.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">number</td><td>The value to be formatted. </td></tr> <tr><td class="paramname">appendTo</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>Reference to 'appendTo' parameter. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002570">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#aaa05c67fc637d9127756d854581a17fc">NumberFormat</a>.</p> <p>Definition at line <a class="el" href="choicfmt_8h_source.html#l00676">676</a> of file <a class="el" href="choicfmt_8h_source.html">choicfmt.h</a>.</p> <p>References <a class="el" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72">format()</a>.</p> </div> </div> <a class="anchor" id="a9966403f7f19dbb378921a417e033bb1"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>* ChoiceFormat::getClosures </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> & </td> <td class="paramname"><em>count</em></td><td>)</td> <td> const</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>Returns NULL and 0. </p> <p>Before ICU 4.8, this used to return the limit booleans array.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">count</td><td>Will be set to 0. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>NULL </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000184">Deprecated:</a></b></dt><dd>ICU 4.8 Use the <a class="el" href="classMessagePattern.html" title="Parses and represents ICU MessageFormat patterns.">MessagePattern</a> class to analyze a <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> pattern. </dd></dl> </div> </div> <a class="anchor" id="a3bb9d296446885cca90a38e477ef5527"></a> <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#a22af10545208a455a6e884008df48e9f">UClassID</a> ChoiceFormat::getDynamicClassID </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const</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>Returns a unique class ID POLYMORPHICALLY. </p> <p>Part of ICU's "poor man's RTTI". </p> <pre class="fragment"> @return The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. \xrefitem stable 2573.</pre> <p>Implements <a class="el" href="classNumberFormat.html#a63c193a4db6a1552073bf069d5d31749">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="ac48619b6d0315ade9984e9b33ee86398"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="classUnicodeString.html">UnicodeString</a>* ChoiceFormat::getFormats </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> & </td> <td class="paramname"><em>count</em></td><td>)</td> <td> const</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>Returns NULL and 0. </p> <p>Before ICU 4.8, this used to return the array of choice strings.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">count</td><td>Will be set to 0. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>NULL </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000185">Deprecated:</a></b></dt><dd>ICU 4.8 Use the <a class="el" href="classMessagePattern.html" title="Parses and represents ICU MessageFormat patterns.">MessagePattern</a> class to analyze a <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> pattern. </dd></dl> </div> </div> <a class="anchor" id="afa32b852545c0ba36952df0b3a88b252"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const double* ChoiceFormat::getLimits </td> <td>(</td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> & </td> <td class="paramname"><em>count</em></td><td>)</td> <td> const</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>Returns NULL and 0. </p> <p>Before ICU 4.8, this used to return the choice limits array.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">count</td><td>Will be set to 0. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>NULL </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000183">Deprecated:</a></b></dt><dd>ICU 4.8 Use the <a class="el" href="classMessagePattern.html" title="Parses and represents ICU MessageFormat patterns.">MessagePattern</a> class to analyze a <a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> pattern. </dd></dl> </div> </div> <a class="anchor" id="adaeccf67d5eac282b6b3c4ccf020e9b5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> ChoiceFormat::getStaticClassID </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the class ID for this class. </p> <p>This is useful only for comparing to a return value from <a class="el" href="classChoiceFormat.html#a3bb9d296446885cca90a38e477ef5527" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a>. For example: </p> <pre> . Base* polymorphic_pointer = createPolymorphicObject(); . if (polymorphic_pointer-><a class="el" href="classChoiceFormat.html#a3bb9d296446885cca90a38e477ef5527" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID()</a> == . Derived::getStaticClassID()) ... </pre> <dl class="section return"><dt>Returns:</dt><dd>The class ID for all objects of this class. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002574">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#acfeb8972959e9383b026761d0e9e1e5e">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="a2873dacc65a6fd80c8111711a6f0c3b4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classChoiceFormat.html">ChoiceFormat</a>& ChoiceFormat::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classChoiceFormat.html">ChoiceFormat</a> & </td> <td class="paramname"><em>that</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assignment operator. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">that</td><td><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> object to be copied </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002554">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a68b2c94926681294a2fe0d1c7cf52975"></a> <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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> ChoiceFormat::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</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>Returns true if the given <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a> objects are semantically equal. </p> <p>Objects of different subclasses are considered unequal.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges.">ChoiceFormat</a> object to be compared </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>true if other is the same as this. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002557">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#a97f4f81efd4747024deaf88ceb4d80a3">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="af39ef720dd6a46678563da4f4f185bdd"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void ChoiceFormat::parse </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classParsePosition.html">ParsePosition</a> & </td> <td class="paramname"><em>parsePosition</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</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>Looks for the longest match of any message string on the input text and, if there is a match, sets the result object to the corresponding range's number. </p> <p>If no string matches, then the parsePosition is unchanged.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">text</td><td>The text to be parsed. </td></tr> <tr><td class="paramname">result</td><td><a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting.">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr> <tr><td class="paramname">parsePosition</td><td>The position to start parsing at on input. On output, moved to after the last successfully parse character. On parse failure, does not change. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002571">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Implements <a class="el" href="classNumberFormat.html#ab2c59c0b036a413b6735c6d50b88ae25">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="aa1d8199f4ac3743ffb19f9deec3648f9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void ChoiceFormat::parse </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>result</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> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Looks for the longest match of any message string on the input text and, if there is a match, sets the result object to the corresponding range's number. </p> <p>If no string matches, then the UErrorCode is set to U_INVALID_FORMAT_ERROR.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">text</td><td>The text to be parsed. </td></tr> <tr><td class="paramname">result</td><td><a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting.">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr> <tr><td class="paramname">status</td><td>Output param with the formatted string. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002572">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Reimplemented from <a class="el" href="classNumberFormat.html#a01ac6e0a7a47b2d8e387752d1a024b29">NumberFormat</a>.</p> </div> </div> <a class="anchor" id="a5b737cf15cc825a52b7ef14b77a5b2b2"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void ChoiceFormat::setChoices </td> <td>(</td> <td class="paramtype">const double * </td> <td class="paramname"><em>limitsToCopy</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> * </td> <td class="paramname"><em>formatsToCopy</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"><em>count</em> </td> </tr> <tr> <td></td> <td>)</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>Sets the choices to be used in formatting. </p> <p>For details see the constructor with the same parameter list.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">limitsToCopy</td><td>Contains the top value that you want parsed with that format,and should be in ascending sorted order. When formatting X, the choice will be the i, where limit[i] <= X < limit[i+1]. </td></tr> <tr><td class="paramname">formatsToCopy</td><td>The format strings you want to use for each limit. </td></tr> <tr><td class="paramname">count</td><td>The size of the above arrays. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002561">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a7a9bfd3b21d29c46ffce3329b2d96668"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void ChoiceFormat::setChoices </td> <td>(</td> <td class="paramtype">const double * </td> <td class="paramname"><em>limits</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> * </td> <td class="paramname"><em>closures</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> * </td> <td class="paramname"><em>formats</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="pwin32_8h.html#ab1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> </td> <td class="paramname"><em>count</em> </td> </tr> <tr> <td></td> <td>)</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>Sets the choices to be used in formatting. </p> <p>For details see the constructor with the same parameter list.</p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">limits</td><td>Array of limits </td></tr> <tr><td class="paramname">closures</td><td>Array of limit booleans </td></tr> <tr><td class="paramname">formats</td><td>Array of format string </td></tr> <tr><td class="paramname">count</td><td>The size of the above arrays </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002562">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="a8a78bcd2a5d928a6e9fd29d5f95d86b1"></a> <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="classUnicodeString.html">UnicodeString</a>& ChoiceFormat::toPattern </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>pattern</em></td><td>)</td> <td> const</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>Gets the pattern. </p> <dl class="params"><dt>Parameters:</dt><dd> <table class="params"> <tr><td class="paramname">pattern</td><td>Output param which will receive the pattern Previous contents are deleted. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns:</dt><dd>A reference to 'pattern' </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002560">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="choicfmt_8h_source.html">choicfmt.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.1.1 </small></address> </body> </html>