Sophie

Sophie

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

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

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ICU 4.4: dcfmtsym.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>dcfmtsym.h</h1><a href="dcfmtsym_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 DCFMTSYM.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/18/97    clhuang     Updated per C++ implementation.</span>
<a name="l00014"></a>00014 <span class="comment">*   03/27/97    helena      Updated to pass the simple test after code review.</span>
<a name="l00015"></a>00015 <span class="comment">*   08/26/97    aliu        Added currency/intl currency symbol support.</span>
<a name="l00016"></a>00016 <span class="comment">*   07/22/98    stephen     Changed to match C++ style</span>
<a name="l00017"></a>00017 <span class="comment">*                            currencySymbol -&gt; fCurrencySymbol</span>
<a name="l00018"></a>00018 <span class="comment">*                            Constants changed from CAPS to kCaps</span>
<a name="l00019"></a>00019 <span class="comment">*   06/24/99    helena      Integrated Alan&apos;s NF enhancements and Java2 bug fixes</span>
<a name="l00020"></a>00020 <span class="comment">*   09/22/00    grhoten     Marked deprecation tags with a pointer to replacement</span>
<a name="l00021"></a>00021 <span class="comment">*                            functions.</span>
<a name="l00022"></a>00022 <span class="comment">********************************************************************************</span>
<a name="l00023"></a>00023 <span class="comment">*/</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef DCFMTSYM_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define DCFMTSYM_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>&quot;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="uobject_8h.html" title="C++ API: Common ICU base class UObject.">unicode/uobject.h</a>&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;<a class="code" href="locid_8h.html" title="C++ API: Locale ID object.">unicode/locid.h</a>&quot;</span>
<a name="l00034"></a>00034 
<a name="l00041"></a>00041 <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="l00042"></a>00042 
<a name="l00082"></a><a class="code" href="classDecimalFormatSymbols.html">00082</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="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a> : <span class="keyword">public</span> <a class="code" href="classUObject.html" title="UObject is the common ICU &amp;quot;boilerplate&amp;quot; class.">UObject</a> {
<a name="l00083"></a>00083 <span class="keyword">public</span>:
<a name="l00088"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5">00088</a>     <span class="keyword">enum</span> <a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5" title="Constants for specifying a number format symbol.">ENumberFormatSymbol</a> {
<a name="l00090"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5afbc1c361e234d7c4a1956cd23598b958">00090</a>         kDecimalSeparatorSymbol,
<a name="l00092"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a285c84ec337e2de67a5d15f1e54d82b4">00092</a>         kGroupingSeparatorSymbol,
<a name="l00094"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5aecebed5dcd39ac6a37f2abc0c26d2052">00094</a>         kPatternSeparatorSymbol,
<a name="l00096"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a6e7c212e015d16d13211981dba1a3d2f">00096</a>         kPercentSymbol,
<a name="l00098"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5ade30415fa7dfab1f9bd5ecd6c9eca30c">00098</a>         kZeroDigitSymbol,
<a name="l00100"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a8a1ae3b194d957cd0bfdb468777dd51b">00100</a>         kDigitSymbol,
<a name="l00102"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5abe50fb06b881a7bfea25968c3907c9a3">00102</a>         kMinusSignSymbol,
<a name="l00104"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a427c5f11c61035460bc9909bac3d3e9a">00104</a>         kPlusSignSymbol,
<a name="l00106"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a8a3108032a077f7fc9782ab96623d163">00106</a>         kCurrencySymbol,
<a name="l00108"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5ad05569e73197ebc571dd5d593fd98ba3">00108</a>         kIntlCurrencySymbol,
<a name="l00110"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a3cdd94060e4816226bfbaf5f851b1bc9">00110</a>         kMonetarySeparatorSymbol,
<a name="l00112"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5af0f3897fd4f2cf76981bc76e60f5d8b7">00112</a>         kExponentialSymbol,
<a name="l00114"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a0bc83888deb7b62bffffd8196bfc80c6">00114</a>         kPerMillSymbol,
<a name="l00116"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a7e2aaf6cc78c1f63bda0bd7295bc97c3">00116</a>         kPadEscapeSymbol,
<a name="l00118"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a2291a12b826711fad797fe079fead9c0">00118</a>         kInfinitySymbol,
<a name="l00120"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a540b88b52352d8b4a28b7b6a4b6ee8e1">00120</a>         kNaNSymbol,
<a name="l00123"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5a555556b91942d0406da8a30a80039a0d">00123</a>         kSignificantDigitSymbol,
<a name="l00127"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5ae66b88c99b1a13649454fcc881120e00">00127</a>         kMonetaryGroupingSeparatorSymbol,
<a name="l00129"></a><a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5afcaaa868d2bd8d72da3a14138b90636e">00129</a>         kFormatSymbolCount
<a name="l00130"></a>00130     };
<a name="l00131"></a>00131 
<a name="l00136"></a><a class="code" href="classDecimalFormatSymbols.html#a9085285dd4dc4be568e72abe6ca142f0">00136</a>      <span class="keyword">enum</span> <a class="code" href="classDecimalFormatSymbols.html#a9085285dd4dc4be568e72abe6ca142f0" title="Constants for specifying currency spacing.">ECurrencySpacing</a> {
<a name="l00137"></a>00137        kCurrencyMatch,
<a name="l00138"></a>00138        kSurroundingMatch,
<a name="l00139"></a>00139        kInsert,
<a name="l00140"></a>00140        kCurrencySpacingCount
<a name="l00141"></a>00141      };
<a name="l00142"></a>00142 
<a name="l00151"></a>00151     <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>&amp; locale, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status);
<a name="l00152"></a>00152 
<a name="l00163"></a>00163     <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</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>&amp; status);
<a name="l00164"></a>00164 
<a name="l00169"></a>00169     <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>(<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>&amp;);
<a name="l00170"></a>00170 
<a name="l00175"></a>00175     <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>&amp; operator=(<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>&amp;);
<a name="l00176"></a>00176 
<a name="l00181"></a>00181     <span class="keyword">virtual</span> ~<a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>();
<a name="l00182"></a>00182 
<a name="l00190"></a>00190     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="stringpiece_8h.html#a7652049cbac0bfeae2cd2aa4514a3352" title="Global operator == for StringPiece.">operator==</a>(<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>&amp; other) <span class="keyword">const</span>;
<a name="l00191"></a>00191 
<a name="l00199"></a><a class="code" href="classDecimalFormatSymbols.html#a5b8847a58bdd183fb3a16ebb75b9534b">00199</a>     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classDecimalFormatSymbols.html#a5b8847a58bdd183fb3a16ebb75b9534b" title="Return true if another object is semantically unequal to this one.">operator!=</a>(<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>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !<a class="code" href="stringpiece_8h.html#a7652049cbac0bfeae2cd2aa4514a3352" title="Global operator == for StringPiece.">operator==</a>(other); }
<a name="l00200"></a>00200 
<a name="l00210"></a>00210     <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> getSymbol(ENumberFormatSymbol symbol) <span class="keyword">const</span>;
<a name="l00211"></a>00211 
<a name="l00221"></a>00221     <span class="keywordtype">void</span> setSymbol(ENumberFormatSymbol symbol, <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &amp;value);
<a name="l00222"></a>00222 
<a name="l00227"></a>00227     <span class="keyword">inline</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> getLocale() <span class="keyword">const</span>;
<a name="l00228"></a>00228 
<a name="l00234"></a>00234     <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> getLocale(<a class="code" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34" title="Constants for *_getLocale() Allow user to select whether she wants information on...">ULocDataLocaleType</a> type, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status) <span class="keyword">const</span>;
<a name="l00235"></a>00235 
<a name="l00252"></a>00252      <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; getPatternForCurrencySpacing(ECurrencySpacing type,
<a name="l00253"></a>00253                                                  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> beforeCurrency,
<a name="l00254"></a>00254                                                  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; status) <span class="keyword">const</span>;
<a name="l00265"></a>00265      <span class="keywordtype">void</span> setPatternForCurrencySpacing(ECurrencySpacing type,
<a name="l00266"></a>00266                                        <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> beforeCurrency,
<a name="l00267"></a>00267                                        <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern);
<a name="l00268"></a>00268 
<a name="l00274"></a>00274     <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="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262" title="ICU4C &amp;quot;poor man&amp;#39;s RTTI&amp;quot;, returns a UClassID for the actual ICU class...">getDynamicClassID</a>() <span class="keyword">const</span>;
<a name="l00275"></a>00275 
<a name="l00281"></a>00281     <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> getStaticClassID();
<a name="l00282"></a>00282 
<a name="l00283"></a>00283 <span class="keyword">private</span>:
<a name="l00284"></a>00284     <a class="code" href="classDecimalFormatSymbols.html" title="This class represents the set of symbols needed by DecimalFormat to format numbers...">DecimalFormatSymbols</a>(); <span class="comment">// default constructor not implemented</span>
<a name="l00285"></a>00285 
<a name="l00296"></a>00296     <span class="keywordtype">void</span> initialize(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>&amp; locale, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a>&amp; success, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> useLastResortData = <a class="code" href="umachine_8h.html#aa93f0eb578d23995850d61f7d61c55c1" title="The FALSE value of a UBool.">FALSE</a>);
<a name="l00297"></a>00297 
<a name="l00305"></a>00305     <span class="keywordtype">void</span> initialize(<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>** numberElements, int32_t *numberElementsStrLen, int32_t numberElementsLength);
<a name="l00306"></a>00306 
<a name="l00310"></a>00310     <span class="keywordtype">void</span> initialize();
<a name="l00311"></a>00311 
<a name="l00312"></a>00312     <span class="keywordtype">void</span> setCurrencyForSymbols();
<a name="l00313"></a>00313 
<a name="l00314"></a>00314 <span class="keyword">public</span>:
<a name="l00326"></a>00326     <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> &amp;getConstSymbol(ENumberFormatSymbol symbol) <span class="keyword">const</span>;
<a name="l00327"></a>00327 
<a name="l00332"></a>00332     <span class="keyword">inline</span> <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>* getCurrencyPattern(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00333"></a>00333 
<a name="l00334"></a>00334 <span class="keyword">private</span>:
<a name="l00350"></a>00350     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fSymbols[kFormatSymbolCount];
<a name="l00351"></a>00351 
<a name="l00356"></a>00356     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fNoSymbol;
<a name="l00357"></a>00357 
<a name="l00358"></a>00358     <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> locale;
<a name="l00359"></a>00359 
<a name="l00360"></a>00360     <span class="keywordtype">char</span> actualLocale[<a class="code" href="uloc_8h.html#ac070d94b27bb71f73bafd4c31ed53081" title="Useful constant for the maximum size of the whole locale ID (including the terminating...">ULOC_FULLNAME_CAPACITY</a>];
<a name="l00361"></a>00361     <span class="keywordtype">char</span> validLocale[<a class="code" href="uloc_8h.html#ac070d94b27bb71f73bafd4c31ed53081" title="Useful constant for the maximum size of the whole locale ID (including the terminating...">ULOC_FULLNAME_CAPACITY</a>];
<a name="l00362"></a>00362     <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>* currPattern;
<a name="l00363"></a>00363 
<a name="l00364"></a>00364     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> currencySpcBeforeSym[kCurrencySpacingCount];
<a name="l00365"></a>00365     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> currencySpcAfterSym[kCurrencySpacingCount];
<a name="l00366"></a>00366 };
<a name="l00367"></a>00367 
<a name="l00368"></a>00368 <span class="comment">// -------------------------------------</span>
<a name="l00369"></a>00369 
<a name="l00370"></a>00370 <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="l00371"></a><a class="code" href="classDecimalFormatSymbols.html#ab83313d76403a414dca162111f13c110">00371</a> <a class="code" href="classDecimalFormatSymbols.html#ab83313d76403a414dca162111f13c110" title="Get one of the format symbols by its enum constant.">DecimalFormatSymbols::getSymbol</a>(<a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5" title="Constants for specifying a number format symbol.">ENumberFormatSymbol</a> symbol)<span class="keyword"> const </span>{
<a name="l00372"></a>00372     <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> *strPtr;
<a name="l00373"></a>00373     <span class="keywordflow">if</span>(symbol &lt; <a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5afcaaa868d2bd8d72da3a14138b90636e" title="count symbol constants">kFormatSymbolCount</a>) {
<a name="l00374"></a>00374         strPtr = &amp;fSymbols[symbol];
<a name="l00375"></a>00375     } <span class="keywordflow">else</span> {
<a name="l00376"></a>00376         strPtr = &amp;fNoSymbol;
<a name="l00377"></a>00377     }
<a name="l00378"></a>00378     <span class="keywordflow">return</span> *strPtr;
<a name="l00379"></a>00379 }
<a name="l00380"></a>00380 
<a name="l00381"></a>00381 <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> &amp;
<a name="l00382"></a><a class="code" href="classDecimalFormatSymbols.html#a278c120329862607234c43a84d8e1131">00382</a> <a class="code" href="classDecimalFormatSymbols.html#a278c120329862607234c43a84d8e1131" title="_Internal_ function - more efficient version of getSymbol, returning a const reference...">DecimalFormatSymbols::getConstSymbol</a>(<a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5" title="Constants for specifying a number format symbol.">ENumberFormatSymbol</a> symbol)<span class="keyword"> const </span>{
<a name="l00383"></a>00383     <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> *strPtr;
<a name="l00384"></a>00384     <span class="keywordflow">if</span>(symbol &lt; <a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5afcaaa868d2bd8d72da3a14138b90636e" title="count symbol constants">kFormatSymbolCount</a>) {
<a name="l00385"></a>00385         strPtr = &amp;fSymbols[symbol];
<a name="l00386"></a>00386     } <span class="keywordflow">else</span> {
<a name="l00387"></a>00387         strPtr = &amp;fNoSymbol;
<a name="l00388"></a>00388     }
<a name="l00389"></a>00389     <span class="keywordflow">return</span> *strPtr;
<a name="l00390"></a>00390 }
<a name="l00391"></a>00391 
<a name="l00392"></a>00392 <span class="comment">// -------------------------------------</span>
<a name="l00393"></a>00393 
<a name="l00394"></a>00394 <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00395"></a><a class="code" href="classDecimalFormatSymbols.html#a4c2a2e4ee6b5ab0e527565d8a252a9b3">00395</a> <a class="code" href="classDecimalFormatSymbols.html#a4c2a2e4ee6b5ab0e527565d8a252a9b3" title="Set one of the format symbols by its enum constant.">DecimalFormatSymbols::setSymbol</a>(<a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5" title="Constants for specifying a number format symbol.">ENumberFormatSymbol</a> symbol, <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &amp;value) {
<a name="l00396"></a>00396     <span class="keywordflow">if</span>(symbol&lt;<a class="code" href="classDecimalFormatSymbols.html#a165fe72713f240477c2d4572a77997e5afcaaa868d2bd8d72da3a14138b90636e" title="count symbol constants">kFormatSymbolCount</a>) {
<a name="l00397"></a>00397         fSymbols[symbol]=value;
<a name="l00398"></a>00398     }
<a name="l00399"></a>00399 }
<a name="l00400"></a>00400 
<a name="l00401"></a>00401 <span class="comment">// -------------------------------------</span>
<a name="l00402"></a>00402 
<a name="l00403"></a>00403 <span class="keyword">inline</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>
<a name="l00404"></a><a class="code" href="classDecimalFormatSymbols.html#addbd92170a4b33436d1815d4169fea33">00404</a> <a class="code" href="classDecimalFormatSymbols.html#addbd92170a4b33436d1815d4169fea33" title="Returns the locale for which this object was constructed.">DecimalFormatSymbols::getLocale</a>()<span class="keyword"> const </span>{
<a name="l00405"></a>00405     <span class="keywordflow">return</span> locale;
<a name="l00406"></a>00406 }
<a name="l00407"></a>00407 
<a name="l00408"></a>00408 <span class="keyword">inline</span> <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>*
<a name="l00409"></a><a class="code" href="classDecimalFormatSymbols.html#aebc6b8ef500935de1d604fa3e59af1df">00409</a> <a class="code" href="classDecimalFormatSymbols.html#aebc6b8ef500935de1d604fa3e59af1df" title="Returns that pattern stored in currecy info.">DecimalFormatSymbols::getCurrencyPattern</a>()<span class="keyword"> const </span>{
<a name="l00410"></a>00410     <span class="keywordflow">return</span> currPattern;
<a name="l00411"></a>00411 }
<a name="l00412"></a>00412 <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="l00413"></a>00413 
<a name="l00414"></a>00414 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span>
<a name="l00415"></a>00415 
<a name="l00416"></a>00416 <span class="preprocessor">#endif // _DCFMTSYM</span>
<a name="l00417"></a>00417 <span class="preprocessor"></span><span class="comment">//eof</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

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

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