Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 38

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ICU 4.4: choicfmt.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>choicfmt.h</h1><a href="choicfmt_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">********************************************************************************</span>
<a name="l00003"></a>00003 <span class="comment">*   Copyright (C) 1997-2010, International Business Machines</span>
<a name="l00004"></a>00004 <span class="comment">*   Corporation and others.  All Rights Reserved.</span>
<a name="l00005"></a>00005 <span class="comment">********************************************************************************</span>
<a name="l00006"></a>00006 <span class="comment">*</span>
<a name="l00007"></a>00007 <span class="comment">* File CHOICFMT.H</span>
<a name="l00008"></a>00008 <span class="comment">*</span>
<a name="l00009"></a>00009 <span class="comment">* Modification History:</span>
<a name="l00010"></a>00010 <span class="comment">*</span>
<a name="l00011"></a>00011 <span class="comment">*   Date        Name        Description</span>
<a name="l00012"></a>00012 <span class="comment">*   02/19/97    aliu        Converted from java.</span>
<a name="l00013"></a>00013 <span class="comment">*   03/20/97    helena      Finished first cut of implementation and got rid</span>
<a name="l00014"></a>00014 <span class="comment">*                           of nextDouble/previousDouble and replaced with</span>
<a name="l00015"></a>00015 <span class="comment">*                           boolean array.</span>
<a name="l00016"></a>00016 <span class="comment">*   4/10/97     aliu        Clean up.  Modified to work on AIX.</span>
<a name="l00017"></a>00017 <span class="comment">*   8/6/97      nos         Removed overloaded constructor, member var &apos;buffer&apos;.</span>
<a name="l00018"></a>00018 <span class="comment">*   07/22/98    stephen     Removed operator!= (implemented in Format)</span>
<a name="l00019"></a>00019 <span class="comment">********************************************************************************</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef CHOICFMT_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define CHOICFMT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>&quot;</span>
<a name="l00026"></a>00026 
<a name="l00032"></a>00032 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;<a class="code" href="unistr_8h.html" title="C++ API: Unicode String.">unicode/unistr.h</a>&quot;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;<a class="code" href="numfmt_8h.html" title="C++ API: Abstract base class for all number formats.">unicode/numfmt.h</a>&quot;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;<a class="code" href="fieldpos_8h.html" title="C++ API: FieldPosition identifies the fields in a formatted output.">unicode/fieldpos.h</a>&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;<a class="code" href="format_8h.html" title="C++ API: Base class for all formats.">unicode/format.h</a>&quot;</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <a class="code" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b" title="This is used to begin a declaration of a public ICU C++ API.">U_NAMESPACE_BEGIN</a>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>;
<a name="l00042"></a>00042 
<a name="l00259"></a><a class="code" href="classChoiceFormat.html">00259</a> <span class="keyword">class </span><a class="code" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a" title="Set to export library symbols from inside the i18n library, and to import them from...">U_I18N_API</a> <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>: <span class="keyword">public</span> <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> {
<a name="l00260"></a>00260 <span class="keyword">public</span>:
<a name="l00270"></a>00270     <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00271"></a>00271                  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status);
<a name="l00272"></a>00272 
<a name="l00273"></a>00273 
<a name="l00284"></a>00284     <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>* limits,
<a name="l00285"></a>00285                  <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* formats,
<a name="l00286"></a>00286                  int32_t count );
<a name="l00287"></a>00287 
<a name="l00305"></a>00305     <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>* limits,
<a name="l00306"></a>00306                  <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a>* closures,
<a name="l00307"></a>00307                  <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* formats,
<a name="l00308"></a>00308                  int32_t count);
<a name="l00309"></a>00309 
<a name="l00316"></a>00316     <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>(<span class="keyword">const</span> <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>&amp; that);
<a name="l00317"></a>00317 
<a name="l00324"></a>00324     <span class="keyword">const</span> <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>&amp; <a class="code" href="classNumberFormat.html#a8b9d5c0937f4da69d9a229fd10f8ec38" title="Assignment operator.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>&amp; that);
<a name="l00325"></a>00325 
<a name="l00330"></a>00330     <span class="keyword">virtual</span> ~<a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>();
<a name="l00331"></a>00331 
<a name="l00339"></a>00339     <span class="keyword">virtual</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>* <a class="code" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a" title="Clone this object polymorphically.">clone</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00340"></a>00340 
<a name="l00349"></a>00349     <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classNumberFormat.html#a97f4f81efd4747024deaf88ceb4d80a3" title="Return true if the given Format objects are semantically equal.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>&amp; other) <span class="keyword">const</span>;
<a name="l00350"></a>00350 
<a name="l00359"></a>00359     <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyPattern(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00360"></a>00360                               <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status);
<a name="l00361"></a>00361 
<a name="l00372"></a>00372     <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyPattern(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00373"></a>00373                              <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>&amp; parseError,
<a name="l00374"></a>00374                              <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status);
<a name="l00383"></a>00383     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; toPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &amp;pattern) <span class="keyword">const</span>;
<a name="l00384"></a>00384 
<a name="l00397"></a>00397     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setChoices(<span class="keyword">const</span> <span class="keywordtype">double</span>* limitsToCopy,
<a name="l00398"></a>00398                             <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* formatsToCopy,
<a name="l00399"></a>00399                             int32_t count );
<a name="l00400"></a>00400 
<a name="l00410"></a>00410     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setChoices(<span class="keyword">const</span> <span class="keywordtype">double</span>* limits,
<a name="l00411"></a>00411                             <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a>* closures,
<a name="l00412"></a>00412                             <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* formats,
<a name="l00413"></a>00413                             int32_t count);
<a name="l00414"></a>00414 
<a name="l00422"></a>00422     <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">double</span>* getLimits(int32_t&amp; count) <span class="keyword">const</span>;
<a name="l00423"></a>00423 
<a name="l00432"></a>00432     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a>* getClosures(int32_t&amp; count) <span class="keyword">const</span>;
<a name="l00433"></a>00433 
<a name="l00441"></a>00441     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* getFormats(int32_t&amp; count) <span class="keyword">const</span>;
<a name="l00442"></a>00442 
<a name="l00443"></a>00443 
<a name="l00444"></a>00444     <span class="keyword">using</span> <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">NumberFormat::format</a>;
<a name="l00445"></a>00445 
<a name="l00457"></a>00457     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(<span class="keywordtype">double</span> number,
<a name="l00458"></a>00458                                   <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00459"></a>00459                                   <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; pos) <span class="keyword">const</span>;
<a name="l00471"></a>00471     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int32_t number,
<a name="l00472"></a>00472                                   <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00473"></a>00473                                   <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; pos) <span class="keyword">const</span>;
<a name="l00474"></a>00474 
<a name="l00486"></a>00486     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int64_t number,
<a name="l00487"></a>00487                                   <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00488"></a>00488                                   <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; pos) <span class="keyword">const</span>;
<a name="l00489"></a>00489 
<a name="l00504"></a>00504     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* objs,
<a name="l00505"></a>00505                                   int32_t cnt,
<a name="l00506"></a>00506                                   <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00507"></a>00507                                   <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; pos,
<a name="l00508"></a>00508                                   <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; success) <span class="keyword">const</span>;
<a name="l00523"></a>00523     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; obj,
<a name="l00524"></a>00524                                   <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00525"></a>00525                                   <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; pos,
<a name="l00526"></a>00526                                   <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status) <span class="keyword">const</span>;
<a name="l00527"></a>00527 
<a name="l00539"></a>00539     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; obj,
<a name="l00540"></a>00540                           <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00541"></a>00541                           <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status) <span class="keyword">const</span>;
<a name="l00542"></a>00542 
<a name="l00554"></a>00554     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(  <span class="keywordtype">double</span> number,
<a name="l00555"></a>00555                             <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo) <span class="keyword">const</span>;
<a name="l00556"></a>00556 
<a name="l00568"></a>00568     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(  int32_t number,
<a name="l00569"></a>00569                             <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo) <span class="keyword">const</span>;
<a name="l00570"></a>00570 
<a name="l00589"></a>00589     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#ab2c59c0b036a413b6735c6d50b88ae25" title="Return a long if possible (e.g.">parse</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; text,
<a name="l00590"></a>00590                        <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; result,
<a name="l00591"></a>00591                        <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>&amp; parsePosition) <span class="keyword">const</span>;
<a name="l00592"></a>00592 
<a name="l00609"></a>00609     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#ab2c59c0b036a413b6735c6d50b88ae25" title="Return a long if possible (e.g.">parse</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; text,
<a name="l00610"></a>00610                        <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; result,
<a name="l00611"></a>00611                        <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status) <span class="keyword">const</span>;
<a name="l00612"></a>00612 
<a name="l00613"></a>00613 
<a name="l00614"></a>00614 <span class="keyword">public</span>:
<a name="l00626"></a>00626     <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="classNumberFormat.html#a63c193a4db6a1552073bf069d5d31749" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00627"></a>00627 
<a name="l00639"></a>00639     <span class="keyword">static</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a class="code" href="classNumberFormat.html#acfeb8972959e9383b026761d0e9e1e5e" title="Return the class ID for this class.">getStaticClassID</a>(<span class="keywordtype">void</span>);
<a name="l00640"></a>00640 
<a name="l00641"></a>00641 <span class="keyword">private</span>:
<a name="l00642"></a>00642     <span class="comment">// static cache management (thread-safe)</span>
<a name="l00643"></a>00643   <span class="comment">//  static NumberFormat* getNumberFormat(UErrorCode &amp;status); // call this function to &apos;check out&apos; a numberformat from the cache.</span>
<a name="l00644"></a>00644   <span class="comment">//  static void          releaseNumberFormat(NumberFormat *adopt); // call this function to &apos;return&apos; the number format to the cache.</span>
<a name="l00645"></a>00645 
<a name="l00652"></a>00652     <span class="keyword">static</span> <span class="keywordtype">double</span> stod(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <span class="keywordtype">string</span>);
<a name="l00653"></a>00653 
<a name="l00661"></a>00661     <span class="keyword">static</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; dtos(<span class="keywordtype">double</span> value, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <span class="keywordtype">string</span>);
<a name="l00662"></a>00662 
<a name="l00663"></a>00663     <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>(); <span class="comment">// default constructor not implemented</span>
<a name="l00664"></a>00664 
<a name="l00676"></a>00676     <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; newPattern,
<a name="l00677"></a>00677                  <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>&amp; parseError,
<a name="l00678"></a>00678                  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status);
<a name="l00679"></a>00679 
<a name="l00680"></a>00680     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>;
<a name="l00718"></a>00718     <span class="keywordtype">double</span>*         fChoiceLimits;
<a name="l00719"></a>00719     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a>*          fClosures;
<a name="l00720"></a>00720     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>*  fChoiceFormats;
<a name="l00721"></a>00721     int32_t         fCount;
<a name="l00722"></a>00722 };
<a name="l00723"></a>00723 
<a name="l00724"></a>00724 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp;
<a name="l00725"></a><a class="code" href="classChoiceFormat.html#a1df3b8b4b32453583e6cef2aa74c5d97">00725</a> <a class="code" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Format a double or long number using this object&amp;#39;s choices.">ChoiceFormat::format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; obj,
<a name="l00726"></a>00726                      <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00727"></a>00727                      <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status)<span class="keyword"> const </span>{
<a name="l00728"></a>00728     <span class="comment">// Don&apos;t use Format:: - use immediate base class only,</span>
<a name="l00729"></a>00729     <span class="comment">// in case immediate base modifies behavior later.</span>
<a name="l00730"></a>00730     <span class="keywordflow">return</span> <a class="code" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Format a double or long number using this object&amp;#39;s choices.">NumberFormat::format</a>(obj, appendTo, status);
<a name="l00731"></a>00731 }
<a name="l00732"></a>00732 
<a name="l00733"></a>00733 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp;
<a name="l00734"></a><a class="code" href="classChoiceFormat.html#af4a83c08f52e73d89efa3ae68b938e0d">00734</a> <a class="code" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Format a double or long number using this object&amp;#39;s choices.">ChoiceFormat::format</a>(<span class="keywordtype">double</span> number,
<a name="l00735"></a>00735                      <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo)<span class="keyword"> const </span>{
<a name="l00736"></a>00736     <span class="keywordflow">return</span> <a class="code" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Format a double or long number using this object&amp;#39;s choices.">NumberFormat::format</a>(number, appendTo);
<a name="l00737"></a>00737 }
<a name="l00738"></a>00738 
<a name="l00739"></a>00739 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp;
<a name="l00740"></a><a class="code" href="classChoiceFormat.html#a5c48a05a17d3f3e33bd18d1674c90c66">00740</a> <a class="code" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Format a double or long number using this object&amp;#39;s choices.">ChoiceFormat::format</a>(int32_t number,
<a name="l00741"></a>00741                      <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo)<span class="keyword"> const </span>{
<a name="l00742"></a>00742     <span class="keywordflow">return</span> <a class="code" href="classChoiceFormat.html#a3488103b67c452ace7cac7f6da452e72" title="Format a double or long number using this object&amp;#39;s choices.">NumberFormat::format</a>(number, appendTo);
<a name="l00743"></a>00743 }
<a name="l00744"></a>00744 <a class="code" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933" title="This is used to end a declaration of a public ICU C++ API.">U_NAMESPACE_END</a>
<a name="l00745"></a>00745 
<a name="l00746"></a>00746 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span>
<a name="l00747"></a>00747 
<a name="l00748"></a>00748 <span class="preprocessor">#endif // _CHOICFMT</span>
<a name="l00749"></a>00749 <span class="preprocessor"></span><span class="comment">//eof</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>