Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 280da2a01a3d16776505ea3f476de84f > files > 107

icu-doc-3.8.1-2mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.8: NumberFormat Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li id="current"><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
  </ul></div>
<h1>NumberFormat Class Reference</h1><!-- doxytag: class="NumberFormat" --><!-- doxytag: inherits="Format" -->Abstract base class for all number formats.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="numfmt_8h-source.html">numfmt.h</a>&gt;</code>
<p>
<p>Inheritance diagram for NumberFormat:
<p><center><img src="classNumberFormat.png" usemap="#NumberFormat_map" border="0" alt=""></center>
<map name="NumberFormat_map">
<area href="classFormat.html" alt="Format" shape="rect" coords="165,112,320,136">
<area href="classUObject.html" alt="UObject" shape="rect" coords="165,56,320,80">
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="165,0,320,24">
<area href="classChoiceFormat.html" alt="ChoiceFormat" shape="rect" coords="0,224,155,248">
<area href="classDecimalFormat.html" alt="DecimalFormat" shape="rect" coords="165,224,320,248">
<area href="classRuleBasedNumberFormat.html" alt="RuleBasedNumberFormat" shape="rect" coords="330,224,485,248">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ac1d8bfe4ccd2cdf6fa1a933b2df75a1">EAlignmentFields</a> { <b>kIntegerField</b>, 
<b>kFractionField</b>, 
<a class="el" href="classNumberFormat.html#ac1d8bfe4ccd2cdf6fa1a933b2df75a1193401497626cb3ca7f4f9baabe1c123">INTEGER_FIELD</a> =  kIntegerField, 
<b>FRACTION_FIELD</b> =  kFractionField
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Alignment Field constants used to construct a <a class="el" href="classFieldPosition.html">FieldPosition</a> object.  <a href="classNumberFormat.html#ac1d8bfe4ccd2cdf6fa1a933b2df75a1">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#b9364f134c85197678bdb68352f2ee15">~NumberFormat</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#b9364f134c85197678bdb68352f2ee15"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#97f4f81efd4747024deaf88ceb4d80a3">operator==</a> (const <a class="el" href="classFormat.html">Format</a> &amp;other) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if the given <a class="el" href="classFormat.html">Format</a> objects are semantically equal.  <a href="#97f4f81efd4747024deaf88ceb4d80a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#848c716acd547e14018fd6713c6c58f2">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> an object to produce a string.  <a href="#848c716acd547e14018fd6713c6c58f2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#b26d9612ec3467c8777922e948397f31">parseObject</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;source, <a class="el" href="classFormattable.html">Formattable</a> &amp;result, <a class="el" href="classParsePosition.html">ParsePosition</a> &amp;parse_pos) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a string to produce an object.  <a href="#b26d9612ec3467c8777922e948397f31"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#d76767b9eef2144246afe02e28c73644">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> a double number.  <a href="#d76767b9eef2144246afe02e28c73644"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#25076f2cd93aba1a2f7ab08e86a1a84b">format</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> a long number.  <a href="#25076f2cd93aba1a2f7ab08e86a1a84b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#59993f72a96cc591f9fb90a24290a01e">format</a> (<a class="el" href="pwin32_8h.html#dec1df1b8b51cb32b77e5b86fff46471">int64_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> an int64 number.  <a href="#59993f72a96cc591f9fb90a24290a01e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#7078d52baaa94ddf6e0680a4bc2f542a">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> a double number.  <a href="#7078d52baaa94ddf6e0680a4bc2f542a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#caaca11795df052b165e82261b7825f1">format</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> a long number.  <a href="#caaca11795df052b165e82261b7825f1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#c64ccd4841f822f601f2533e63e0592b">format</a> (<a class="el" href="pwin32_8h.html#dec1df1b8b51cb32b77e5b86fff46471">int64_t</a> number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &amp;pos) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classFormat.html">Format</a> an int64 number.  <a href="#c64ccd4841f822f601f2533e63e0592b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#67d754f52d336d911454e97ba32654de">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redeclared <a class="el" href="classFormat.html">Format</a> method.  <a href="#67d754f52d336d911454e97ba32654de"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#b2c59c0b036a413b6735c6d50b88ae25">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classFormattable.html">Formattable</a> &amp;result, <a class="el" href="classParsePosition.html">ParsePosition</a> &amp;parsePosition) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a long if possible (e.g.  <a href="#b2c59c0b036a413b6735c6d50b88ae25"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#01ac6e0a7a47b2d8e387752d1a024b29">parse</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classFormattable.html">Formattable</a> &amp;result, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse a string as a numeric value, and return a <a class="el" href="classFormattable.html">Formattable</a> numeric object.  <a href="#01ac6e0a7a47b2d8e387752d1a024b29"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#08bffcf90d1cc63882ab686b6b271f9b">parseCurrency</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;text, <a class="el" href="classFormattable.html">Formattable</a> &amp;result, <a class="el" href="classParsePosition.html">ParsePosition</a> &amp;pos) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses text from the given string as a currency amount.  <a href="#08bffcf90d1cc63882ab686b6b271f9b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#680f60d204c0d00bb06f65d7c3ea716a">isParseIntegerOnly</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if this format will parse numbers as integers only.  <a href="#680f60d204c0d00bb06f65d7c3ea716a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#c9b8eb834f6d18a61661cff71b954e52">setParseIntegerOnly</a> (<a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets whether or not numbers should be parsed as integers only.  <a href="#c9b8eb834f6d18a61661cff71b954e52"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#6fe9bf9d863b9c85ba8f61699e2bbd5b">isGroupingUsed</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if grouping is used in this format.  <a href="#6fe9bf9d863b9c85ba8f61699e2bbd5b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#42f1ff1c899ec393a87ef24cfdfdd0a1">setGroupingUsed</a> (<a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> newValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set whether or not grouping will be used in this format.  <a href="#42f1ff1c899ec393a87ef24cfdfdd0a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#1b06a7feabb695be2e5f16a60a377cf3">getMaximumIntegerDigits</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the maximum number of digits allowed in the integer portion of a number.  <a href="#1b06a7feabb695be2e5f16a60a377cf3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#561c13b71c338e6b68729c786d2a3a09">setMaximumIntegerDigits</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the maximum number of digits allowed in the integer portion of a number.  <a href="#561c13b71c338e6b68729c786d2a3a09"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a821c67615bf12bf1e8f1157108f6ad0">getMinimumIntegerDigits</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the minimum number of digits allowed in the integer portion of a number.  <a href="#a821c67615bf12bf1e8f1157108f6ad0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#92a1454c564b66707d0145a123f65cf3">setMinimumIntegerDigits</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the minimum number of digits allowed in the integer portion of a number.  <a href="#92a1454c564b66707d0145a123f65cf3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#e2d2e103f14b46234f6dc90125c98eb1">getMaximumFractionDigits</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the maximum number of digits allowed in the fraction portion of a number.  <a href="#e2d2e103f14b46234f6dc90125c98eb1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#bb97d22c2d628aab87d695c6f66e8dbb">setMaximumFractionDigits</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the maximum number of digits allowed in the fraction portion of a number.  <a href="#bb97d22c2d628aab87d695c6f66e8dbb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#11eb09d7b8f01e40766898f4614598a2">getMinimumFractionDigits</a> (void) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the minimum number of digits allowed in the fraction portion of a number.  <a href="#11eb09d7b8f01e40766898f4614598a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#454c39db13cb0dde930e9249ee726db5">setMinimumFractionDigits</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> newValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the minimum number of digits allowed in the fraction portion of a number.  <a href="#454c39db13cb0dde930e9249ee726db5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#1dbc762d377858e70de924aacc59d113">setCurrency</a> (const UChar *theCurrency, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the currency used to display currency amounts.  <a href="#1dbc762d377858e70de924aacc59d113"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const UChar *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#c7ccc3b79400e8e75d704fd2c6221725">getCurrency</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the currency used to display currency amounts.  <a href="#c7ccc3b79400e8e75d704fd2c6221725"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#63c193a4db6a1552073bf069d5d31749">getDynamicClassID</a> (void) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a unique class ID POLYMORPHICALLY.  <a href="#63c193a4db6a1552073bf069d5d31749"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#2483fa1e87f3600395ff0c8f364f7b6f">createInstance</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the default number format for the current default locale.  <a href="#2483fa1e87f3600395ff0c8f364f7b6f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#3aa6fc5e68d9d646998dbf8c91b939e2">createInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;inLocale, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the default number format for the specified locale.  <a href="#3aa6fc5e68d9d646998dbf8c91b939e2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#0c5d7b55f149281ed063e6bf631e1433">createCurrencyInstance</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a currency format for the current default locale.  <a href="#0c5d7b55f149281ed063e6bf631e1433"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#afc5e5013c7ff22c53195bc30e63b845">createCurrencyInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;inLocale, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a currency format for the specified locale.  <a href="#afc5e5013c7ff22c53195bc30e63b845"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#033f486287d03fc07ccf422992a3e894">createPercentInstance</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a percentage format for the current default locale.  <a href="#033f486287d03fc07ccf422992a3e894"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#c0b6f6d8fc351a0aad06910dfe043f91">createPercentInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;inLocale, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a percentage format for the specified locale.  <a href="#c0b6f6d8fc351a0aad06910dfe043f91"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#ed63bba10230ae92fc98f50031eadf75">createScientificInstance</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a scientific format for the current default locale.  <a href="#ed63bba10230ae92fc98f50031eadf75"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#a26a23ba85c6dac9b8f429d1fe7d695f">createScientificInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;inLocale, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a scientific format for the specified locale.  <a href="#a26a23ba85c6dac9b8f429d1fe7d695f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#8f18e4922ee902adabdd355311fd11ae">getAvailableLocales</a> (<a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> &amp;count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the set of Locales for which NumberFormats are installed.  <a href="#8f18e4922ee902adabdd355311fd11ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="umisc_8h.html#b5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#83e8d5a07d0b2c1444c051ab442e6c3e">registerFactory</a> (<a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> *toAdopt, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Register a new <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a>.  <a href="#83e8d5a07d0b2c1444c051ab442e6c3e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#b6ecd9973fd855a9028af8cadbf0a4c3">unregister</a> (<a class="el" href="umisc_8h.html#b5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a> key, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unregister a previously-registered <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> using the key returned from the register call.  <a href="#b6ecd9973fd855a9028af8cadbf0a4c3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#29addeb994249b22539ef1659d4017c7">getAvailableLocales</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a <a class="el" href="classStringEnumeration.html">StringEnumeration</a> over the locales available at the time of the call, including registered locales.  <a href="#29addeb994249b22539ef1659d4017c7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#cfeb8972959e9383b026761d0e9e1e5e">getStaticClassID</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the class ID for this class.  <a href="#cfeb8972959e9383b026761d0e9e1e5e"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#456d960b53c9f61acbf443f5fd56e7dc">NumberFormat</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor for subclass use only.  <a href="#456d960b53c9f61acbf443f5fd56e7dc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#abbf4f0a039756b6ba100aadc7cede99">NumberFormat</a> (const <a class="el" href="classNumberFormat.html">NumberFormat</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#abbf4f0a039756b6ba100aadc7cede99"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classNumberFormat.html">NumberFormat</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#8b9d5c0937f4da69d9a229fd10f8ec38">operator=</a> (const <a class="el" href="classNumberFormat.html">NumberFormat</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator.  <a href="#8b9d5c0937f4da69d9a229fd10f8ec38"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#aca410b90b02f0e0d86673054263cd17">getEffectiveCurrency</a> (UChar *result, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the currency in effect for this formatter.  <a href="#aca410b90b02f0e0d86673054263cd17"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38693e4c03f052ff23a839c69f3b4dee"></a><!-- doxytag: member="NumberFormat::ICUNumberFormatFactory" ref="38693e4c03f052ff23a839c69f3b4dee" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#38693e4c03f052ff23a839c69f3b4dee">ICUNumberFormatFactory</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5e0c68fe83aa739ffb329bb90ba5ebd3"></a><!-- doxytag: member="NumberFormat::ICUNumberFormatService" ref="5e0c68fe83aa739ffb329bb90ba5ebd3" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormat.html#5e0c68fe83aa739ffb329bb90ba5ebd3">ICUNumberFormatService</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract base class for all number formats. 
<p>
Provides interface for formatting and parsing a number. Also provides methods for determining which locales have number formats, and what their names are. <p>
<a class="el" href="classNumberFormat.html">NumberFormat</a> helps you to format and parse numbers for any locale. Your code can be completely independent of the locale conventions for decimal points, thousands-separators, or even the particular decimal digits used, or whether the number format is even decimal. <p>
To format a number for the current <a class="el" href="classLocale.html">Locale</a>, use one of the static factory methods: <pre>
<div class="fragment"><pre class="fragment">    <span class="keywordtype">double</span> myNumber = 7.0;
    <a class="code" href="classUnicodeString.html">UnicodeString</a> myString;
    <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> success = <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78ca43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;
    <a class="code" href="classNumberFormat.html">NumberFormat</a>* nf = <a class="code" href="classNumberFormat.html#2483fa1e87f3600395ff0c8f364f7b6f">NumberFormat::createInstance</a>(success)
    nf-&gt;<a class="code" href="classNumberFormat.html#848c716acd547e14018fd6713c6c58f2">format</a>(myNumber, myString);
    cout &lt;&lt; " Example 1: " &lt;&lt; myString &lt;&lt; endl;
