<!-- 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.1: decimfmt.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.2-20100208 --> <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 Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data 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 List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <h1>decimfmt.h</h1><a href="decimfmt_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 DECIMFMT.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 clhuang Updated per C++ implementation.</span> <a name="l00014"></a>00014 <span class="comment">* 04/03/97 aliu Rewrote parsing and formatting completely, and</span> <a name="l00015"></a>00015 <span class="comment">* cleaned up and debugged. Actually works now.</span> <a name="l00016"></a>00016 <span class="comment">* 04/17/97 aliu Changed DigitCount to int per code review.</span> <a name="l00017"></a>00017 <span class="comment">* 07/10/97 helena Made ParsePosition a class and get rid of the function</span> <a name="l00018"></a>00018 <span class="comment">* hiding problems.</span> <a name="l00019"></a>00019 <span class="comment">* 09/09/97 aliu Ported over support for exponential formats.</span> <a name="l00020"></a>00020 <span class="comment">* 07/20/98 stephen Changed documentation</span> <a name="l00021"></a>00021 <span class="comment">********************************************************************************</span> <a name="l00022"></a>00022 <span class="comment">*/</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="preprocessor">#ifndef DECIMFMT_H</span> <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define DECIMFMT_H</span> <a name="l00026"></a>00026 <span class="preprocessor"></span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>"</span> <a name="l00033"></a>00033 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span> <a name="l00034"></a>00034 <span class="preprocessor"></span> <a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="dcfmtsym_8h.html" title="C++ API: Symbols for formatting numbers.">unicode/dcfmtsym.h</a>"</span> <a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="numfmt_8h.html" title="C++ API: Abstract base class for all number formats.">unicode/numfmt.h</a>"</span> <a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="locid_8h.html" title="C++ API: Locale ID object.">unicode/locid.h</a>"</span> <a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="fpositer_8h.html" title="C++ API: FieldPosition Iterator.">unicode/fpositer.h</a>"</span> <a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="stringpiece_8h.html" title="C++ API: StringPiece: Read-only byte string wrapper class.">unicode/stringpiece.h</a>"</span> <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="keyword">union </span>UHashTok; <a name="l00042"></a>00042 <a name="l00043"></a>00043 <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="l00044"></a>00044 <a name="l00045"></a>00045 <span class="keyword">class </span>DigitList; <a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>; <a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="classCurrencyPluralInfo.html" title="This class represents the information needed by DecimalFormat to format currency...">CurrencyPluralInfo</a>; <a name="l00048"></a>00048 <span class="keyword">class </span>Hashtable; <a name="l00049"></a>00049 <span class="keyword">class </span>FieldPositionHandler; <a name="l00050"></a>00050 <a name="l00639"></a><a class="code" href="classDecimalFormat.html">00639</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="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>: <span class="keyword">public</span> <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> { <a name="l00640"></a>00640 <span class="keyword">public</span>: <a name="l00645"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7">00645</a> <span class="keyword">enum</span> <a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7" title="Rounding mode.">ERoundingMode</a> { <a name="l00646"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7af146ca0a8b344f70cecb3803ae0f570b">00646</a> kRoundCeiling, <a name="l00647"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7abfbc6479dc0e17828284c1c9defb1a6b">00647</a> kRoundFloor, <a name="l00648"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7a2533285a97586f0dbd50b800fd6122c8">00648</a> kRoundDown, <a name="l00649"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7a704fbaff22d357bf8e050996bd685301">00649</a> kRoundUp, <a name="l00650"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7a66aca6588fc0e4dbf998f1218c650a8e">00650</a> kRoundHalfEven, <a name="l00652"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7aa6798557d8ca6479fcaf9f413f149471">00652</a> kRoundHalfDown, <a name="l00654"></a><a class="code" href="classDecimalFormat.html#a00f3e49ce35985df764feb658371b7e7ab7ea67fe0f5eb967ab3e21ec59aec926">00654</a> kRoundHalfUp <a name="l00656"></a>00656 <span class="comment">// We don't support ROUND_UNNECESSARY</span> <a name="l00657"></a>00657 }; <a name="l00658"></a>00658 <a name="l00663"></a><a class="code" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21">00663</a> <span class="keyword">enum</span> <a class="code" href="classDecimalFormat.html#ad9cabc444ffb51c72c4c11be6d004e21" title="Pad position.">EPadPosition</a> { <a name="l00664"></a>00664 kPadBeforePrefix, <a name="l00665"></a>00665 kPadAfterPrefix, <a name="l00666"></a>00666 kPadBeforeSuffix, <a name="l00667"></a>00667 kPadAfterSuffix <a name="l00668"></a>00668 }; <a name="l00669"></a>00669 <a name="l00683"></a>00683 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>(<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>& status); <a name="l00684"></a>00684 <a name="l00699"></a>00699 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</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>& pattern, <a name="l00700"></a>00700 <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>& status); <a name="l00701"></a>00701 <a name="l00720"></a>00720 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</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>& pattern, <a name="l00721"></a>00721 <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>* symbolsToAdopt, <a name="l00722"></a>00722 <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>& status); <a name="l00723"></a>00723 <a name="l00736"></a>00736 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</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>& pattern, <a name="l00737"></a>00737 <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>* symbolsToAdopt, <a name="l00738"></a>00738 <a class="code" href="classNumberFormat.html#ad0cc3a5ee54a7520ea911a93bc1d2316" title="Constants for various number format styles.">NumberFormat::EStyles</a> style, <a name="l00739"></a>00739 <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>& status); <a name="l00740"></a>00740 <a name="l00760"></a>00760 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</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>& pattern, <a name="l00761"></a>00761 <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>* symbolsToAdopt, <a name="l00762"></a>00762 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>& parseError, <a name="l00763"></a>00763 <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>& status); <a name="l00781"></a>00781 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</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>& pattern, <a name="l00782"></a>00782 <span class="keyword">const</span> <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>& symbols, <a name="l00783"></a>00783 <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>& status); <a name="l00784"></a>00784 <a name="l00791"></a>00791 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>(<span class="keyword">const</span> <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>& source); <a name="l00792"></a>00792 <a name="l00799"></a>00799 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>& <a class="code" href="classNumberFormat.html#a8b9d5c0937f4da69d9a229fd10f8ec38" title="Assignment operator.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>& rhs); <a name="l00800"></a>00800 <a name="l00805"></a>00805 <span class="keyword">virtual</span> ~<a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>(); <a name="l00806"></a>00806 <a name="l00814"></a>00814 <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="l00815"></a>00815 <a name="l00824"></a>00824 <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>& other) <span class="keyword">const</span>; <a name="l00825"></a>00825 <a name="l00826"></a>00826 <a name="l00827"></a>00827 <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="l00828"></a>00828 <a name="l00840"></a>00840 <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>& <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="l00841"></a>00841 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00842"></a>00842 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos) <span class="keyword">const</span>; <a name="l00843"></a>00843 <a name="l00857"></a>00857 <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>& <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="l00858"></a>00858 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00859"></a>00859 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00860"></a>00860 <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>& status) <span class="keyword">const</span>; <a name="l00861"></a>00861 <a name="l00873"></a>00873 <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>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int32_t number, <a name="l00874"></a>00874 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00875"></a>00875 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos) <span class="keyword">const</span>; <a name="l00876"></a>00876 <a name="l00890"></a>00890 <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>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int32_t number, <a name="l00891"></a>00891 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00892"></a>00892 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00893"></a>00893 <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>& status) <span class="keyword">const</span>; <a name="l00894"></a>00894 <a name="l00906"></a>00906 <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>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int64_t number, <a name="l00907"></a>00907 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00908"></a>00908 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos) <span class="keyword">const</span>; <a name="l00909"></a>00909 <a name="l00923"></a>00923 <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>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int64_t number, <a name="l00924"></a>00924 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00925"></a>00925 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00926"></a>00926 <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>& status) <span class="keyword">const</span>; <a name="l00927"></a>00927 <a name="l00944"></a>00944 <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>& <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="classStringPiece.html" title="A string-like object that points to a sized piece of memory.">StringPiece</a> &number, <a name="l00945"></a>00945 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00946"></a>00946 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00947"></a>00947 <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>& status) <span class="keyword">const</span>; <a name="l00948"></a>00948 <a name="l00949"></a>00949 <a name="l00965"></a>00965 <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>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(<span class="keyword">const</span> DigitList &number, <a name="l00966"></a>00966 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00967"></a>00967 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00968"></a>00968 <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>& status) <span class="keyword">const</span>; <a name="l00969"></a>00969 <a name="l00985"></a>00985 <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>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(<span class="keyword">const</span> DigitList &number, <a name="l00986"></a>00986 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00987"></a>00987 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos, <a name="l00988"></a>00988 <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>& status) <span class="keyword">const</span>; <a name="l00989"></a>00989 <a name="l00990"></a>00990 <a name="l01003"></a>01003 <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>& <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>& obj, <a name="l01004"></a>01004 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01005"></a>01005 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos, <a name="l01006"></a>01006 <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>& status) <span class="keyword">const</span>; <a name="l01007"></a>01007 <a name="l01019"></a>01019 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <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>& obj, <a name="l01020"></a>01020 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01021"></a>01021 <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>& status) <span class="keyword">const</span>; <a name="l01022"></a>01022 <a name="l01033"></a>01033 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <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="l01034"></a>01034 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo) <span class="keyword">const</span>; <a name="l01035"></a>01035 <a name="l01047"></a>01047 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int32_t number, <a name="l01048"></a>01048 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo) <span class="keyword">const</span>; <a name="l01049"></a>01049 <a name="l01061"></a>01061 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classNumberFormat.html#a53e27d424735198566d90eb30401ec36" title="Format an object to produce a string.">format</a>(int64_t number, <a name="l01062"></a>01062 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo) <span class="keyword">const</span>; <a name="l01082"></a>01082 <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>& text, <a name="l01083"></a>01083 <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& result, <a name="l01084"></a>01084 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& parsePosition) <span class="keyword">const</span>; <a name="l01085"></a>01085 <a name="l01086"></a>01086 <span class="comment">// Declare here again to get rid of function hiding problems.</span> <a name="l01095"></a>01095 <span class="comment"></span> <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>& text, <a name="l01096"></a>01096 <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& result, <a name="l01097"></a>01097 <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>& status) <span class="keyword">const</span>; <a name="l01098"></a>01098 <a name="l01118"></a>01118 <span class="keyword">virtual</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& <a class="code" href="classNumberFormat.html#a08bffcf90d1cc63882ab686b6b271f9b" title="Parses text from the given string as a currency amount.">parseCurrency</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>& text, <a name="l01119"></a>01119 <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& result, <a name="l01120"></a>01120 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& pos) <span class="keyword">const</span>; <a name="l01121"></a>01121 <a name="l01129"></a>01129 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>* getDecimalFormatSymbols(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01130"></a>01130 <a name="l01137"></a>01137 <span class="keyword">virtual</span> <span class="keywordtype">void</span> adoptDecimalFormatSymbols(<a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>* symbolsToAdopt); <a name="l01138"></a>01138 <a name="l01145"></a>01145 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDecimalFormatSymbols(<span class="keyword">const</span> <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>& symbols); <a name="l01146"></a>01146 <a name="l01147"></a>01147 <a name="l01154"></a>01154 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classCurrencyPluralInfo.html" title="This class represents the information needed by DecimalFormat to format currency...">CurrencyPluralInfo</a>* getCurrencyPluralInfo(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01155"></a>01155 <a name="l01162"></a>01162 <span class="keyword">virtual</span> <span class="keywordtype">void</span> adoptCurrencyPluralInfo(<a class="code" href="classCurrencyPluralInfo.html" title="This class represents the information needed by DecimalFormat to format currency...">CurrencyPluralInfo</a>* toAdopt); <a name="l01163"></a>01163 <a name="l01170"></a>01170 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCurrencyPluralInfo(<span class="keyword">const</span> <a class="code" href="classCurrencyPluralInfo.html" title="This class represents the information needed by DecimalFormat to format currency...">CurrencyPluralInfo</a>& info); <a name="l01171"></a>01171 <a name="l01172"></a>01172 <a name="l01181"></a>01181 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getPositivePrefix(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l01182"></a>01182 <a name="l01190"></a>01190 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPositivePrefix(<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>& newValue); <a name="l01191"></a>01191 <a name="l01200"></a>01200 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getNegativePrefix(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l01201"></a>01201 <a name="l01209"></a>01209 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNegativePrefix(<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>& newValue); <a name="l01210"></a>01210 <a name="l01219"></a>01219 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getPositiveSuffix(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l01220"></a>01220 <a name="l01228"></a>01228 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPositiveSuffix(<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>& newValue); <a name="l01229"></a>01229 <a name="l01238"></a>01238 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& getNegativeSuffix(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l01239"></a>01239 <a name="l01247"></a>01247 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNegativeSuffix(<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>& newValue); <a name="l01248"></a>01248 <a name="l01259"></a>01259 int32_t getMultiplier(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01260"></a>01260 <a name="l01271"></a>01271 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMultiplier(int32_t newValue); <a name="l01272"></a>01272 <a name="l01282"></a>01282 <span class="keyword">virtual</span> <span class="keywordtype">double</span> getRoundingIncrement(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01283"></a>01283 <a name="l01294"></a>01294 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setRoundingIncrement(<span class="keywordtype">double</span> newValue); <a name="l01295"></a>01295 <a name="l01304"></a>01304 <span class="keyword">virtual</span> ERoundingMode getRoundingMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01305"></a>01305 <a name="l01315"></a>01315 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setRoundingMode(ERoundingMode roundingMode); <a name="l01316"></a>01316 <a name="l01328"></a>01328 <span class="keyword">virtual</span> int32_t getFormatWidth(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01329"></a>01329 <a name="l01344"></a>01344 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFormatWidth(int32_t width); <a name="l01345"></a>01345 <a name="l01358"></a>01358 <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> getPadCharacterString() <span class="keyword">const</span>; <a name="l01359"></a>01359 <a name="l01374"></a>01374 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPadCharacter(<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> &padChar); <a name="l01375"></a>01375 <a name="l01391"></a>01391 <span class="keyword">virtual</span> EPadPosition getPadPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01392"></a>01392 <a name="l01409"></a>01409 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPadPosition(EPadPosition padPos); <a name="l01410"></a>01410 <a name="l01421"></a>01421 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isScientificNotation(<span class="keywordtype">void</span>); <a name="l01422"></a>01422 <a name="l01438"></a>01438 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setScientificNotation(<a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> useScientific); <a name="l01439"></a>01439 <a name="l01450"></a>01450 <span class="keyword">virtual</span> int8_t getMinimumExponentDigits(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01451"></a>01451 <a name="l01464"></a>01464 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMinimumExponentDigits(int8_t minExpDig); <a name="l01465"></a>01465 <a name="l01478"></a>01478 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isExponentSignAlwaysShown(<span class="keywordtype">void</span>); <a name="l01479"></a>01479 <a name="l01493"></a>01493 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setExponentSignAlwaysShown(<a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> expSignAlways); <a name="l01494"></a>01494 <a name="l01506"></a>01506 int32_t getGroupingSize(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01507"></a>01507 <a name="l01519"></a>01519 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setGroupingSize(int32_t newValue); <a name="l01520"></a>01520 <a name="l01539"></a>01539 int32_t getSecondaryGroupingSize(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01540"></a>01540 <a name="l01552"></a>01552 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setSecondaryGroupingSize(int32_t newValue); <a name="l01553"></a>01553 <a name="l01562"></a>01562 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isDecimalSeparatorAlwaysShown(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l01563"></a>01563 <a name="l01572"></a>01572 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDecimalSeparatorAlwaysShown(<a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> newValue); <a name="l01573"></a>01573 <a name="l01584"></a>01584 <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>& toPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l01585"></a>01585 <a name="l01596"></a>01596 <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>& toLocalizedPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l01597"></a>01597 <a name="l01627"></a>01627 <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>& pattern, <a name="l01628"></a>01628 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>& parseError, <a name="l01629"></a>01629 <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>& status); <a name="l01638"></a>01638 <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>& pattern, <a name="l01639"></a>01639 <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>& status); <a name="l01640"></a>01640 <a name="l01671"></a>01671 <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyLocalizedPattern(<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>& pattern, <a name="l01672"></a>01672 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>& parseError, <a name="l01673"></a>01673 <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>& status); <a name="l01674"></a>01674 <a name="l01684"></a>01684 <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyLocalizedPattern(<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>& pattern, <a name="l01685"></a>01685 <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>& status); <a name="l01686"></a>01686 <a name="l01687"></a>01687 <a name="l01697"></a>01697 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#a561c13b71c338e6b68729c786d2a3a09" title="Sets the maximum number of digits allowed in the integer portion of a number.">setMaximumIntegerDigits</a>(int32_t newValue); <a name="l01698"></a>01698 <a name="l01708"></a>01708 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#a92a1454c564b66707d0145a123f65cf3" title="Sets the minimum number of digits allowed in the integer portion of a number.">setMinimumIntegerDigits</a>(int32_t newValue); <a name="l01709"></a>01709 <a name="l01719"></a>01719 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#abb97d22c2d628aab87d695c6f66e8dbb" title="Sets the maximum number of digits allowed in the fraction portion of a number.">setMaximumFractionDigits</a>(int32_t newValue); <a name="l01720"></a>01720 <a name="l01730"></a>01730 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#a454c39db13cb0dde930e9249ee726db5" title="Sets the minimum number of digits allowed in the fraction portion of a number.">setMinimumFractionDigits</a>(int32_t newValue); <a name="l01731"></a>01731 <a name="l01739"></a>01739 int32_t getMinimumSignificantDigits() <span class="keyword">const</span>; <a name="l01740"></a>01740 <a name="l01748"></a>01748 int32_t getMaximumSignificantDigits() <span class="keyword">const</span>; <a name="l01749"></a>01749 <a name="l01759"></a>01759 <span class="keywordtype">void</span> setMinimumSignificantDigits(int32_t min); <a name="l01760"></a>01760 <a name="l01771"></a>01771 <span class="keywordtype">void</span> setMaximumSignificantDigits(int32_t max); <a name="l01772"></a>01772 <a name="l01779"></a>01779 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> areSignificantDigitsUsed() <span class="keyword">const</span>; <a name="l01780"></a>01780 <a name="l01788"></a>01788 <span class="keywordtype">void</span> setSignificantDigitsUsed(<a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> useSignificantDigits); <a name="l01789"></a>01789 <a name="l01790"></a>01790 <span class="keyword">public</span>: <a name="l01803"></a>01803 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#a1dbc762d377858e70de924aacc59d113" title="Sets the currency used to display currency amounts.">setCurrency</a>(<span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* theCurrency, <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>& ec); <a name="l01804"></a>01804 <a name="l01810"></a>01810 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#a1dbc762d377858e70de924aacc59d113" title="Sets the currency used to display currency amounts.">setCurrency</a>(<span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* theCurrency); <a name="l01811"></a>01811 <a name="l01817"></a><a class="code" href="classDecimalFormat.html#af41fc1a3bde85bec4649668300f60148">01817</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> fgNumberPatterns[]; <a name="l01818"></a>01818 <a name="l01819"></a>01819 <span class="keyword">public</span>: <a name="l01820"></a>01820 <a name="l01832"></a>01832 <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="l01833"></a>01833 <a name="l01845"></a>01845 <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="l01846"></a>01846 <a name="l01847"></a>01847 <span class="keyword">private</span>: <a name="l01848"></a>01848 <a name="l01849"></a>01849 <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>(); <span class="comment">// default constructor not implemented</span> <a name="l01850"></a>01850 <a name="l01851"></a>01851 int32_t precision() <span class="keyword">const</span>; <a name="l01852"></a>01852 <a name="l01857"></a>01857 <span class="keywordtype">void</span> init(); <a name="l01858"></a>01858 <a name="l01862"></a>01862 <span class="keywordtype">void</span> construct(<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>& status, <a name="l01863"></a>01863 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>& parseErr, <a name="l01864"></a>01864 <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>* pattern = 0, <a name="l01865"></a>01865 <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>* symbolsToAdopt = 0 <a name="l01866"></a>01866 ); <a name="l01867"></a>01867 <a name="l01876"></a>01876 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& toPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> localized) <span class="keyword">const</span>; <a name="l01877"></a>01877 <a name="l01888"></a>01888 <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>& pattern, <a name="l01889"></a>01889 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> localized, <a name="l01890"></a>01890 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>& parseError, <a name="l01891"></a>01891 <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>& status); <a name="l01892"></a>01892 <a name="l01893"></a>01893 <span class="comment">/*</span> <a name="l01894"></a>01894 <span class="comment"> * similar to applyPattern, but without re-gen affix for currency</span> <a name="l01895"></a>01895 <span class="comment"> */</span> <a name="l01896"></a>01896 <span class="keywordtype">void</span> applyPatternInternally(<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>& pluralCount, <a name="l01897"></a>01897 <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>& pattern, <a name="l01898"></a>01898 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> localized, <a name="l01899"></a>01899 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>& parseError, <a name="l01900"></a>01900 <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>& status); <a name="l01901"></a>01901 <a name="l01902"></a>01902 <span class="comment">/*</span> <a name="l01903"></a>01903 <span class="comment"> * only apply pattern without expand affixes</span> <a name="l01904"></a>01904 <span class="comment"> */</span> <a name="l01905"></a>01905 <span class="keywordtype">void</span> applyPatternWithoutExpandAffix(<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>& pattern, <a name="l01906"></a>01906 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> localized, <a name="l01907"></a>01907 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>& parseError, <a name="l01908"></a>01908 <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>& status); <a name="l01909"></a>01909 <a name="l01910"></a>01910 <a name="l01911"></a>01911 <span class="comment">/*</span> <a name="l01912"></a>01912 <span class="comment"> * expand affixes (after apply patter) and re-compute fFormatWidth</span> <a name="l01913"></a>01913 <span class="comment"> */</span> <a name="l01914"></a>01914 <span class="keywordtype">void</span> expandAffixAdjustWidth(<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>* pluralCount); <a name="l01915"></a>01915 <a name="l01916"></a>01916 <a name="l01927"></a>01927 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& subformat(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01928"></a>01928 FieldPositionHandler& handler, <a name="l01929"></a>01929 DigitList& digits, <a name="l01930"></a>01930 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isInteger) <span class="keyword">const</span>; <a name="l01931"></a>01931 <a name="l01932"></a>01932 <a name="l01933"></a>01933 <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>& text, <a name="l01934"></a>01934 <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& result, <a name="l01935"></a>01935 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& pos, <a name="l01936"></a>01936 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> parseCurrency) <span class="keyword">const</span>; <a name="l01937"></a>01937 <a name="l01938"></a>01938 <span class="keyword">enum</span> { <a name="l01939"></a>01939 fgStatusInfinite, <a name="l01940"></a>01940 fgStatusLength <span class="comment">// Leave last in list.</span> <a name="l01941"></a>01941 } StatusFlags; <a name="l01942"></a>01942 <a name="l01943"></a>01943 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> subparse(<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>& text, <a name="l01944"></a>01944 <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>* negPrefix, <a name="l01945"></a>01945 <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>* negSuffix, <a name="l01946"></a>01946 <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>* posPrefix, <a name="l01947"></a>01947 <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>* posSuffix, <a name="l01948"></a>01948 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> currencyParsing, <a name="l01949"></a>01949 int8_t type, <a name="l01950"></a>01950 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& parsePosition, <a name="l01951"></a>01951 DigitList& digits, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a>* status, <a name="l01952"></a>01952 <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* currency) <span class="keyword">const</span>; <a name="l01953"></a>01953 <a name="l01954"></a>01954 <span class="comment">// Mixed style parsing for currency.</span> <a name="l01955"></a>01955 <span class="comment">// It parses against the current currency pattern</span> <a name="l01956"></a>01956 <span class="comment">// using complex affix comparison</span> <a name="l01957"></a>01957 <span class="comment">// parses against the currency plural patterns using complex affix comparison,</span> <a name="l01958"></a>01958 <span class="comment">// and parses against the current pattern using simple affix comparison.</span> <a name="l01959"></a>01959 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> parseForCurrency(<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>& text, <a name="l01960"></a>01960 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& parsePosition, <a name="l01961"></a>01961 DigitList& digits, <a name="l01962"></a>01962 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a>* status, <a name="l01963"></a>01963 <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* currency) <span class="keyword">const</span>; <a name="l01964"></a>01964 <a name="l01965"></a>01965 int32_t skipPadding(<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>& text, int32_t position) <span class="keyword">const</span>; <a name="l01966"></a>01966 <a name="l01967"></a>01967 int32_t compareAffix(<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>& input, <a name="l01968"></a>01968 int32_t pos, <a name="l01969"></a>01969 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isNegative, <a name="l01970"></a>01970 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isPrefix, <a name="l01971"></a>01971 <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>* affixPat, <a name="l01972"></a>01972 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> currencyParsing, <a name="l01973"></a>01973 int8_t type, <a name="l01974"></a>01974 <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* currency) <span class="keyword">const</span>; <a name="l01975"></a>01975 <a name="l01976"></a>01976 <span class="keyword">static</span> int32_t compareSimpleAffix(<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>& affix, <a name="l01977"></a>01977 <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>& input, <a name="l01978"></a>01978 int32_t pos); <a name="l01979"></a>01979 <a name="l01980"></a>01980 <span class="keyword">static</span> int32_t skipRuleWhiteSpace(<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>& text, int32_t pos); <a name="l01981"></a>01981 <a name="l01982"></a>01982 <span class="keyword">static</span> int32_t skipUWhiteSpace(<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>& text, int32_t pos); <a name="l01983"></a>01983 <a name="l01984"></a>01984 int32_t compareComplexAffix(<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>& affixPat, <a name="l01985"></a>01985 <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>& input, <a name="l01986"></a>01986 int32_t pos, <a name="l01987"></a>01987 int8_t type, <a name="l01988"></a>01988 <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* currency) <span class="keyword">const</span>; <a name="l01989"></a>01989 <a name="l01990"></a>01990 <span class="keyword">static</span> int32_t match(<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>& text, int32_t pos, <a class="code" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809" title="Define UChar32 as a type for single Unicode code points.">UChar32</a> ch); <a name="l01991"></a>01991 <a name="l01992"></a>01992 <span class="keyword">static</span> int32_t match(<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>& text, int32_t pos, <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>& str); <a name="l01993"></a>01993 <a name="l01999"></a>01999 <span class="keyword">inline</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> &getConstSymbol(<a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5" title="Constants for specifying a number format symbol.">DecimalFormatSymbols::ENumberFormatSymbol</a> symbol) <span class="keyword">const</span>; <a name="l02000"></a>02000 <a name="l02001"></a>02001 int32_t appendAffix(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& buf, <a name="l02002"></a>02002 <span class="keywordtype">double</span> number, <a name="l02003"></a>02003 FieldPositionHandler& handler, <a name="l02004"></a>02004 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isNegative, <a name="l02005"></a>02005 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isPrefix) <span class="keyword">const</span>; <a name="l02006"></a>02006 <a name="l02012"></a>02012 <span class="keywordtype">void</span> appendAffixPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <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>& affix, <a name="l02013"></a>02013 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> localized) <span class="keyword">const</span>; <a name="l02014"></a>02014 <a name="l02015"></a>02015 <span class="keywordtype">void</span> appendAffixPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l02016"></a>02016 <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>* affixPattern, <a name="l02017"></a>02017 <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>& expAffix, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> localized) <span class="keyword">const</span>; <a name="l02018"></a>02018 <a name="l02019"></a>02019 <span class="keywordtype">void</span> expandAffix(<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>& pattern, <a name="l02020"></a>02020 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& affix, <a name="l02021"></a>02021 <span class="keywordtype">double</span> number, <a name="l02022"></a>02022 FieldPositionHandler& handler, <a name="l02023"></a>02023 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> doFormat, <a name="l02024"></a>02024 <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>* pluralCount) <span class="keyword">const</span>; <a name="l02025"></a>02025 <a name="l02026"></a>02026 <span class="keywordtype">void</span> expandAffixes(<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>* pluralCount); <a name="l02027"></a>02027 <a name="l02028"></a>02028 <span class="keywordtype">void</span> addPadding(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l02029"></a>02029 FieldPositionHandler& handler, <a name="l02030"></a>02030 int32_t prefixLen, int32_t suffixLen) <span class="keyword">const</span>; <a name="l02031"></a>02031 <a name="l02032"></a>02032 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isGroupingPosition(int32_t pos) <span class="keyword">const</span>; <a name="l02033"></a>02033 <a name="l02034"></a>02034 <span class="keywordtype">void</span> setCurrencyForSymbols(); <a name="l02035"></a>02035 <a name="l02036"></a>02036 <span class="comment">// similar to setCurrency without re-compute the affixes for currency.</span> <a name="l02037"></a>02037 <span class="comment">// If currency changes, the affix pattern for currency is not changed,</span> <a name="l02038"></a>02038 <span class="comment">// but the affix will be changed. So, affixes need to be</span> <a name="l02039"></a>02039 <span class="comment">// re-computed in setCurrency(), but not in setCurrencyInternally().</span> <a name="l02040"></a>02040 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCurrencyInternally(<span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* theCurrency, <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>& ec); <a name="l02041"></a>02041 <a name="l02042"></a>02042 <span class="comment">// set up currency affix patterns for mix parsing.</span> <a name="l02043"></a>02043 <span class="comment">// The patterns saved here are the affix patterns of default currency</span> <a name="l02044"></a>02044 <span class="comment">// pattern and the unique affix patterns of the plural currency patterns.</span> <a name="l02045"></a>02045 <span class="comment">// Those patterns are used by parseForCurrency().</span> <a name="l02046"></a>02046 <span class="keywordtype">void</span> setupCurrencyAffixPatterns(<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>& status); <a name="l02047"></a>02047 <a name="l02048"></a>02048 <span class="comment">// set up the currency affixes used in currency plural formatting.</span> <a name="l02049"></a>02049 <span class="comment">// It sets up both fAffixesForCurrency for currency pattern if the current</span> <a name="l02050"></a>02050 <span class="comment">// pattern contains 3 currency signs,</span> <a name="l02051"></a>02051 <span class="comment">// and it sets up fPluralAffixesForCurrency for currency plural patterns.</span> <a name="l02052"></a>02052 <span class="keywordtype">void</span> setupCurrencyAffixes(<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>& pattern, <a name="l02053"></a>02053 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> setupForCurrentPattern, <a name="l02054"></a>02054 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> setupForPluralPattern, <a name="l02055"></a>02055 <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>& status); <a name="l02056"></a>02056 <a name="l02057"></a>02057 <span class="comment">// hashtable operations</span> <a name="l02058"></a>02058 Hashtable* initHashForAffixPattern(<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>& status); <a name="l02059"></a>02059 Hashtable* initHashForAffix(<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>& status); <a name="l02060"></a>02060 <a name="l02061"></a>02061 <span class="keywordtype">void</span> deleteHashForAffixPattern(); <a name="l02062"></a>02062 <span class="keywordtype">void</span> deleteHashForAffix(Hashtable*& table); <a name="l02063"></a>02063 <a name="l02064"></a>02064 <span class="keywordtype">void</span> copyHashForAffixPattern(<span class="keyword">const</span> Hashtable* source, <a name="l02065"></a>02065 Hashtable* target, <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>& status); <a name="l02066"></a>02066 <span class="keywordtype">void</span> copyHashForAffix(<span class="keyword">const</span> Hashtable* source, <a name="l02067"></a>02067 Hashtable* target, <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>& status); <a name="l02068"></a>02068 <a name="l02069"></a>02069 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& _format(int64_t number, <a name="l02070"></a>02070 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l02071"></a>02071 FieldPositionHandler& handler) <span class="keyword">const</span>; <a name="l02072"></a>02072 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& _format(<span class="keywordtype">double</span> number, <a name="l02073"></a>02073 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l02074"></a>02074 FieldPositionHandler& handler) <span class="keyword">const</span>; <a name="l02075"></a>02075 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& _format(<span class="keyword">const</span> DigitList &number, <a name="l02076"></a>02076 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l02077"></a>02077 FieldPositionHandler& handler, <a name="l02078"></a>02078 <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> &status) <span class="keyword">const</span>; <a name="l02079"></a>02079 <a name="l02080"></a>02080 <span class="comment">// currency sign count</span> <a name="l02081"></a>02081 <span class="keyword">enum</span> { <a name="l02082"></a>02082 fgCurrencySignCountZero, <a name="l02083"></a>02083 fgCurrencySignCountInSymbolFormat, <a name="l02084"></a>02084 fgCurrencySignCountInISOFormat, <a name="l02085"></a>02085 fgCurrencySignCountInPluralFormat <a name="l02086"></a>02086 } CurrencySignCount; <a name="l02087"></a>02087 <a name="l02092"></a>02092 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fPositivePrefix; <a name="l02093"></a>02093 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fPositiveSuffix; <a name="l02094"></a>02094 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fNegativePrefix; <a name="l02095"></a>02095 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fNegativeSuffix; <a name="l02096"></a>02096 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* fPosPrefixPattern; <a name="l02097"></a>02097 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* fPosSuffixPattern; <a name="l02098"></a>02098 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* fNegPrefixPattern; <a name="l02099"></a>02099 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* fNegSuffixPattern; <a name="l02100"></a>02100 <a name="l02106"></a>02106 <a class="code" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those...">ChoiceFormat</a>* fCurrencyChoice; <a name="l02107"></a>02107 <a name="l02108"></a>02108 DigitList * fMultiplier; <span class="comment">// NULL for multiplier of one</span> <a name="l02109"></a>02109 int32_t fGroupingSize; <a name="l02110"></a>02110 int32_t fGroupingSize2; <a name="l02111"></a>02111 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> fDecimalSeparatorAlwaysShown; <a name="l02112"></a>02112 <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>* fSymbols; <a name="l02113"></a>02113 <a name="l02114"></a>02114 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> fUseSignificantDigits; <a name="l02115"></a>02115 int32_t fMinSignificantDigits; <a name="l02116"></a>02116 int32_t fMaxSignificantDigits; <a name="l02117"></a>02117 <a name="l02118"></a>02118 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> fUseExponentialNotation; <a name="l02119"></a>02119 int8_t fMinExponentDigits; <a name="l02120"></a>02120 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> fExponentSignAlwaysShown; <a name="l02121"></a>02121 <a name="l02122"></a>02122 DigitList* fRoundingIncrement; <span class="comment">// NULL if no rounding increment specified.</span> <a name="l02123"></a>02123 ERoundingMode fRoundingMode; <a name="l02124"></a>02124 <a name="l02125"></a>02125 <a class="code" href="umachine_8h.html#a09fff5c3b5a5b015324dc3ec3cf92809" title="Define UChar32 as a type for single Unicode code points.">UChar32</a> fPad; <a name="l02126"></a>02126 int32_t fFormatWidth; <a name="l02127"></a>02127 EPadPosition fPadPosition; <a name="l02128"></a>02128 <a name="l02129"></a>02129 <span class="comment">/*</span> <a name="l02130"></a>02130 <span class="comment"> * Following are used for currency format</span> <a name="l02131"></a>02131 <span class="comment"> */</span> <a name="l02132"></a>02132 <span class="comment">// pattern used in this formatter</span> <a name="l02133"></a>02133 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fFormatPattern; <a name="l02134"></a>02134 <span class="comment">// style is only valid when decimal formatter is constructed by</span> <a name="l02135"></a>02135 <span class="comment">// DecimalFormat(pattern, decimalFormatSymbol, style)</span> <a name="l02136"></a>02136 <span class="keywordtype">int</span> fStyle; <a name="l02137"></a>02137 <span class="comment">/*</span> <a name="l02138"></a>02138 <span class="comment"> * Represents whether this is a currency format, and which</span> <a name="l02139"></a>02139 <span class="comment"> * currency format style.</span> <a name="l02140"></a>02140 <span class="comment"> * 0: not currency format type;</span> <a name="l02141"></a>02141 <span class="comment"> * 1: currency style -- symbol name, such as "$" for US dollar.</span> <a name="l02142"></a>02142 <span class="comment"> * 2: currency style -- ISO name, such as USD for US dollar.</span> <a name="l02143"></a>02143 <span class="comment"> * 3: currency style -- plural long name, such as "US Dollar" for</span> <a name="l02144"></a>02144 <span class="comment"> * "1.00 US Dollar", or "US Dollars" for</span> <a name="l02145"></a>02145 <span class="comment"> * "3.00 US Dollars".</span> <a name="l02146"></a>02146 <span class="comment"> */</span> <a name="l02147"></a>02147 <span class="keywordtype">int</span> fCurrencySignCount; <a name="l02148"></a>02148 <a name="l02149"></a>02149 <a name="l02150"></a>02150 <span class="comment">/* For currency parsing purose,</span> <a name="l02151"></a>02151 <span class="comment"> * Need to remember all prefix patterns and suffix patterns of</span> <a name="l02152"></a>02152 <span class="comment"> * every currency format pattern,</span> <a name="l02153"></a>02153 <span class="comment"> * including the pattern of default currecny style</span> <a name="l02154"></a>02154 <span class="comment"> * and plural currency style. And the patterns are set through applyPattern.</span> <a name="l02155"></a>02155 <span class="comment"> */</span> <a name="l02156"></a>02156 <span class="comment">// TODO: innerclass?</span> <a name="l02157"></a>02157 <span class="comment">/* This is not needed in the class declaration, so it is moved into decimfmp.cpp</span> <a name="l02158"></a>02158 <span class="comment"> struct AffixPatternsForCurrency : public UMemory {</span> <a name="l02159"></a>02159 <span class="comment"> // negative prefix pattern</span> <a name="l02160"></a>02160 <span class="comment"> UnicodeString negPrefixPatternForCurrency;</span> <a name="l02161"></a>02161 <span class="comment"> // negative suffix pattern</span> <a name="l02162"></a>02162 <span class="comment"> UnicodeString negSuffixPatternForCurrency;</span> <a name="l02163"></a>02163 <span class="comment"> // positive prefix pattern</span> <a name="l02164"></a>02164 <span class="comment"> UnicodeString posPrefixPatternForCurrency;</span> <a name="l02165"></a>02165 <span class="comment"> // positive suffix pattern</span> <a name="l02166"></a>02166 <span class="comment"> UnicodeString posSuffixPatternForCurrency;</span> <a name="l02167"></a>02167 <span class="comment"> int8_t patternType;</span> <a name="l02168"></a>02168 <span class="comment"></span> <a name="l02169"></a>02169 <span class="comment"> AffixPatternsForCurrency(const UnicodeString& negPrefix,</span> <a name="l02170"></a>02170 <span class="comment"> const UnicodeString& negSuffix,</span> <a name="l02171"></a>02171 <span class="comment"> const UnicodeString& posPrefix,</span> <a name="l02172"></a>02172 <span class="comment"> const UnicodeString& posSuffix,</span> <a name="l02173"></a>02173 <span class="comment"> int8_t type) {</span> <a name="l02174"></a>02174 <span class="comment"> negPrefixPatternForCurrency = negPrefix;</span> <a name="l02175"></a>02175 <span class="comment"> negSuffixPatternForCurrency = negSuffix;</span> <a name="l02176"></a>02176 <span class="comment"> posPrefixPatternForCurrency = posPrefix;</span> <a name="l02177"></a>02177 <span class="comment"> posSuffixPatternForCurrency = posSuffix;</span> <a name="l02178"></a>02178 <span class="comment"> patternType = type;</span> <a name="l02179"></a>02179 <span class="comment"> }</span> <a name="l02180"></a>02180 <span class="comment"> };</span> <a name="l02181"></a>02181 <span class="comment"> */</span> <a name="l02182"></a>02182 <a name="l02183"></a>02183 <span class="comment">/* affix for currency formatting when the currency sign in the pattern</span> <a name="l02184"></a>02184 <span class="comment"> * equals to 3, such as the pattern contains 3 currency sign or</span> <a name="l02185"></a>02185 <span class="comment"> * the formatter style is currency plural format style.</span> <a name="l02186"></a>02186 <span class="comment"> */</span> <a name="l02187"></a>02187 <span class="comment">/* This is not needed in the class declaration, so it is moved into decimfmp.cpp</span> <a name="l02188"></a>02188 <span class="comment"> struct AffixesForCurrency : public UMemory {</span> <a name="l02189"></a>02189 <span class="comment"> // negative prefix</span> <a name="l02190"></a>02190 <span class="comment"> UnicodeString negPrefixForCurrency;</span> <a name="l02191"></a>02191 <span class="comment"> // negative suffix</span> <a name="l02192"></a>02192 <span class="comment"> UnicodeString negSuffixForCurrency;</span> <a name="l02193"></a>02193 <span class="comment"> // positive prefix</span> <a name="l02194"></a>02194 <span class="comment"> UnicodeString posPrefixForCurrency;</span> <a name="l02195"></a>02195 <span class="comment"> // positive suffix</span> <a name="l02196"></a>02196 <span class="comment"> UnicodeString posSuffixForCurrency;</span> <a name="l02197"></a>02197 <span class="comment"></span> <a name="l02198"></a>02198 <span class="comment"> int32_t formatWidth;</span> <a name="l02199"></a>02199 <span class="comment"></span> <a name="l02200"></a>02200 <span class="comment"> AffixesForCurrency(const UnicodeString& negPrefix,</span> <a name="l02201"></a>02201 <span class="comment"> const UnicodeString& negSuffix,</span> <a name="l02202"></a>02202 <span class="comment"> const UnicodeString& posPrefix,</span> <a name="l02203"></a>02203 <span class="comment"> const UnicodeString& posSuffix) {</span> <a name="l02204"></a>02204 <span class="comment"> negPrefixForCurrency = negPrefix;</span> <a name="l02205"></a>02205 <span class="comment"> negSuffixForCurrency = negSuffix;</span> <a name="l02206"></a>02206 <span class="comment"> posPrefixForCurrency = posPrefix;</span> <a name="l02207"></a>02207 <span class="comment"> posSuffixForCurrency = posSuffix;</span> <a name="l02208"></a>02208 <span class="comment"> }</span> <a name="l02209"></a>02209 <span class="comment"> };</span> <a name="l02210"></a>02210 <span class="comment"> */</span> <a name="l02211"></a>02211 <a name="l02212"></a>02212 <span class="comment">// Affix pattern set for currency.</span> <a name="l02213"></a>02213 <span class="comment">// It is a set of AffixPatternsForCurrency,</span> <a name="l02214"></a>02214 <span class="comment">// each element of the set saves the negative prefix pattern,</span> <a name="l02215"></a>02215 <span class="comment">// negative suffix pattern, positive prefix pattern,</span> <a name="l02216"></a>02216 <span class="comment">// and positive suffix pattern of a pattern.</span> <a name="l02217"></a>02217 <span class="comment">// It is used for currency mixed style parsing.</span> <a name="l02218"></a>02218 <span class="comment">// It is actually is a set.</span> <a name="l02219"></a>02219 <span class="comment">// The set contains the default currency pattern from the locale,</span> <a name="l02220"></a>02220 <span class="comment">// and the currency plural patterns.</span> <a name="l02221"></a>02221 <span class="comment">// Since it is a set, it does not contain duplicated items.</span> <a name="l02222"></a>02222 <span class="comment">// For example, if 2 currency plural patterns are the same, only one pattern</span> <a name="l02223"></a>02223 <span class="comment">// is included in the set. When parsing, we do not check whether the plural</span> <a name="l02224"></a>02224 <span class="comment">// count match or not.</span> <a name="l02225"></a>02225 Hashtable* fAffixPatternsForCurrency; <a name="l02226"></a>02226 <a name="l02227"></a>02227 <span class="comment">// Following 2 are affixes for currency.</span> <a name="l02228"></a>02228 <span class="comment">// It is a hash map from plural count to AffixesForCurrency.</span> <a name="l02229"></a>02229 <span class="comment">// AffixesForCurrency saves the negative prefix,</span> <a name="l02230"></a>02230 <span class="comment">// negative suffix, positive prefix, and positive suffix of a pattern.</span> <a name="l02231"></a>02231 <span class="comment">// It is used during currency formatting only when the currency sign count</span> <a name="l02232"></a>02232 <span class="comment">// is 3. In which case, the affixes are getting from here, not</span> <a name="l02233"></a>02233 <span class="comment">// from the fNegativePrefix etc.</span> <a name="l02234"></a>02234 Hashtable* fAffixesForCurrency; <span class="comment">// for current pattern</span> <a name="l02235"></a>02235 Hashtable* fPluralAffixesForCurrency; <span class="comment">// for plural pattern</span> <a name="l02236"></a>02236 <a name="l02237"></a>02237 <span class="comment">// Information needed for DecimalFormat to format/parse currency plural.</span> <a name="l02238"></a>02238 <a class="code" href="classCurrencyPluralInfo.html" title="This class represents the information needed by DecimalFormat to format currency...">CurrencyPluralInfo</a>* fCurrencyPluralInfo; <a name="l02239"></a>02239 <a name="l02240"></a>02240 <span class="keyword">protected</span>: <a name="l02241"></a>02241 <a name="l02250"></a>02250 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classNumberFormat.html#ae79eb815aa14fa432eec4307a3e2bc28" title="Returns the currency in effect for this formatter.">getEffectiveCurrency</a>(<a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a>* result, <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>& ec) <span class="keyword">const</span>; <a name="l02251"></a>02251 <a name="l02255"></a><a class="code" href="classDecimalFormat.html#a8d5140e73b831fedb039ccf3c303c156">02255</a> <span class="keyword">static</span> <span class="keyword">const</span> int32_t kDoubleIntegerDigits; <a name="l02259"></a><a class="code" href="classDecimalFormat.html#ab499b677e78e3320d6704b21f8a3ad23">02259</a> <span class="keyword">static</span> <span class="keyword">const</span> int32_t kDoubleFractionDigits; <a name="l02260"></a>02260 <a name="l02271"></a><a class="code" href="classDecimalFormat.html#aefc212fd0526b37ca733b1827d28f440">02271</a> <span class="keyword">static</span> <span class="keyword">const</span> int32_t kMaxScientificIntegerDigits; <a name="l02272"></a>02272 }; <a name="l02273"></a>02273 <a name="l02274"></a>02274 <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>& <a name="l02275"></a><a class="code" href="classDecimalFormat.html#aaf9c44cbcc2b7f0279dcc6f121b8bf13">02275</a> <a class="code" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">DecimalFormat::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>& obj, <a name="l02276"></a>02276 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l02277"></a>02277 <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>& status)<span class="keyword"> const </span>{ <a name="l02278"></a>02278 <span class="comment">// Don't use Format:: - use immediate base class only,</span> <a name="l02279"></a>02279 <span class="comment">// in case immediate base modifies behavior later.</span> <a name="l02280"></a>02280 <span class="keywordflow">return</span> <a class="code" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">NumberFormat::format</a>(obj, appendTo, status); <a name="l02281"></a>02281 } <a name="l02282"></a>02282 <a name="l02283"></a>02283 <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>& <a name="l02284"></a><a class="code" href="classDecimalFormat.html#ac5b6d7339b4ea565dee15147cd29df09">02284</a> <a class="code" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">DecimalFormat::format</a>(<span class="keywordtype">double</span> number, <a name="l02285"></a>02285 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo)<span class="keyword"> const </span>{ <a name="l02286"></a>02286 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> pos(0); <a name="l02287"></a>02287 <span class="keywordflow">return</span> <a class="code" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format</a>(number, appendTo, pos); <a name="l02288"></a>02288 } <a name="l02289"></a>02289 <a name="l02290"></a>02290 <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>& <a name="l02291"></a><a class="code" href="classDecimalFormat.html#a353940a76151b71b954fcfb37a0f9611">02291</a> <a class="code" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">DecimalFormat::format</a>(int32_t number, <a name="l02292"></a>02292 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo)<span class="keyword"> const </span>{ <a name="l02293"></a>02293 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> pos(0); <a name="l02294"></a>02294 <span class="keywordflow">return</span> <a class="code" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format</a>((int64_t)number, appendTo, pos); <a name="l02295"></a>02295 } <a name="l02296"></a>02296 <a name="l02297"></a>02297 <span class="keyword">inline</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> & <a name="l02298"></a>02298 DecimalFormat::getConstSymbol(<a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5" title="Constants for specifying a number format symbol.">DecimalFormatSymbols::ENumberFormatSymbol</a> symbol)<span class="keyword"> const </span>{ <a name="l02299"></a>02299 <span class="keywordflow">return</span> fSymbols-><a class="code" href="classDecimalFormatSymbols.html#a278c120329862607234c43a84d8e1131" title="_Internal_ function - more efficient version of getSymbol, returning a const reference...">getConstSymbol</a>(symbol); <a name="l02300"></a>02300 } <a name="l02301"></a>02301 <a name="l02302"></a>02302 <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="l02303"></a>02303 <a name="l02304"></a>02304 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span> <a name="l02305"></a>02305 <a name="l02306"></a>02306 <span class="preprocessor">#endif // _DECIMFMT</span> <a name="l02307"></a>02307 <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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>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 class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>