libstdc++
std::moneypunct_byname Class Reference
Inheritance diagram for std::moneypunct_byname:

List of all members.

Public Types

Public Member Functions

Static Public Attributes

Protected Member Functions


Detailed Description

class moneypunct_byname [22.2.6.4].


Member Typedef Documentation

Public typedefs.

Reimplemented from std::moneypunct< _CharT, _Intl >.

Definition at line 1327 of file locale_facets_nonio.h.

Public typedefs.

Reimplemented from std::moneypunct< _CharT, _Intl >.

Definition at line 1328 of file locale_facets_nonio.h.


Member Function Documentation

string_type std::moneypunct::curr_symbol ( ) const [inline, inherited]

Return currency symbol string.

This function returns a string_type to use as a currency symbol. It does so by returning returning moneypunct<char_type>::do_curr_symbol().

Returns:
string_type representing a currency symbol.

Definition at line 1061 of file locale_facets_nonio.h.

References std::moneypunct::do_curr_symbol().

char_type std::moneypunct::decimal_point ( ) const [inline, inherited]

Return decimal point character.

This function returns a char_type to use as a decimal point. It does so by returning returning moneypunct<char_type>::do_decimal_point().

Returns:
char_type representing a decimal point.

Definition at line 1005 of file locale_facets_nonio.h.

References std::moneypunct::do_decimal_point().

virtual string_type std::moneypunct::do_curr_symbol ( ) const [inline, protected, virtual, inherited]

Return currency symbol string.

This function returns a string_type to use as a currency symbol. This function is a hook for derived classes to change the value returned.

See also:
curr_symbol() for details.
Returns:
string_type representing a currency symbol.

Definition at line 1207 of file locale_facets_nonio.h.

virtual char_type std::moneypunct::do_decimal_point ( ) const [inline, protected, virtual, inherited]

Return decimal point character.

Returns a char_type to use as a decimal point. This function is a hook for derived classes to change the value returned.

Returns:
char_type representing a decimal point.

Definition at line 1169 of file locale_facets_nonio.h.

virtual int std::moneypunct::do_frac_digits ( ) const [inline, protected, virtual, inherited]

Return number of digits in fraction.

This function returns the exact number of digits that make up the fractional part of a money amount. This function is a hook for derived classes to change the value returned.

See also:
frac_digits() for details.
Returns:
Number of digits in amount fraction.

Definition at line 1247 of file locale_facets_nonio.h.

virtual string std::moneypunct::do_grouping ( ) const [inline, protected, virtual, inherited]

Return grouping specification.

Returns a string representing groupings for the integer part of a number. This function is a hook for derived classes to change the value returned.

See also:
grouping() for details.
Returns:
String representing grouping specification.

Definition at line 1194 of file locale_facets_nonio.h.

virtual pattern std::moneypunct::do_neg_format ( ) const [inline, protected, virtual, inherited]

Return pattern for money values.

This function returns a pattern describing the formatting of a negative valued money amount. This function is a hook for derived classes to change the value returned.

See also:
neg_format() for details.
Returns:
Pattern for money values.

Definition at line 1275 of file locale_facets_nonio.h.

virtual string_type std::moneypunct::do_negative_sign ( ) const [inline, protected, virtual, inherited]

Return negative sign string.

This function returns a string_type to use as a sign for negative amounts. This function is a hook for derived classes to change the value returned.

See also:
negative_sign() for details.
Returns:
string_type representing a negative sign.

Definition at line 1233 of file locale_facets_nonio.h.

virtual pattern std::moneypunct::do_pos_format ( ) const [inline, protected, virtual, inherited]

Return pattern for money values.

This function returns a pattern describing the formatting of a positive valued money amount. This function is a hook for derived classes to change the value returned.

See also:
pos_format() for details.
Returns:
Pattern for money values.

Definition at line 1261 of file locale_facets_nonio.h.

virtual string_type std::moneypunct::do_positive_sign ( ) const [inline, protected, virtual, inherited]

Return positive sign string.

This function returns a string_type to use as a sign for positive amounts. This function is a hook for derived classes to change the value returned.

See also:
positive_sign() for details.
Returns:
string_type representing a positive sign.

Definition at line 1220 of file locale_facets_nonio.h.

virtual char_type std::moneypunct::do_thousands_sep ( ) const [inline, protected, virtual, inherited]

Return thousands separator character.

Returns a char_type to use as a thousands separator. This function is a hook for derived classes to change the value returned.

Returns:
char_type representing a thousands separator.

Definition at line 1181 of file locale_facets_nonio.h.

int std::moneypunct::frac_digits ( ) const [inline, inherited]

Return number of digits in fraction.

This function returns the exact number of digits that make up the fractional part of a money amount. It does so by returning returning moneypunct<char_type>::do_frac_digits().

The fractional part of a money amount is optional. But if it is present, there must be frac_digits() digits.

Returns:
Number of digits in amount fraction.

Definition at line 1111 of file locale_facets_nonio.h.

References std::moneypunct::do_frac_digits().