</pre></div>
 </pre> If you are formatting multiple numbers, it is more efficient to get the format and use it multiple times so that the system doesn't have to fetch the information about the local language and country conventions multiple times. <pre>
<div class="fragment"><pre class="fragment">     <a class="code" href="classUnicodeString.html">UnicodeString</a> myString;
     <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> success = <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78ca43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;
     nf = <a class="code" href="classNumberFormat.html#2483fa1e87f3600395ff0c8f364f7b6f">NumberFormat::createInstance</a>( success );
     <a class="code" href="platform_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> a[] = { 123, 3333, -1234567 };
     <span class="keyword">const</span> <a class="code" href="platform_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> a_len = <span class="keyword">sizeof</span>(a) / <span class="keyword">sizeof</span>(a[0]);
     myString.<a class="code" href="classUnicodeString.html#ee0fec9568ee616e330627bf371eda8d">remove</a>();
     <span class="keywordflow">for</span> (<a class="code" href="platform_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> i = 0; i &lt; a_len; i++) {
         nf-&gt;<a class="code" href="classNumberFormat.html#848c716acd547e14018fd6713c6c58f2">format</a>(a[i], myString);
         myString += <span class="stringliteral">" ; "</span>;
     }
     cout &lt;&lt; <span class="stringliteral">" Example 2: "</span> &lt;&lt; myString &lt;&lt; endl;
