📄 mnypname.htm
字号:
<html>
<head>
<title>moneypunct_byname</title>
</head>
<body bgcolor="#FFFFFF">
<a name="here"></a>
<img src="monyban.gif">
<pre>
<font size=5>Class Name</font> moneypunct_byname
<font size=5>Header File</font> <locale>
<font size=5>Classification</font> abstract data type
</pre>
<a href="mnypname.htm#crd">Class Relationship Diagram</a><br>
<br>
<a href="mnypname.htm#class-descrip">Class Description</a>
<h1>Member Classes</h1>
<p>
None
</p>
<h1>Methods</h1>
<pre>
<a href="mnypname.htm#do-curr-symbol">
virtual string_type do_curr_symbol() const;</a>
<a href="mnypname.htm#do-decimal-point">
virtual charT do_decimal_point() const;</a>
<a href="mnypname.htm#do-frac-digits">
virtual int do_frac_digits() const;</a>
<a href="mnypname.htm#do-grouping">
virtual string do_grouping() const;</a>
<a href="mnypname.htm#do-neg-format">
virtual pattern do_neg_format() const;</a>
<a href="mnypname.htm#do-negative-sign">
virtual string_type do_negative_sign() const;</a>
<a href="mnypname.htm#do-pos-format">
virtual pattern do_pos_format() const;</a>
<a href="mnypname.htm#do-positive-sign">
virtual string_type do_positive_sign() const;</a>
<a href="mnypname.htm#do-thousands-sep">
virtual charT do_thousands_sep() const;</a>
<a href="mnypname.htm#moneypunct-byname">
explicit moneypunct_byname(const char*, size_t refs = 0);</a>
<a href="mnypname.htm#~moneypunct-byname">
~moneypunct_byname();</a>
</pre>
<a name="class-descrip"><h3>Class Description</h3></a>
<p>
The moneypunct_byname class describes a class used to provide money
punctuation for a named locale.
</p>
<hr>
<pre>
<a name="do-curr-symbol">
Method do_curr_symbol()</a>
Access Protected
Classification Accessor
Syntax virtual string_type do_curr_symbol() const;
Parameters None
Returns This method returns a string_type used as the
currency symbol.
</pre>
<h3>Description</h3>
<p>
The do_curr_symbol() method returns a sequence of elements used as the
currency symbol.
</p>
<hr>
<pre>
<a name="do-decimal-point">
Method do_decimal_point()</a>
Access Protected
Classification Accessor
Syntax virtual charT do_decimal_point() const;
Parameters None
Returns This method returns a charT used as the decimal point.
</pre>
<h3>Description</h3>
<p>
The do_decimal_point() method returns a character used as the decimal point.
</p>
<hr>
<pre>
<a name="do-frac-digits">
Method do_frac_digits()</a>
Access Protected
Classification Accessor
Syntax virtual int do_frac_digits() const;
Parameters None
Return Type int
</pre>
<h3>Description</h3>
<p>
The do_frac_digits() method returns the number of digits in the fractional part
(displayed to the right of the decimal point) of the monetary value.
</p>
<hr>
<pre>
<a name="do-grouping">
Method do_grouping()</a>
Access Protected
Classification Accessor
Syntax virtual string do_grouping() const;
Parameters None
Returns This method returns a string that is used as a
pattern of the number of digits in a particular
grouping.
</pre>
<h3>Description</h3>
<p>
The do_grouping() method returns a string in which each character of the string
is used as an integer value which represents the number of digits in a particular
grouping, starting with the rightmost group. A group is the digits between the
adjacent thousands' separators. The returned value has the same result as the
numpunct<charT>::do_grouping().
</p>
<hr>
<pre>
<a name="do-neg-format">
Method do_neg_format()</a>
Access Protected
Classification Accessor
Syntax virtual pattern do_neg_format() const;
Parameters None
Returns This method returns a pattern which is a four element
array that specifies the order in which syntactic
elements appear in the monetary format.
</pre>
<h3>Description</h3>
<p>
The do_neg_format() method returns a pattern that is a four element array. The
array specifies the order in which syntactic elements appear in the monetary format.
Each enumeration value in the array (<a href="mnypunct.htm#Table1">symbol</a>, <a href="mnypunct.htm#Table1">sign</a>,
<a href="mnypunct.htm#Table1">value</a>, and either <a href="mnypunct.htm#Table1">space</a> or
<a href="mnypunct.htm#Table1">none</a>)
appears only once. <a href="mnypunct.htm#Table1">none</a>, if present, will never occupy the first position.
<a href="mnypunct.htm#Table1">space</a>,
if present, will not appear in the first or last position. Otherwise, the elements
may appear in any order.
</p>
<hr>
<pre>
<a name="do-negative-sign">
Method do_negative_sign()</a>
Access Protected
Classification Accessor
Syntax virtual string_type do_negative_sign() const;
Parameters None
Returns This method returns a string_type that is used to
indicate a negative monetary value.
</pre>
<h3>Description</h3>
<p>
The do_negative_sign() methods returns a sequence of elements used as a negative sign.
</p>
<hr>
<pre>
<a name="do-pos-format">
Method do_pos_format()</a>
Access Protected
Classification Accessor
Syntax virtual pattern do_pos_format() const;
Parameters None
Returns This method returns a pattern which is a four element
array that specifies the order in which syntactic
elements appear in the monetary format.
</pre>
<h3>Description</h3>
<p>
The do_pos_format() method returns a pattern that is a four element array. The
array specifies the order in which syntactic elements appear in the monetary format.
Each enumeration value in the array (<a href="mnypunct.htm#Table1">symbol</a>, <a href="mnypunct.htm#Table1">sign</a>,
<a href="mnypunct.htm#Table1">value</a>, and either <a href="mnypunct.htm#Table1">space</a> or
<a href="mnypunct.htm#Table1">none</a>)
appears only once. <a href="mnypunct.htm#Table1">none</a>, if present, will never occupy the first position.
<a href="mnypunct.htm#Table1">space</a>,
if present, will not appear in the first or last position. Otherwise, the elements
may appear in any order.
</p>
<hr>
<pre>
<a name="do-positive-sign">
Method do_positive_sign()</a>
Access Protected
Classification Accessor
Syntax string_type do_positive_sign() const;
Parameters None
Returns This method returns a string_type that is used to
indicate a positive monetary value.
</pre>
<h3>Description</h3>
<p>
The do_postive_sign() methods returns a sequence of elements used as a positive sign.
</p>
<hr>
<pre>
<a name="do-thousands-sep">
Method do_thousands_sep()</a>
Access Protected
Classification Accessor
Syntax virtual charT do_thousands_sep() const;
Parameters None
Returns This method returns a charT that is used as a digit
group separator.
</pre>
<h3>Description</h3>
<p>
The do_thousands_sep() method returns an element to use as a group separator to the
left of any decimal point. It is used when the do_grouping() method specifies a
digit grouping pattern.
</p>
<hr>
<pre>
<a name="moneypunct-byname">
Method moneypunct_byname()</a>
Access Public
Classification Constructor
Syntax explicit moneypunct_byname(const char* name,
size_t refs = 0);
Parameters name is the name of the named locale.
<em>refs</em>, if the refs argument = 0 then the destruction
of the object is delegated to the locale or locales
which contain it. If refs = 1 then the object must
be explicitly deleted. The locale will not delete
it. The object can then be maintained across the
lifetime of multiple locales.
Returns None
</pre>
<h3>Description</h3>
<p>
The constructor constructs a moneypunct_byname facet object. Uses the named locale
specified by <em>name</em> argument.
</p>
<hr>
<pre>
<a name="~moneypunct-byname">
Method moneypunct_byname()</a>
Access Public
Classification Destructor
Syntax ~moneypunct_byname();
Parameters None
Returns None
</pre>
<h3>Description</h3>
<p>
The destructor destroys a moneypunct_byname facet object.
</p>
<hr>
<a name="crd"><h2>The Class Relationship Diagram for moneypunct_byname</h2></a>
<img src="mnypname.gif">
<hr>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -