<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ICU 3.8: DecimalFormatSymbols Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.1 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li id="current"><a href="classes.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul></div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul></div> <h1>DecimalFormatSymbols Class Reference</h1><!-- doxytag: class="DecimalFormatSymbols" --><!-- doxytag: inherits="UObject" -->This class represents the set of symbols needed by <a class="el" href="classDecimalFormat.html">DecimalFormat</a> to format numbers. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>></code> <p> <p>Inheritance diagram for DecimalFormatSymbols: <p><center><img src="classDecimalFormatSymbols.png" usemap="#DecimalFormatSymbols_map" border="0" alt=""></center> <map name="DecimalFormatSymbols_map"> <area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,143,80"> <area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,143,24"> </map> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">ENumberFormatSymbol</a> { <br> <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5fbc1c361e234d7c4a1956cd23598b958">kDecimalSeparatorSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5285c84ec337e2de67a5d15f1e54d82b4">kGroupingSeparatorSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5ecebed5dcd39ac6a37f2abc0c26d2052">kPatternSeparatorSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e56e7c212e015d16d13211981dba1a3d2f">kPercentSymbol</a>, <br> <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5de30415fa7dfab1f9bd5ecd6c9eca30c">kZeroDigitSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e58a1ae3b194d957cd0bfdb468777dd51b">kDigitSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5be50fb06b881a7bfea25968c3907c9a3">kMinusSignSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5427c5f11c61035460bc9909bac3d3e9a">kPlusSignSymbol</a>, <br> <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e58a3108032a077f7fc9782ab96623d163">kCurrencySymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5d05569e73197ebc571dd5d593fd98ba3">kIntlCurrencySymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e53cdd94060e4816226bfbaf5f851b1bc9">kMonetarySeparatorSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5f0f3897fd4f2cf76981bc76e60f5d8b7">kExponentialSymbol</a>, <br> <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e50bc83888deb7b62bffffd8196bfc80c6">kPerMillSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e57e2aaf6cc78c1f63bda0bd7295bc97c3">kPadEscapeSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e52291a12b826711fad797fe079fead9c0">kInfinitySymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5540b88b52352d8b4a28b7b6a4b6ee8e1">kNaNSymbol</a>, <br> <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5555556b91942d0406da8a30a80039a0d">kSignificantDigitSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5e66b88c99b1a13649454fcc881120e00">kMonetaryGroupingSeparatorSymbol</a>, <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5fcaaa868d2bd8d72da3a14138b90636e">kFormatSymbolCount</a> <br> }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constants for specifying a number format symbol. <a href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#9b766386e1ea51b530ac76f5a9f43fb8">DecimalFormatSymbols</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> object for the given locale. <a href="#9b766386e1ea51b530ac76f5a9f43fb8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#93c8443585f64a8c8a02380c5f5e5a62">DecimalFormatSymbols</a> (<a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> object for the default locale. <a href="#93c8443585f64a8c8a02380c5f5e5a62"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#1b1e4b9956197aefe8cb4fe986c38662">DecimalFormatSymbols</a> (const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#1b1e4b9956197aefe8cb4fe986c38662"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#6077633d939b64e3dcce482d3ba28d8c">operator=</a> (const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#6077633d939b64e3dcce482d3ba28d8c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#a3a5b3466fa4f71e18afc25b54b05dee">~DecimalFormatSymbols</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a3a5b3466fa4f71e18afc25b54b05dee"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#e53499e417ee6c1b1a7f74f50ca77f31">operator==</a> (const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &other) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if another object is semantically equal to this one. <a href="#e53499e417ee6c1b1a7f74f50ca77f31"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#618a3ff98906a884f8ab922e4ea49922">operator!=</a> (const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> &other) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if another object is semantically unequal to this one. <a href="#618a3ff98906a884f8ab922e4ea49922"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#b7c0e33913428fe736bc6901b1559d2d">getSymbol</a> (<a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">ENumberFormatSymbol</a> symbol) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get one of the format symbols by its enum constant. <a href="#b7c0e33913428fe736bc6901b1559d2d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#4c2a2e4ee6b5ab0e527565d8a252a9b3">setSymbol</a> (<a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">ENumberFormatSymbol</a> symbol, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set one of the format symbols by its enum constant. <a href="#4c2a2e4ee6b5ab0e527565d8a252a9b3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classLocale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#34baf5e747e1308d7fd13ce4c8a167fe">getLocale</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the locale for which this object was constructed. <a href="#34baf5e747e1308d7fd13ce4c8a167fe"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classLocale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#6c49ffb72179db05811b4eeb4db5367d">getLocale</a> (<a class="el" href="uloc_8h.html#df053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the locale for this object. <a href="#6c49ffb72179db05811b4eeb4db5367d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#5f07c434fd35cbbb8e38cf1a79e38ab6">getDynamicClassID</a> () const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class. <a href="#5f07c434fd35cbbb8e38cf1a79e38ab6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#05d025d40930a2266bf051d5b0110e0f">getConstSymbol</a> (<a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">ENumberFormatSymbol</a> symbol) const</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">_Internal_ function - more efficient version of getSymbol, returning a const reference to one of the symbol strings. <a href="#05d025d40930a2266bf051d5b0110e0f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const UChar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#ebc6b8ef500935de1d604fa3e59af1df">getCurrencyPattern</a> (void) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns that pattern stored in currecy info. <a href="#ebc6b8ef500935de1d604fa3e59af1df"></a><br></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDecimalFormatSymbols.html#4df00b320e7eefce7c70e1bc6405db2c">getStaticClassID</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class. <a href="#4df00b320e7eefce7c70e1bc6405db2c"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> This class represents the set of symbols needed by <a class="el" href="classDecimalFormat.html">DecimalFormat</a> to format numbers. <p> <a class="el" href="classDecimalFormat.html">DecimalFormat</a> creates for itself an instance of <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> from its locale data. If you need to change any of these symbols, you can get the <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> object from your <a class="el" href="classDecimalFormat.html">DecimalFormat</a> and modify it. <p> Here are the special characters used in the parts of the subpattern, with notes on their usage. <pre> <div class="fragment"><pre class="fragment"> Symbol Meaning 0 a digit <span class="preprocessor"> # a digit, zero shows as absent</span> <span class="preprocessor"></span> . placeholder <span class="keywordflow">for</span> decimal separator , placeholder <span class="keywordflow">for</span> grouping separator. ; separates formats. - <span class="keywordflow">default</span> negative prefix. % divide by 100 and show as percentage X any other characters can be used in the prefix or suffix ' used to quote special characters in a prefix or suffix. </pre></div> </pre> [Notes] <p> If there is no explicit negative subpattern, - is prefixed to the positive form. That is, "0.00" alone is equivalent to "0.00;-0.00". <p> The grouping separator is commonly used for thousands, but in some countries for ten-thousands. The interval is a constant number of digits between the grouping characters, such as 100,000,000 or 1,0000,0000. If you supply a pattern with multiple grouping characters, the interval between the last one and the end of the integer is the one that is used. So "#,##,###,####" == "######,####" == "##,####,####". <p> This class only handles localized digits where the 10 digits are contiguous in Unicode, from 0 to 9. Other digits sets (such as superscripts) would need a different subclass. <p> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00082">82</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>.<hr><h2>Member Enumeration Documentation</h2> <a class="anchor" name="165fe72713f240477c2d4572a77997e5"></a><!-- doxytag: member="DecimalFormatSymbols::ENumberFormatSymbol" ref="165fe72713f240477c2d4572a77997e5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">DecimalFormatSymbols::ENumberFormatSymbol</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Constants for specifying a number format symbol. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002222">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5fbc1c361e234d7c4a1956cd23598b958"></a><!-- doxytag: member="kDecimalSeparatorSymbol" ref="165fe72713f240477c2d4572a77997e5fbc1c361e234d7c4a1956cd23598b958" args="" -->kDecimalSeparatorSymbol</em> </td><td> The decimal separator. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5285c84ec337e2de67a5d15f1e54d82b4"></a><!-- doxytag: member="kGroupingSeparatorSymbol" ref="165fe72713f240477c2d4572a77997e5285c84ec337e2de67a5d15f1e54d82b4" args="" -->kGroupingSeparatorSymbol</em> </td><td> The grouping separator. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5ecebed5dcd39ac6a37f2abc0c26d2052"></a><!-- doxytag: member="kPatternSeparatorSymbol" ref="165fe72713f240477c2d4572a77997e5ecebed5dcd39ac6a37f2abc0c26d2052" args="" -->kPatternSeparatorSymbol</em> </td><td> The pattern separator. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e56e7c212e015d16d13211981dba1a3d2f"></a><!-- doxytag: member="kPercentSymbol" ref="165fe72713f240477c2d4572a77997e56e7c212e015d16d13211981dba1a3d2f" args="" -->kPercentSymbol</em> </td><td> The percent sign. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5de30415fa7dfab1f9bd5ecd6c9eca30c"></a><!-- doxytag: member="kZeroDigitSymbol" ref="165fe72713f240477c2d4572a77997e5de30415fa7dfab1f9bd5ecd6c9eca30c" args="" -->kZeroDigitSymbol</em> </td><td> Zero. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e58a1ae3b194d957cd0bfdb468777dd51b"></a><!-- doxytag: member="kDigitSymbol" ref="165fe72713f240477c2d4572a77997e58a1ae3b194d957cd0bfdb468777dd51b" args="" -->kDigitSymbol</em> </td><td> Character representing a digit in the pattern. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5be50fb06b881a7bfea25968c3907c9a3"></a><!-- doxytag: member="kMinusSignSymbol" ref="165fe72713f240477c2d4572a77997e5be50fb06b881a7bfea25968c3907c9a3" args="" -->kMinusSignSymbol</em> </td><td> The minus sign. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5427c5f11c61035460bc9909bac3d3e9a"></a><!-- doxytag: member="kPlusSignSymbol" ref="165fe72713f240477c2d4572a77997e5427c5f11c61035460bc9909bac3d3e9a" args="" -->kPlusSignSymbol</em> </td><td> The plus sign. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e58a3108032a077f7fc9782ab96623d163"></a><!-- doxytag: member="kCurrencySymbol" ref="165fe72713f240477c2d4572a77997e58a3108032a077f7fc9782ab96623d163" args="" -->kCurrencySymbol</em> </td><td> The currency symbol. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5d05569e73197ebc571dd5d593fd98ba3"></a><!-- doxytag: member="kIntlCurrencySymbol" ref="165fe72713f240477c2d4572a77997e5d05569e73197ebc571dd5d593fd98ba3" args="" -->kIntlCurrencySymbol</em> </td><td> The international currency symbol. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e53cdd94060e4816226bfbaf5f851b1bc9"></a><!-- doxytag: member="kMonetarySeparatorSymbol" ref="165fe72713f240477c2d4572a77997e53cdd94060e4816226bfbaf5f851b1bc9" args="" -->kMonetarySeparatorSymbol</em> </td><td> The monetary separator. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5f0f3897fd4f2cf76981bc76e60f5d8b7"></a><!-- doxytag: member="kExponentialSymbol" ref="165fe72713f240477c2d4572a77997e5f0f3897fd4f2cf76981bc76e60f5d8b7" args="" -->kExponentialSymbol</em> </td><td> The exponential symbol. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e50bc83888deb7b62bffffd8196bfc80c6"></a><!-- doxytag: member="kPerMillSymbol" ref="165fe72713f240477c2d4572a77997e50bc83888deb7b62bffffd8196bfc80c6" args="" -->kPerMillSymbol</em> </td><td> Per mill symbol - replaces kPermillSymbol. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e57e2aaf6cc78c1f63bda0bd7295bc97c3"></a><!-- doxytag: member="kPadEscapeSymbol" ref="165fe72713f240477c2d4572a77997e57e2aaf6cc78c1f63bda0bd7295bc97c3" args="" -->kPadEscapeSymbol</em> </td><td> Escape padding character. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e52291a12b826711fad797fe079fead9c0"></a><!-- doxytag: member="kInfinitySymbol" ref="165fe72713f240477c2d4572a77997e52291a12b826711fad797fe079fead9c0" args="" -->kInfinitySymbol</em> </td><td> Infinity symbol. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5540b88b52352d8b4a28b7b6a4b6ee8e1"></a><!-- doxytag: member="kNaNSymbol" ref="165fe72713f240477c2d4572a77997e5540b88b52352d8b4a28b7b6a4b6ee8e1" args="" -->kNaNSymbol</em> </td><td> Nan symbol. </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5555556b91942d0406da8a30a80039a0d"></a><!-- doxytag: member="kSignificantDigitSymbol" ref="165fe72713f240477c2d4572a77997e5555556b91942d0406da8a30a80039a0d" args="" -->kSignificantDigitSymbol</em> </td><td> Significant digit symbol. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002236">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl> </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5e66b88c99b1a13649454fcc881120e00"></a><!-- doxytag: member="kMonetaryGroupingSeparatorSymbol" ref="165fe72713f240477c2d4572a77997e5e66b88c99b1a13649454fcc881120e00" args="" -->kMonetaryGroupingSeparatorSymbol</em> </td><td> The monetary grouping separator. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002237">Stable:</a></b></dt><dd>ICU 3.6 </dd></dl> </td></tr> <tr><td valign="top"><em><a class="anchor" name="165fe72713f240477c2d4572a77997e5fcaaa868d2bd8d72da3a14138b90636e"></a><!-- doxytag: member="kFormatSymbolCount" ref="165fe72713f240477c2d4572a77997e5fcaaa868d2bd8d72da3a14138b90636e" args="" -->kFormatSymbolCount</em> </td><td> count symbol constants </td></tr> </table> </dl> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00088">88</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>. </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="9b766386e1ea51b530ac76f5a9f43fb8"></a><!-- doxytag: member="DecimalFormatSymbols::DecimalFormatSymbols" ref="9b766386e1ea51b530ac76f5a9f43fb8" args="(const Locale &locale, UErrorCode &status)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DecimalFormatSymbols::DecimalFormatSymbols </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"> <em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"> <em>status</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Create a <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> object for the given locale. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>locale</em> </td><td>The locale to get symbols for. </td></tr> <tr><td valign="top"></td><td valign="top"><em>status</em> </td><td>Input/output parameter, set to success or failure code upon return. </td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="stable.html#_stable002223">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div><p> <a class="anchor" name="93c8443585f64a8c8a02380c5f5e5a62"></a><!-- doxytag: member="DecimalFormatSymbols::DecimalFormatSymbols" ref="93c8443585f64a8c8a02380c5f5e5a62" args="(UErrorCode &status)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DecimalFormatSymbols::DecimalFormatSymbols </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"> <em>status</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Create a <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> object for the default locale. <p> This constructor will not fail. If the resource file data is not available, it will use hard-coded last-resort data and set status to U_USING_FALLBACK_ERROR.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>status</em> </td><td>Input/output parameter, set to success or failure code upon return. </td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="stable.html#_stable002224">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div><p> <a class="anchor" name="1b1e4b9956197aefe8cb4fe986c38662"></a><!-- doxytag: member="DecimalFormatSymbols::DecimalFormatSymbols" ref="1b1e4b9956197aefe8cb4fe986c38662" args="(const DecimalFormatSymbols &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DecimalFormatSymbols::DecimalFormatSymbols </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> & </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Copy constructor. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002225">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div><p> <a class="anchor" name="a3a5b3466fa4f71e18afc25b54b05dee"></a><!-- doxytag: member="DecimalFormatSymbols::~DecimalFormatSymbols" ref="a3a5b3466fa4f71e18afc25b54b05dee" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual DecimalFormatSymbols::~DecimalFormatSymbols </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002227">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="6077633d939b64e3dcce482d3ba28d8c"></a><!-- doxytag: member="DecimalFormatSymbols::operator=" ref="6077633d939b64e3dcce482d3ba28d8c" args="(const DecimalFormatSymbols &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a>& DecimalFormatSymbols::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> & </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Assignment operator. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002226">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div><p> <a class="anchor" name="e53499e417ee6c1b1a7f74f50ca77f31"></a><!-- doxytag: member="DecimalFormatSymbols::operator==" ref="e53499e417ee6c1b1a7f74f50ca77f31" args="(const DecimalFormatSymbols &other) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> DecimalFormatSymbols::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> & </td> <td class="paramname"> <em>other</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Return true if another object is semantically equal to this one. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>the object to be compared with. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if another object is semantically equal to this one. </dd></dl> <dl compact><dt><b><a class="el" href="stable.html#_stable002228">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div><p> <a class="anchor" name="618a3ff98906a884f8ab922e4ea49922"></a><!-- doxytag: member="DecimalFormatSymbols::operator!=" ref="618a3ff98906a884f8ab922e4ea49922" args="(const DecimalFormatSymbols &other) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#349ef00011f20ccd1d3b424445681aa5">UBool</a> DecimalFormatSymbols::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> & </td> <td class="paramname"> <em>other</em> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if another object is semantically unequal to this one. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>other</em> </td><td>the object to be compared with. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if another object is semantically unequal to this one. </dd></dl> <dl compact><dt><b><a class="el" href="stable.html#_stable002229">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00188">188</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>. </div> </div><p> <a class="anchor" name="b7c0e33913428fe736bc6901b1559d2d"></a><!-- doxytag: member="DecimalFormatSymbols::getSymbol" ref="b7c0e33913428fe736bc6901b1559d2d" args="(ENumberFormatSymbol symbol) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> DecimalFormatSymbols::getSymbol </td> <td>(</td> <td class="paramtype"><a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">ENumberFormatSymbol</a> </td> <td class="paramname"> <em>symbol</em> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get one of the format symbols by its enum constant. <p> Each symbol is stored as a string so that graphemes (characters with modifyer letters) can be used.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>symbol</em> </td><td>Constant to indicate a number format symbol. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the format symbols by the param 'symbol' </dd></dl> <dl compact><dt><b><a class="el" href="stable.html#_stable002230">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00324">324</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>. <p> References <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5fcaaa868d2bd8d72da3a14138b90636e">kFormatSymbolCount</a>. </div> </div><p> <a class="anchor" name="4c2a2e4ee6b5ab0e527565d8a252a9b3"></a><!-- doxytag: member="DecimalFormatSymbols::setSymbol" ref="4c2a2e4ee6b5ab0e527565d8a252a9b3" args="(ENumberFormatSymbol symbol, const UnicodeString &value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void DecimalFormatSymbols::setSymbol </td> <td>(</td> <td class="paramtype"><a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">ENumberFormatSymbol</a> </td> <td class="paramname"> <em>symbol</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set one of the format symbols by its enum constant. <p> Each symbol is stored as a string so that graphemes (characters with modifyer letters) can be used.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>symbol</em> </td><td>Constant to indicate a number format symbol. </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>value of the format sybmol </td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="stable.html#_stable002231">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00348">348</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>. <p> References <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5fcaaa868d2bd8d72da3a14138b90636e">kFormatSymbolCount</a>. </div> </div><p> <a class="anchor" name="34baf5e747e1308d7fd13ce4c8a167fe"></a><!-- doxytag: member="DecimalFormatSymbols::getLocale" ref="34baf5e747e1308d7fd13ce4c8a167fe" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classLocale.html">Locale</a> DecimalFormatSymbols::getLocale </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the locale for which this object was constructed. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002232">Stable:</a></b></dt><dd>ICU 2.6 </dd></dl> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00357">357</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>. </div> </div><p> <a class="anchor" name="6c49ffb72179db05811b4eeb4db5367d"></a><!-- doxytag: member="DecimalFormatSymbols::getLocale" ref="6c49ffb72179db05811b4eeb4db5367d" args="(ULocDataLocaleType type, UErrorCode &status) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classLocale.html">Locale</a> DecimalFormatSymbols::getLocale </td> <td>(</td> <td class="paramtype"><a class="el" href="uloc_8h.html#df053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> </td> <td class="paramname"> <em>type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"> <em>status</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns the locale for this object. <p> Two flavors are available: valid and actual locale. <dl compact><dt><b><a class="el" href="stable.html#_stable002233">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div><p> <a class="anchor" name="5f07c434fd35cbbb8e38cf1a79e38ab6"></a><!-- doxytag: member="DecimalFormatSymbols::getDynamicClassID" ref="5f07c434fd35cbbb8e38cf1a79e38ab6" args="() const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> DecimalFormatSymbols::getDynamicClassID </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> ICU "poor man's RTTI", returns a UClassID for the actual class. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002234">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl> <p> Implements <a class="el" href="classUObject.html#ce1dd31fb2c6f2c07dfebe8fd240ec37">UObject</a>. </div> </div><p> <a class="anchor" name="4df00b320e7eefce7c70e1bc6405db2c"></a><!-- doxytag: member="DecimalFormatSymbols::getStaticClassID" ref="4df00b320e7eefce7c70e1bc6405db2c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="utypes_8h.html#22af10545208a455a6e884008df48e9f">UClassID</a> DecimalFormatSymbols::getStaticClassID </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> ICU "poor man's RTTI", returns a UClassID for this class. <p> <dl compact><dt><b><a class="el" href="stable.html#_stable002235">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl> </div> </div><p> <a class="anchor" name="05d025d40930a2266bf051d5b0110e0f"></a><!-- doxytag: member="DecimalFormatSymbols::getConstSymbol" ref="05d025d40930a2266bf051d5b0110e0f" args="(ENumberFormatSymbol symbol) const" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & DecimalFormatSymbols::getConstSymbol </td> <td>(</td> <td class="paramtype"><a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5">ENumberFormatSymbol</a> </td> <td class="paramname"> <em>symbol</em> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> _Internal_ function - more efficient version of getSymbol, returning a const reference to one of the symbol strings. <p> The returned reference becomes invalid when the symbol is changed or when the <a class="el" href="classDecimalFormatSymbols.html">DecimalFormatSymbols</a> are destroyed. ### TODO markus 2002oct11: Consider proposing <a class="el" href="classDecimalFormatSymbols.html#05d025d40930a2266bf051d5b0110e0f">getConstSymbol()</a> to be really public.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>symbol</em> </td><td>Constant to indicate a number format symbol. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the format symbol by the param 'symbol' </dd></dl> <dl compact><dt><b><a class="el" href="internal.html#_internal000131">Internal:</a></b></dt><dd>Do not use. This API is for interal use only. </dd></dl> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00335">335</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>. <p> References <a class="el" href="classDecimalFormatSymbols.html#165fe72713f240477c2d4572a77997e5fcaaa868d2bd8d72da3a14138b90636e">kFormatSymbolCount</a>. </div> </div><p> <a class="anchor" name="ebc6b8ef500935de1d604fa3e59af1df"></a><!-- doxytag: member="DecimalFormatSymbols::getCurrencyPattern" ref="ebc6b8ef500935de1d604fa3e59af1df" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const UChar * DecimalFormatSymbols::getCurrencyPattern </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns that pattern stored in currecy info. <p> Internal API for use by <a class="el" href="classNumberFormat.html">NumberFormat</a> API. <dl compact><dt><b><a class="el" href="internal.html#_internal000132">Internal:</a></b></dt><dd>Do not use. This API is for interal use only. </dd></dl> <p> Definition at line <a class="el" href="dcfmtsym_8h-source.html#l00362">362</a> of file <a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a>. </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="dcfmtsym_8h-source.html">dcfmtsym.h</a></ul> <hr size="1"><address style="align: right;"><small>Generated on Fri Sep 14 12:59:40 2007 for ICU 3.8 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> </body> </html>