</pre></div>
 </pre> To format a number for a different <a class="el" href="classLocale.html">Locale</a>, specify it in the call to <a class="el" href="classNumberFormat.html#2483fa1e87f3600395ff0c8f364f7b6f">createInstance()</a>. <pre>
<div class="fragment"><pre class="fragment">     nf = <a class="code" href="classNumberFormat.html#2483fa1e87f3600395ff0c8f364f7b6f">NumberFormat::createInstance</a>( Locale::FRENCH, success );
</pre></div>
 </pre> You can use a <a class="el" href="classNumberFormat.html">NumberFormat</a> to parse also. <pre>
<div class="fragment"><pre class="fragment">    <a class="code" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> success;
    <a class="code" href="classFormattable.html">Formattable</a> result(-999);  <span class="comment">// initialized with error code</span>
    nf-&gt;<a class="code" href="classNumberFormat.html#b2c59c0b036a413b6735c6d50b88ae25">parse</a>(myString, result, success);
</pre></div>
 </pre> Use createInstance to get the normal number format for that country. There are other static factory methods available. Use getCurrency to get the currency number format for that country. Use getPercent to get a format for displaying percentages. With this format, a fraction from 0.53 is displayed as 53%. <p>
You can also control the display of numbers with such methods as getMinimumFractionDigits. If you want even more control over the format or parsing, or want to give your users more control, you can try casting the <a class="el" href="classNumberFormat.html">NumberFormat</a> you get from the factory methods to a DecimalNumberFormat. This will work for the vast majority of countries; just remember to put it in a try block in case you encounter an unusual one. <p>
You can also use forms of the parse and format methods with <a class="el" href="classParsePosition.html">ParsePosition</a> and <a class="el" href="classFieldPosition.html">FieldPosition</a> to allow you to: <ul type="round>">
<li>
(a) progressively parse through pieces of a string. </li>
<li>
(b) align the decimal point and other areas. </li>
</ul>
For example, you can align numbers in two ways. <p>
If you are using a monospaced font with spacing for alignment, you can pass the <a class="el" href="classFieldPosition.html">FieldPosition</a> in your format call, with field = INTEGER_FIELD. On output, getEndIndex will be set to the offset between the last character of the integer and the decimal. Add (desiredSpaceCount - getEndIndex) spaces at the front of the string. <p>
If you are using proportional fonts, instead of padding with spaces, measure the width of the string in pixels from the start to getEndIndex. Then move the pen by (desiredPixelWidth - widthToAlignmentPoint) before drawing the text. It also works where there is no decimal, but possibly additional characters at the end, e.g. with parentheses in negative numbers: "(12)" for -12. <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>
<dl compact><dt><b><a class="el" href="stable.html#_stable002514">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="numfmt_8h-source.html#l00146">146</a> of file <a class="el" href="numfmt_8h-source.html">numfmt.h</a>.<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="ac1d8bfe4ccd2cdf6fa1a933b2df75a1"></a><!-- doxytag: member="NumberFormat::EAlignmentFields" ref="ac1d8bfe4ccd2cdf6fa1a933b2df75a1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classNumberFormat.html#ac1d8bfe4ccd2cdf6fa1a933b2df75a1">NumberFormat::EAlignmentFields</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Alignment Field constants used to construct a <a class="el" href="classFieldPosition.html">FieldPosition</a> object. 
<p>
Signifies that the position of the integer part or fraction part of a formatted number should be returned.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classFieldPosition.html">FieldPosition</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002517">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="ac1d8bfe4ccd2cdf6fa1a933b2df75a1193401497626cb3ca7f4f9baabe1c123"></a><!-- doxytag: member="INTEGER_FIELD" ref="ac1d8bfe4ccd2cdf6fa1a933b2df75a1193401497626cb3ca7f4f9baabe1c123" args="" -->INTEGER_FIELD</em>&nbsp;</td><td>
These constants are provided for backwards compatibility only. 
<p>
Please use the C++ style constants defined above. <dl compact><dt><b><a class="el" href="stable.html#_stable002562">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="numfmt_8h-source.html#l00157">157</a> of file <a class="el" href="numfmt_8h-source.html">numfmt.h</a>.
</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="b9364f134c85197678bdb68352f2ee15"></a><!-- doxytag: member="NumberFormat::~NumberFormat" ref="b9364f134c85197678bdb68352f2ee15" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual NumberFormat::~NumberFormat           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002518">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="456d960b53c9f61acbf443f5fd56e7dc"></a><!-- doxytag: member="NumberFormat::NumberFormat" ref="456d960b53c9f61acbf443f5fd56e7dc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NumberFormat::NumberFormat           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor for subclass use only. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002559">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="abbf4f0a039756b6ba100aadc7cede99"></a><!-- doxytag: member="NumberFormat::NumberFormat" ref="abbf4f0a039756b6ba100aadc7cede99" args="(const NumberFormat &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NumberFormat::NumberFormat           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classNumberFormat.html">NumberFormat</a> &amp;&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy constructor. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002560">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="97f4f81efd4747024deaf88ceb4d80a3"></a><!-- doxytag: member="NumberFormat::operator==" ref="97f4f81efd4747024deaf88ceb4d80a3" args="(const Format &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> NumberFormat::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return true if the given <a class="el" href="classFormat.html">Format</a> objects are semantically equal. 
<p>
Objects of different subclasses are considered unequal. <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the given <a class="el" href="classFormat.html">Format</a> objects are semantically equal. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002519">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classFormat.html#d9be7e8b7bef97013ff74ef1be3903a5">Format</a>.
<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#68b2c94926681294a2fe0d1c7cf52975">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#3d3a2d71fcf817ddc1473e9e5c59756c">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#2068e1cbee7eb25feaecb6c160a958a1">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="848c716acd547e14018fd6713c6c58f2"></a><!-- doxytag: member="NumberFormat::format" ref="848c716acd547e14018fd6713c6c58f2" args="(const Formattable &amp;obj, UnicodeString &amp;appendTo, FieldPosition &amp;pos, UErrorCode &amp;status) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> an object to produce a string. 
<p>
This method handles <a class="el" href="classFormattable.html">Formattable</a> objects with numeric types. If the <a class="el" href="classFormattable.html">Formattable</a> object type is not a numeric type, then it returns a failing UErrorCode.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj</em>&nbsp;</td><td>The object to format. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output param filled with success/failure status. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002520">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classFormat.html#722313b85cf4b163589b1de76dc4a194">Format</a>.
<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#27f27c3d881d63998dd49f65b838a396">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#1b34b7f84188cc9f534ef96b83c99d64">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#21eca37388561f666c47944150579a7d">RuleBasedNumberFormat</a>.
<p>
Referenced by <a class="el" href="rbnf_8h-source.html#l00999">RuleBasedNumberFormat::format()</a>, <a class="el" href="decimfmt_8h-source.html#l01870">DecimalFormat::format()</a>, and <a class="el" href="choicfmt_8h-source.html#l00756">ChoiceFormat::format()</a>.
</div>
</div><p>
<a class="anchor" name="b26d9612ec3467c8777922e948397f31"></a><!-- doxytag: member="NumberFormat::parseObject" ref="b26d9612ec3467c8777922e948397f31" args="(const UnicodeString &amp;source, Formattable &amp;result, ParsePosition &amp;parse_pos) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::parseObject           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>parse_pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parse a string to produce an object. 
<p>
This methods handles parsing of numeric strings into <a class="el" href="classFormattable.html">Formattable</a> objects with numeric types. <p>
Before calling, set parse_pos.index to the offset you want to start parsing at in the source. After calling, parse_pos.index indicates the position after the successfully parsed text. If an error occurs, parse_pos.index is unchanged. <p>
When parsing, leading whitespace is discarded (with successful parse), while trailing whitespace is left as is. <p>
See <a class="el" href="classFormat.html#8a5f098ad277621f3e12f926fafbc56d">Format::parseObject()</a> for more.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>source</em>&nbsp;</td><td>The string to be parsed into an object. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td><a class="el" href="classFormattable.html">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parse_pos</em>&nbsp;</td><td>The position to start parsing at. Upon return this param is set to the position after the last character successfully parsed. If the source is not parsed successfully, this param will remain unchanged. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A newly created Formattable* object, or NULL on failure. The caller owns this and should delete it when done. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002521">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classFormat.html#8a5f098ad277621f3e12f926fafbc56d">Format</a>.
</div>
</div><p>
<a class="anchor" name="d76767b9eef2144246afe02e28c73644"></a><!-- doxytag: member="NumberFormat::format" ref="d76767b9eef2144246afe02e28c73644" args="(double number, UnicodeString &amp;appendTo) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> a double number. 
<p>
These methods call the <a class="el" href="classNumberFormat.html">NumberFormat</a> pure virtual <a class="el" href="classNumberFormat.html#848c716acd547e14018fd6713c6c58f2">format()</a> methods with the default <a class="el" href="classFieldPosition.html">FieldPosition</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002522">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#0acf5d497c09ac281b23cd77010b5eb7">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#c5b6d7339b4ea565dee15147cd29df09">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#fe15fa9d2566bb4339e105f59f64f974">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="25076f2cd93aba1a2f7ab08e86a1a84b"></a><!-- doxytag: member="NumberFormat::format" ref="25076f2cd93aba1a2f7ab08e86a1a84b" args="(int32_t number, UnicodeString &amp;appendTo) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> a long number. 
<p>
These methods call the <a class="el" href="classNumberFormat.html">NumberFormat</a> pure virtual <a class="el" href="classNumberFormat.html#848c716acd547e14018fd6713c6c58f2">format()</a> methods with the default <a class="el" href="classFieldPosition.html">FieldPosition</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002523">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#917173c9f9f2f0d9e5f1de1dc09b7516">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#10d4385eb16ad17b731837d599601852">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#920e08de6b0aca3f83b1e6c35dff9ad9">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="59993f72a96cc591f9fb90a24290a01e"></a><!-- doxytag: member="NumberFormat::format" ref="59993f72a96cc591f9fb90a24290a01e" args="(int64_t number, UnicodeString &amp;appendTo) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#dec1df1b8b51cb32b77e5b86fff46471">int64_t</a>&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>appendTo</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> an int64 number. 
<p>
These methods call the <a class="el" href="classNumberFormat.html">NumberFormat</a> pure virtual <a class="el" href="classNumberFormat.html#848c716acd547e14018fd6713c6c58f2">format()</a> methods with the default <a class="el" href="classFieldPosition.html">FieldPosition</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002524">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#5ba07cd2c17b21892d72a7a1ec9f184a">DecimalFormat</a>.
</div>
</div><p>
<a class="anchor" name="7078d52baaa94ddf6e0680a4bc2f542a"></a><!-- doxytag: member="NumberFormat::format" ref="7078d52baaa94ddf6e0680a4bc2f542a" args="(double number, UnicodeString &amp;appendTo, FieldPosition &amp;pos) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> a double number. 
<p>
Concrete subclasses must implement these pure virtual methods.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002525">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classChoiceFormat.html#3488103b67c452ace7cac7f6da452e72">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#ed19f9279def60133b3122a2435ea568">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#0e777c2ca9d6bd7a4fb655ad6b27d6b1">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="caaca11795df052b165e82261b7825f1"></a><!-- doxytag: member="NumberFormat::format" ref="caaca11795df052b165e82261b7825f1" args="(int32_t number, UnicodeString &amp;appendTo, FieldPosition &amp;pos) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> a long number. 
<p>
Concrete subclasses must implement these pure virtual methods.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002526">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classChoiceFormat.html#4c31ee3278dc0afb02e83127d4677161">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#a2bab620a29369c545e85d544d73ad05">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#22e5508bd94d84d0a0bcc1ce79e51d4d">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="c64ccd4841f822f601f2533e63e0592b"></a><!-- doxytag: member="NumberFormat::format" ref="c64ccd4841f822f601f2533e63e0592b" args="(int64_t number, UnicodeString &amp;appendTo, FieldPosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#dec1df1b8b51cb32b77e5b86fff46471">int64_t</a>&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="classFormat.html">Format</a> an int64 number. 
<p>
(Not abstract to retain compatibility with earlier releases, however subclasses should override this method as it just delegates to format(int32_t number...);<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>The value to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002527">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#066409675f3c1ec30237668f7e3a80f0">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#4239fefb073af94327ccdac88bb5bf3e">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#1de06430414b7a781482cb7042c9042b">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="67d754f52d336d911454e97ba32654de"></a><!-- doxytag: member="NumberFormat::format" ref="67d754f52d336d911454e97ba32654de" args="(const Formattable &amp;obj, UnicodeString &amp;appendTo, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp; NumberFormat::format           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&nbsp;</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> &amp;&nbsp;</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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Redeclared <a class="el" href="classFormat.html">Format</a> method. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>obj</em>&nbsp;</td><td>The object to be formatted. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>appendTo</em>&nbsp;</td><td>Output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output parameter set to a failure error code when a failure occurs. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002528">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented from <a class="el" href="classFormat.html#f3f0b157f07d6e9f908da69c99239600">Format</a>.
<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#1df3b8b4b32453583e6cef2aa74c5d97">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#af9c44cbcc2b7f0279dcc6f121b8bf13">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#e97cffb5bc4fca4e5f7d89b41a333983">RuleBasedNumberFormat</a>.
<p>
Definition at line <a class="el" href="numfmt_8h-source.html#l00850">850</a> of file <a class="el" href="numfmt_8h-source.html">numfmt.h</a>.
<p>
References <a class="el" href="classFormat.html#f3f0b157f07d6e9f908da69c99239600">Format::format()</a>.
</div>
</div><p>
<a class="anchor" name="b2c59c0b036a413b6735c6d50b88ae25"></a><!-- doxytag: member="NumberFormat::parse" ref="b2c59c0b036a413b6735c6d50b88ae25" args="(const UnicodeString &amp;text, Formattable &amp;result, ParsePosition &amp;parsePosition) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::parse           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>parsePosition</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return a long if possible (e.g. 
<p>
within range LONG_MAX, LONG_MAX], and with no decimals), otherwise a double. If IntegerOnly is set, will stop at a decimal point (or equivalent; e.g. for rational numbers "1 2/3", will stop after the 1). <p>
If no object can be parsed, index is unchanged, and NULL is returned. <p>
This is a pure virtual which concrete subclasses must implement.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The text to be parsed. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td><a class="el" href="classFormattable.html">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parsePosition</em>&nbsp;</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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classFormattable.html">Formattable</a> object of numeric type. The caller owns this an must delete it. NULL on failure. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002529">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implemented in <a class="el" href="classChoiceFormat.html#f39ef720dd6a46678563da4f4f185bdd">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#fe6f4084b4a6ccff6977501d90011fa4">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#16c9b8e02cf8bb2f5c5d122143dbeb60">RuleBasedNumberFormat</a>.
<p>
Referenced by <a class="el" href="rbnf_8h-source.html#l01024">RuleBasedNumberFormat::parse()</a>.
</div>
</div><p>
<a class="anchor" name="01ac6e0a7a47b2d8e387752d1a024b29"></a><!-- doxytag: member="NumberFormat::parse" ref="01ac6e0a7a47b2d8e387752d1a024b29" args="(const UnicodeString &amp;text, Formattable &amp;result, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::parse           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</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> &amp;&nbsp;</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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parse a string as a numeric value, and return a <a class="el" href="classFormattable.html">Formattable</a> numeric object. 
<p>
This method parses integers only if IntegerOnly is set.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The text to be parsed. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td><a class="el" href="classFormattable.html">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Output parameter set to a failure error code when a failure occurs. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classFormattable.html">Formattable</a> object of numeric type. The caller owns this an must delete it. NULL on failure. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#680f60d204c0d00bb06f65d7c3ea716a">NumberFormat::isParseIntegerOnly</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002530">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#a1d8199f4ac3743ffb19f9deec3648f9">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#9c0309ac314fe3ec8a7cc4b50b99940a">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#90cc5cec4399cea7c3f1e600ca800ebb">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="08bffcf90d1cc63882ab686b6b271f9b"></a><!-- doxytag: member="NumberFormat::parseCurrency" ref="08bffcf90d1cc63882ab686b6b271f9b" args="(const UnicodeString &amp;text, Formattable &amp;result, ParsePosition &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classFormattable.html">Formattable</a>&amp; NumberFormat::parseCurrency           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parses text from the given string as a currency amount. 
<p>
Unlike the <a class="el" href="classNumberFormat.html#b2c59c0b036a413b6735c6d50b88ae25">parse()</a> method, this method will attempt to parse a generic currency name, searching for a match of this object's locale's currency display names, or for a 3-letter ISO currency code. This method will fail if this format is not a currency format, that is, if it does not contain the currency pattern symbol (U+00A4) in its prefix or suffix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>the string to parse </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>output parameter to receive result. This will have its currency set to the parsed ISO currency code. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>input-output position; on input, the position within text to match; must have 0 &lt;= pos.getIndex() &lt; <a class="el" href="ucnv_8h.html#c2d59ccd7e4666434391eab17b0e304f">text.length()</a>; on output, the position after the last matched character. If the parse fails, the position in unchanged upon output. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a reference to result </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000176">Internal:</a></b></dt><dd>Do not use. This API is for interal use only. </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#a83789398c1b9baa69aa31a5391eadf2">DecimalFormat</a>.
</div>
</div><p>
<a class="anchor" name="680f60d204c0d00bb06f65d7c3ea716a"></a><!-- doxytag: member="NumberFormat::isParseIntegerOnly" ref="680f60d204c0d00bb06f65d7c3ea716a" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> NumberFormat::isParseIntegerOnly           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return true if this format will parse numbers as integers only. 
<p>
For example in the English locale, with ParseIntegerOnly true, the string "1234." would be parsed as the integer value 1234 and parsing would stop at the "." character. Of course, the exact format accepted by the parse operation is locale dependant and determined by sub-classes of <a class="el" href="classNumberFormat.html">NumberFormat</a>. <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if this format will parse numbers as integers only. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002531">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="numfmt_8h-source.html#l00844">844</a> of file <a class="el" href="numfmt_8h-source.html">numfmt.h</a>.
</div>
</div><p>
<a class="anchor" name="c9b8eb834f6d18a61661cff71b954e52"></a><!-- doxytag: member="NumberFormat::setParseIntegerOnly" ref="c9b8eb834f6d18a61661cff71b954e52" args="(UBool value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::setParseIntegerOnly           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>value</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets whether or not numbers should be parsed as integers only. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>set True, this format will parse numbers as integers only. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#680f60d204c0d00bb06f65d7c3ea716a">isParseIntegerOnly</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002532">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2483fa1e87f3600395ff0c8f364f7b6f"></a><!-- doxytag: member="NumberFormat::createInstance" ref="2483fa1e87f3600395ff0c8f364f7b6f" args="(UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createInstance           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the default number format for the current default locale. 
<p>
The default format is one of the styles provided by the other factory methods: getNumberInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale dependant. <dl compact><dt><b><a class="el" href="stable.html#_stable002533">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="3aa6fc5e68d9d646998dbf8c91b939e2"></a><!-- doxytag: member="NumberFormat::createInstance" ref="3aa6fc5e68d9d646998dbf8c91b939e2" args="(const Locale &amp;inLocale, UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createInstance           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>inLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the default number format for the specified locale. 
<p>
The default format is one of the styles provided by the other factory methods: getNumberInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale dependant. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>inLocale</em>&nbsp;</td><td>the given locale. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002534">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="0c5d7b55f149281ed063e6bf631e1433"></a><!-- doxytag: member="NumberFormat::createCurrencyInstance" ref="0c5d7b55f149281ed063e6bf631e1433" args="(UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createCurrencyInstance           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a currency format for the current default locale. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002535">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="afc5e5013c7ff22c53195bc30e63b845"></a><!-- doxytag: member="NumberFormat::createCurrencyInstance" ref="afc5e5013c7ff22c53195bc30e63b845" args="(const Locale &amp;inLocale, UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createCurrencyInstance           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>inLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a currency format for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>inLocale</em>&nbsp;</td><td>the given locale. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002536">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="033f486287d03fc07ccf422992a3e894"></a><!-- doxytag: member="NumberFormat::createPercentInstance" ref="033f486287d03fc07ccf422992a3e894" args="(UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createPercentInstance           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a percentage format for the current default locale. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002537">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c0b6f6d8fc351a0aad06910dfe043f91"></a><!-- doxytag: member="NumberFormat::createPercentInstance" ref="c0b6f6d8fc351a0aad06910dfe043f91" args="(const Locale &amp;inLocale, UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createPercentInstance           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>inLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a percentage format for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>inLocale</em>&nbsp;</td><td>the given locale. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002538">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="ed63bba10230ae92fc98f50031eadf75"></a><!-- doxytag: member="NumberFormat::createScientificInstance" ref="ed63bba10230ae92fc98f50031eadf75" args="(UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createScientificInstance           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a scientific format for the current default locale. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002539">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="a26a23ba85c6dac9b8f429d1fe7d695f"></a><!-- doxytag: member="NumberFormat::createScientificInstance" ref="a26a23ba85c6dac9b8f429d1fe7d695f" args="(const Locale &amp;inLocale, UErrorCode &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormat::createScientificInstance           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>inLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a scientific format for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>inLocale</em>&nbsp;</td><td>the given locale. </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002540">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="8f18e4922ee902adabdd355311fd11ae"></a><!-- doxytag: member="NumberFormat::getAvailableLocales" ref="8f18e4922ee902adabdd355311fd11ae" args="(int32_t &amp;count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>* NumberFormat::getAvailableLocales           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>count</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the set of Locales for which NumberFormats are installed. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Output param to receive the size of the locales </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002541">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="83e8d5a07d0b2c1444c051ab442e6c3e"></a><!-- doxytag: member="NumberFormat::registerFactory" ref="83e8d5a07d0b2c1444c051ab442e6c3e" args="(NumberFormatFactory *toAdopt, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="umisc_8h.html#b5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a> NumberFormat::registerFactory           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> *&nbsp;</td>
          <td class="paramname"> <em>toAdopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Register a new <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a>. 
<p>
The factory will be adopted. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>toAdopt</em>&nbsp;</td><td>the <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> instance to be adopted </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>the in/out status code, no special meanings are assigned </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a registry key that can be used to unregister this factory </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002542">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b6ecd9973fd855a9028af8cadbf0a4c3"></a><!-- doxytag: member="NumberFormat::unregister" ref="b6ecd9973fd855a9028af8cadbf0a4c3" args="(URegistryKey key, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> NumberFormat::unregister           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umisc_8h.html#b5905d79ed3b979840cee1d5fd48b4fb">URegistryKey</a>&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Unregister a previously-registered <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> using the key returned from the register call. 
<p>
Key becomes invalid after a successful call and should not be used again. The <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> corresponding to the key will be deleted. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>the registry key returned by a previous call to registerFactory </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>the in/out status code, no special meanings are assigned </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if the factory for the key was successfully unregistered </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002543">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="29addeb994249b22539ef1659d4017c7"></a><!-- doxytag: member="NumberFormat::getAvailableLocales" ref="29addeb994249b22539ef1659d4017c7" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classStringEnumeration.html">StringEnumeration</a>* NumberFormat::getAvailableLocales           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return a <a class="el" href="classStringEnumeration.html">StringEnumeration</a> over the locales available at the time of the call, including registered locales. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classStringEnumeration.html">StringEnumeration</a> over the locales available at the time of the call </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002544">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="6fe9bf9d863b9c85ba8f61699e2bbd5b"></a><!-- doxytag: member="NumberFormat::isGroupingUsed" ref="6fe9bf9d863b9c85ba8f61699e2bbd5b" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> NumberFormat::isGroupingUsed           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns true if grouping is used in this format. 
<p>
For example, in the English locale, with grouping on, the number 1234567 might be formatted as "1,234,567". The grouping separator as well as the size of each group is locale dependant and is determined by sub-classes of <a class="el" href="classNumberFormat.html">NumberFormat</a>. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#42f1ff1c899ec393a87ef24cfdfdd0a1">setGroupingUsed</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002545">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="42f1ff1c899ec393a87ef24cfdfdd0a1"></a><!-- doxytag: member="NumberFormat::setGroupingUsed" ref="42f1ff1c899ec393a87ef24cfdfdd0a1" args="(UBool newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::setGroupingUsed           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td>
          <td class="paramname"> <em>newValue</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set whether or not grouping will be used in this format. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>True, grouping will be used in this format. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>getGroupingUsed </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002546">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="1b06a7feabb695be2e5f16a60a377cf3"></a><!-- doxytag: member="NumberFormat::getMaximumIntegerDigits" ref="1b06a7feabb695be2e5f16a60a377cf3" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> NumberFormat::getMaximumIntegerDigits           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the maximum number of digits allowed in the integer portion of a number. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the maximum number of digits allowed in the integer portion of a number. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#561c13b71c338e6b68729c786d2a3a09">setMaximumIntegerDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002547">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="561c13b71c338e6b68729c786d2a3a09"></a><!-- doxytag: member="NumberFormat::setMaximumIntegerDigits" ref="561c13b71c338e6b68729c786d2a3a09" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::setMaximumIntegerDigits           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>newValue</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the maximum number of digits allowed in the integer portion of a number. 
<p>
maximumIntegerDigits must be &gt;= minimumIntegerDigits. If the new value for maximumIntegerDigits is less than the current value of minimumIntegerDigits, then minimumIntegerDigits will also be set to the new value.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value for the maximum number of digits allowed in the integer portion of a number. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#1b06a7feabb695be2e5f16a60a377cf3">getMaximumIntegerDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002548">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#af3692b04cf2fafbc536bcdaf9caea25">DecimalFormat</a>.
</div>
</div><p>
<a class="anchor" name="a821c67615bf12bf1e8f1157108f6ad0"></a><!-- doxytag: member="NumberFormat::getMinimumIntegerDigits" ref="a821c67615bf12bf1e8f1157108f6ad0" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> NumberFormat::getMinimumIntegerDigits           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the minimum number of digits allowed in the integer portion of a number. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the minimum number of digits allowed in the integer portion of a number. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#92a1454c564b66707d0145a123f65cf3">setMinimumIntegerDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002549">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="92a1454c564b66707d0145a123f65cf3"></a><!-- doxytag: member="NumberFormat::setMinimumIntegerDigits" ref="92a1454c564b66707d0145a123f65cf3" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::setMinimumIntegerDigits           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>newValue</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the minimum number of digits allowed in the integer portion of a number. 
<p>
minimumIntegerDigits must be &lt;= maximumIntegerDigits. If the new value for minimumIntegerDigits exceeds the current value of maximumIntegerDigits, then maximumIntegerDigits will also be set to the new value. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value to be set. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#a821c67615bf12bf1e8f1157108f6ad0">getMinimumIntegerDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002550">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#cda98ebc96abd54c9d796e90231f3bf9">DecimalFormat</a>.
</div>
</div><p>
<a class="anchor" name="e2d2e103f14b46234f6dc90125c98eb1"></a><!-- doxytag: member="NumberFormat::getMaximumFractionDigits" ref="e2d2e103f14b46234f6dc90125c98eb1" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> NumberFormat::getMaximumFractionDigits           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the maximum number of digits allowed in the fraction portion of a number. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the maximum number of digits allowed in the fraction portion of a number. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#bb97d22c2d628aab87d695c6f66e8dbb">setMaximumFractionDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002551">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="bb97d22c2d628aab87d695c6f66e8dbb"></a><!-- doxytag: member="NumberFormat::setMaximumFractionDigits" ref="bb97d22c2d628aab87d695c6f66e8dbb" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::setMaximumFractionDigits           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>newValue</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the maximum number of digits allowed in the fraction portion of a number. 
<p>
maximumFractionDigits must be &gt;= minimumFractionDigits. If the new value for maximumFractionDigits is less than the current value of minimumFractionDigits, then minimumFractionDigits will also be set to the new value. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value to be set. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#e2d2e103f14b46234f6dc90125c98eb1">getMaximumFractionDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002552">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#383f882e65849d2cf59550c875f61f1d">DecimalFormat</a>.
</div>
</div><p>
<a class="anchor" name="11eb09d7b8f01e40766898f4614598a2"></a><!-- doxytag: member="NumberFormat::getMinimumFractionDigits" ref="11eb09d7b8f01e40766898f4614598a2" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a> NumberFormat::getMinimumFractionDigits           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the minimum number of digits allowed in the fraction portion of a number. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the minimum number of digits allowed in the fraction portion of a number. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#454c39db13cb0dde930e9249ee726db5">setMinimumFractionDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002553">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="454c39db13cb0dde930e9249ee726db5"></a><!-- doxytag: member="NumberFormat::setMinimumFractionDigits" ref="454c39db13cb0dde930e9249ee726db5" args="(int32_t newValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::setMinimumFractionDigits           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#b1967d8591af1a4e48c37fd2b0f184d0">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>newValue</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the minimum number of digits allowed in the fraction portion of a number. 
<p>
minimumFractionDigits must be &lt;= maximumFractionDigits. If the new value for minimumFractionDigits exceeds the current value of maximumFractionDigits, then maximumIntegerDigits will also be set to the new value <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>newValue</em>&nbsp;</td><td>the new value to be set. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#11eb09d7b8f01e40766898f4614598a2">getMinimumFractionDigits</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002554">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#cb6abe86ebcfd4bb0b91dec005da9d7b">DecimalFormat</a>.
</div>
</div><p>
<a class="anchor" name="1dbc762d377858e70de924aacc59d113"></a><!-- doxytag: member="NumberFormat::setCurrency" ref="1dbc762d377858e70de924aacc59d113" args="(const UChar *theCurrency, UErrorCode &amp;ec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::setCurrency           </td>
          <td>(</td>
          <td class="paramtype">const UChar *&nbsp;</td>
          <td class="paramname"> <em>theCurrency</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ec</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the currency used to display currency amounts. 
<p>
This takes effect immediately, if this format is a currency format. If this format is not a currency format, then the currency is used if and when this object becomes a currency format. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>theCurrency</em>&nbsp;</td><td>a 3-letter ISO code indicating new currency to use. It need not be null-terminated. May be the empty string or NULL to indicate no currency. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ec</em>&nbsp;</td><td>input-output error code </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002555">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#4c87fca5e0d14886bdaa4e0969f814e5">DecimalFormat</a>.
</div>
</div><p>
<a class="anchor" name="c7ccc3b79400e8e75d704fd2c6221725"></a><!-- doxytag: member="NumberFormat::getCurrency" ref="c7ccc3b79400e8e75d704fd2c6221725" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const UChar* NumberFormat::getCurrency           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the currency used to display currency amounts. 
<p>
This may be an empty string for some subclasses. <dl class="return" compact><dt><b>Returns:</b></dt><dd>a 3-letter null-terminated ISO code indicating the currency in use, or a pointer to the empty string. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002556">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="cfeb8972959e9383b026761d0e9e1e5e"></a><!-- doxytag: member="NumberFormat::getStaticClassID" ref="cfeb8972959e9383b026761d0e9e1e5e" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> NumberFormat::getStaticClassID           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the class ID for this class. 
<p>
This is useful for comparing to a return value from <a class="el" href="classNumberFormat.html#63c193a4db6a1552073bf069d5d31749">getDynamicClassID()</a>. Note that, because <a class="el" href="classNumberFormat.html">NumberFormat</a> is an abstract base class, no fully constructed object will have the class ID returned by <a class="el" href="classNumberFormat.html#cfeb8972959e9383b026761d0e9e1e5e">NumberFormat::getStaticClassID()</a>. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The class ID for all objects of this class. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002557">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Reimplemented in <a class="el" href="classChoiceFormat.html#daeccf67d5eac282b6b3c4ccf020e9b5">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#2c44dda0c6621b3ff10b120fd760ea88">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#3f59d38e1adfa24dd9b33b1996c018b8">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="63c193a4db6a1552073bf069d5d31749"></a><!-- doxytag: member="NumberFormat::getDynamicClassID" ref="63c193a4db6a1552073bf069d5d31749" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> NumberFormat::getDynamicClassID           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a unique class ID POLYMORPHICALLY. 
<p>
Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic <a class="el" href="classNumberFormat.html#97f4f81efd4747024deaf88ceb4d80a3">operator==()</a> and <a class="el" href="classFormat.html#a636e43fefeb57ed01add9db32dd91cb">clone()</a> methods call this method. <p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>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. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable002558">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Implements <a class="el" href="classFormat.html#5bb95eb0d807a3ce319ebc2fe19a5f3f">Format</a>.
<p>
Implemented in <a class="el" href="classChoiceFormat.html#3bb9d296446885cca90a38e477ef5527">ChoiceFormat</a>, <a class="el" href="classDecimalFormat.html#29d58da07dee220c1661ec37397babb2">DecimalFormat</a>, and <a class="el" href="classRuleBasedNumberFormat.html#a570fa8ffe7f29c9d6d7ab4b3303fa2a">RuleBasedNumberFormat</a>.
</div>
</div><p>
<a class="anchor" name="8b9d5c0937f4da69d9a229fd10f8ec38"></a><!-- doxytag: member="NumberFormat::operator=" ref="8b9d5c0937f4da69d9a229fd10f8ec38" args="(const NumberFormat &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classNumberFormat.html">NumberFormat</a>&amp; NumberFormat::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classNumberFormat.html">NumberFormat</a> &amp;&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assignment operator. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002561">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="aca410b90b02f0e0d86673054263cd17"></a><!-- doxytag: member="NumberFormat::getEffectiveCurrency" ref="aca410b90b02f0e0d86673054263cd17" args="(UChar *result, UErrorCode &amp;ec) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void NumberFormat::getEffectiveCurrency           </td>
          <td>(</td>
          <td class="paramtype">UChar *&nbsp;</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#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>ec</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the currency in effect for this formatter. 
<p>
Subclasses should override this method as needed. Unlike <a class="el" href="classNumberFormat.html#c7ccc3b79400e8e75d704fd2c6221725">getCurrency()</a>, this method should never return "". <dl class="return" compact><dt><b>Returns:</b></dt><dd>output parameter for null-terminated result, which must have a capacity of at least 4 </dd></dl>
<dl compact><dt><b><a class="el" href="internal.html#_internal000177">Internal:</a></b></dt><dd>Do not use. This API is for interal use only. </dd></dl>

<p>
Reimplemented in <a class="el" href="classDecimalFormat.html#1e0f67f9fcfbb26e36f1a44865e7cf15">DecimalFormat</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="numfmt_8h-source.html">numfmt.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 14 12:59:43 2007 for ICU 3.8 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>