Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 34ae14235711d1471f043ac894a061f9 > files > 97

libicu-doc-3.6-5.16.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.6: NumberFormatFactory 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.4.7 -->
<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>NumberFormatFactory Class Reference</h1><!-- doxytag: class="NumberFormatFactory" --><!-- doxytag: inherits="UObject" -->A <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> is used to register new 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 NumberFormatFactory:
<p><center><img src="classNumberFormatFactory.png" usemap="#NumberFormatFactory_map" border="0" alt=""></center>
<map name="NumberFormatFactory_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,176,80">
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,176,24">
<area href="classSimpleNumberFormatFactory.html" alt="SimpleNumberFormatFactory" shape="rect" coords="0,168,176,192">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></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="classNumberFormatFactory.html#7360a66133e27275d43c08936959811b">~NumberFormatFactory</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#7360a66133e27275d43c08936959811b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormatFactory.html#7e8ca928572b1f4b1a465b6974d55f4b">visible</a> (void) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if this factory will be visible.  <a href="#7e8ca928572b1f4b1a465b6974d55f4b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classUnicodeString.html">UnicodeString</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormatFactory.html#4f875c2bccfbe96d8f3c661abdc4a562">getSupportedIDs</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> &amp;count, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> &amp;status) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the locale names directly supported by this factory.  <a href="#4f875c2bccfbe96d8f3c661abdc4a562"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classNumberFormat.html">NumberFormat</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classNumberFormatFactory.html#6db0006f02d7c0600840dd8bcadefdb4">createFormat</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;loc, <a class="el" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db">UNumberFormatStyle</a> formatType)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a number format of the appropriate type.  <a href="#6db0006f02d7c0600840dd8bcadefdb4"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classNumberFormatFactory.html">NumberFormatFactory</a> is used to register new number formats. 
<p>
The factory should be able to create any of the predefined formats for each locale it supports. When registered, the locales it supports extend or override the locale already supported by ICU.<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable002313">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="numfmt_8h-source.html#l00766">766</a> of file <a class="el" href="numfmt_8h-source.html">numfmt.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="7360a66133e27275d43c08936959811b"></a><!-- doxytag: member="NumberFormatFactory::~NumberFormatFactory" ref="7360a66133e27275d43c08936959811b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual NumberFormatFactory::~NumberFormatFactory           </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#_stable002361">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6db0006f02d7c0600840dd8bcadefdb4"></a><!-- doxytag: member="NumberFormatFactory::createFormat" ref="6db0006f02d7c0600840dd8bcadefdb4" args="(const Locale &amp;loc, UNumberFormatStyle formatType)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classNumberFormat.html">NumberFormat</a>* NumberFormatFactory::createFormat           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>loc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db">UNumberFormatStyle</a>&nbsp;</td>
          <td class="paramname"> <em>formatType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return a number format of the appropriate type. 
<p>
If the locale is not supported, return null. If the locale is supported, but the type is not provided by this service, return null. Otherwise return an appropriate instance of <a class="el" href="classNumberFormat.html">NumberFormat</a>. <dl compact><dt><b><a class="el" href="stable.html#_stable002364">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="4f875c2bccfbe96d8f3c661abdc4a562"></a><!-- doxytag: member="NumberFormatFactory::getSupportedIDs" ref="4f875c2bccfbe96d8f3c661abdc4a562" args="(int32_t &amp;count, UErrorCode &amp;status) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classUnicodeString.html">UnicodeString</a>* NumberFormatFactory::getSupportedIDs           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">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> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the locale names directly supported by this factory. 
<p>
The number of names is returned in count; <dl compact><dt><b><a class="el" href="stable.html#_stable002363">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleNumberFormatFactory.html#c4d5a41c9801baf3e3f46d6bd5807e6d">SimpleNumberFormatFactory</a>.
</div>
</div><p>
<a class="anchor" name="7e8ca928572b1f4b1a465b6974d55f4b"></a><!-- doxytag: member="NumberFormatFactory::visible" ref="7e8ca928572b1f4b1a465b6974d55f4b" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#d373ce262c37cc047b0df2ad7b5dbba7">UBool</a> NumberFormatFactory::visible           </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>
Return true if this factory will be visible. 
<p>
Default is true. If not visible, the locales supported by this factory will not be listed by getAvailableLocales. <dl compact><dt><b><a class="el" href="stable.html#_stable002362">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl>

<p>
Implemented in <a class="el" href="classSimpleNumberFormatFactory.html#ff99105101ef951e6889c5e5c1b5dfc7">SimpleNumberFormatFactory</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 Tue Dec 13 17:29:54 2011 for ICU 3.6 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>