string std::moneypunct::grouping ( ) const [inline, inherited]

Return grouping specification.

This function returns a string representing groupings for the integer part of an amount. Groupings indicate where thousands separators should be inserted.

Each char in the return string is interpret as an integer rather than a character. These numbers represent the number of digits in a group. The first char in the string represents the number of digits in the least significant group. If a char is negative, it indicates an unlimited number of digits for the group. If more chars from the string are required to group a number, the last char is used repeatedly.

For example, if the grouping() returns \003\002 and is applied to the number 123456789, this corresponds to 12,34,56,789. Note that if the string was 32, this would put more than 50 digits into the least significant group if the character set is ASCII.

The string is returned by calling moneypunct<char_type>::do_grouping().

Returns:
string representing grouping specification.

Definition at line 1048 of file locale_facets_nonio.h.

References std::moneypunct::do_grouping().

pattern std::moneypunct::neg_format ( ) const [inline, inherited]

Return pattern for money values.

This function returns a pattern describing the formatting of a positive or negative valued money amount. It does so by returning returning moneypunct<char_type>::do_pos_format() or moneypunct<char_type>::do_neg_format().

The pattern has 4 fields describing the ordering of symbol, sign, value, and none or space. There must be one of each in the pattern. The none and space enums may not appear in the first field and space may not appear in the final field.

The parts of a money string must appear in the order indicated by the fields of the pattern. The symbol field indicates that the value of curr_symbol() may be present. The sign field indicates that the value of positive_sign() or negative_sign() must be present. The value field indicates that the absolute value of the money amount is present. none indicates 0 or more whitespace characters, except at the end, where it permits no whitespace. space indicates that 1 or more whitespace characters must be present.

For example, for the US locale and pos_format() pattern {symbol,sign,value,none}, curr_symbol() == '$' positive_sign() == '+', and value 10.01, and options set to force the symbol, the corresponding string is $+10.01.

Returns:
Pattern for money values.

Definition at line 1151 of file locale_facets_nonio.h.

References std::moneypunct::do_neg_format().

string_type std::moneypunct::negative_sign ( ) const [inline, inherited]

Return negative sign string.

This function returns a string_type to use as a sign for negative amounts. It does so by returning returning moneypunct<char_type>::do_negative_sign().

If the return value contains more than one character, the first character appears in the position indicated by neg_format() and the remainder appear at the end of the formatted string.

Returns:
string_type representing a negative sign.

Definition at line 1095 of file locale_facets_nonio.h.

References std::moneypunct::do_negative_sign().

pattern std::moneypunct::pos_format ( ) const [inline, inherited]

Return pattern for money values.

This function returns a pattern describing the formatting of a positive or negative valued money amount. It does so by returning returning moneypunct<char_type>::do_pos_format() or moneypunct<char_type>::do_neg_format().

The pattern has 4 fields describing the ordering of symbol, sign, value, and none or space. There must be one of each in the pattern. The none and space enums may not appear in the first field and space may not appear in the final field.

The parts of a money string must appear in the order indicated by the fields of the pattern. The symbol field indicates that the value of curr_symbol() may be present. The sign field indicates that the value of positive_sign() or negative_sign() must be present. The value field indicates that the absolute value of the money amount is present. none indicates 0 or more whitespace characters, except at the end, where it permits no whitespace. space indicates that 1 or more whitespace characters must be present.

For example, for the US locale and pos_format() pattern {symbol,sign,value,none}, curr_symbol() == '$' positive_sign() == '+', and value 10.01, and options set to force the symbol, the corresponding string is $+10.01.

Returns:
Pattern for money values.

Definition at line 1147 of file locale_facets_nonio.h.

References std::moneypunct::do_pos_format().

string_type std::moneypunct::positive_sign ( ) const [inline, inherited]

Return positive sign string.

This function returns a string_type to use as a sign for positive amounts. It does so by returning returning moneypunct<char_type>::do_positive_sign().

If the return value contains more than one character, the first character appears in the position indicated by pos_format() and the remainder appear at the end of the formatted string.

Returns:
string_type representing a positive sign.

Definition at line 1078 of file locale_facets_nonio.h.

References std::moneypunct::do_positive_sign().

char_type std::moneypunct::thousands_sep ( ) const [inline, inherited]

Return thousands separator character.

This function returns a char_type to use as a thousands separator. It does so by returning returning moneypunct<char_type>::do_thousands_sep().

Returns:
char_type representing a thousands separator.

Definition at line 1018 of file locale_facets_nonio.h.

References std::moneypunct::do_thousands_sep().


Member Data Documentation

locale::id std::moneypunct::id [static, inherited]

Numpunct facet id.

Definition at line 953 of file locale_facets_nonio.h.

const bool std::moneypunct_byname::intl [static]

This value is provided by the standard, but no reason for its existence.

Reimplemented from std::moneypunct< _CharT, _Intl >.

Definition at line 1330 of file locale_facets_nonio.h.


The documentation for this class was generated from the following file: