logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::moneypunct_byname< _CharT, _Intl > - class moneypunct_byname [22.2.6.4].

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++      std::moneypunct_byname<_CharT,_Intl>(3cxx)

Detailed Description

template<typename_CharT,bool_Intl>
       class std::moneypunct_byname< _CharT, _Intl >"class moneypunct_byname [22.2.6.4].

Member Data Documentation

template<typename_CharT,bool_Intl>locale::idstd::moneypunct<_CharT,_Intl>::id[static],[inherited]

       Numpunct facet id.

Member Function Documentation

template<typename_CharT,bool_Intl>string_typestd::moneypunct<_CharT,_Intl>::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().

       Returnsstring_type representing a currency symbol.

       References std::moneypunct<_CharT,_Intl>::do_curr_symbol().

   template<typename_CharT,bool_Intl>char_typestd::moneypunct<_CharT,_Intl>::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().

       Returnschar_type representing a decimal point.

       References std::moneypunct<_CharT,_Intl>::do_decimal_point().

   template<typename_CharT,bool_Intl>virtualstring_typestd::moneypunct<_CharT,_Intl>::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.

       Seealso
           curr_symbol() for details.

       Returnsstring_type representing a currency symbol.

       Referenced by std::moneypunct<_CharT,_Intl>::curr_symbol().

   template<typename_CharT,bool_Intl>virtualchar_typestd::moneypunct<_CharT,_Intl>::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.

       Returnschar_type representing a decimal point.

       Referenced by std::moneypunct<_CharT,_Intl>::decimal_point().

   template<typename_CharT,bool_Intl>virtualintstd::moneypunct<_CharT,_Intl>::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.

       Seealso
           frac_digits() for details.

       Returns
           Number of digits in amount fraction.

       Referenced by std::moneypunct<_CharT,_Intl>::frac_digits().

   template<typename_CharT,bool_Intl>virtualstringstd::moneypunct<_CharT,_Intl>::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.

       Seealso
           grouping() for details.

       Returns
           String representing grouping specification.

       Referenced by std::moneypunct<_CharT,_Intl>::grouping().

   template<typename_CharT,bool_Intl>virtualpatternstd::moneypunct<_CharT,_Intl>::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.

       Seealso
           neg_format() for details.

       Returns
           Pattern for money values.

       Referenced by std::moneypunct<_CharT,_Intl>::neg_format().

   template<typename_CharT,bool_Intl>virtualstring_typestd::moneypunct<_CharT,_Intl>::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.

       Seealso
           negative_sign() for details.

       Returnsstring_type representing a negative sign.

       Referenced by std::moneypunct<_CharT,_Intl>::negative_sign().

   template<typename_CharT,bool_Intl>virtualpatternstd::moneypunct<_CharT,_Intl>::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.

       Seealso
           pos_format() for details.

       Returns
           Pattern for money values.

       Referenced by std::moneypunct<_CharT,_Intl>::pos_format().

   template<typename_CharT,bool_Intl>virtualstring_typestd::moneypunct<_CharT,_Intl>::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.

       Seealso
           positive_sign() for details.

       Returnsstring_type representing a positive sign.

       Referenced by std::moneypunct<_CharT,_Intl>::positive_sign().

   template<typename_CharT,bool_Intl>virtualchar_typestd::moneypunct<_CharT,_Intl>::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.

       Returnschar_type representing a thousands separator.

       Referenced by std::moneypunct<_CharT,_Intl>::thousands_sep().

   template<typename_CharT,bool_Intl>intstd::moneypunct<_CharT,_Intl>::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.

       References std::moneypunct<_CharT,_Intl>::do_frac_digits().

   template<typename_CharT,bool_Intl>stringstd::moneypunct<_CharT,_Intl>::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.

       References std::moneypunct<_CharT,_Intl>::do_grouping().

   template<typename_CharT,bool_Intl>patternstd::moneypunct<_CharT,_Intl>::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.

       References std::moneypunct<_CharT,_Intl>::do_neg_format().

   template<typename_CharT,bool_Intl>string_typestd::moneypunct<_CharT,_Intl>::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.

       Returnsstring_type representing a negative sign.

       References std::moneypunct<_CharT,_Intl>::do_negative_sign().

   template<typename_CharT,bool_Intl>patternstd::moneypunct<_CharT,_Intl>::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.

       References std::moneypunct<_CharT,_Intl>::do_pos_format().

   template<typename_CharT,bool_Intl>string_typestd::moneypunct<_CharT,_Intl>::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.

       Returnsstring_type representing a positive sign.

       References std::moneypunct<_CharT,_Intl>::do_positive_sign().

   template<typename_CharT,bool_Intl>char_typestd::moneypunct<_CharT,_Intl>::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.

       References std::moneypunct<_CharT,_Intl>::do_thousands_sep().

Name

       std::moneypunct_byname< _CharT, _Intl > - class moneypunct_byname [22.2.6.4].

Synopsis

       #include <locale>

       Inherits std::moneypunct<_CharT,_Intl>.

   PublicTypes
       enum { _S_minus, _S_zero, _S_end }
       typedef __moneypunct_cache< _CharT, _Intl > __cache_typetypedef _CharT char_type
       enum part { none, space, symbol, sign, value }
       typedefbasic_string< _CharT > string_typePublicMemberFunctionsmoneypunct_byname (const char *__s, size_t __refs=0)
       moneypunct_byname (const string &__s, size_t __refs=0)
       string_typecurr_symbol () const
           Return currency symbol string.
       char_type decimal_point () const
           Return decimal point character.
       int frac_digits () const
           Return number of digits in fraction.
       stringgrouping () const
           Return grouping specification.
       string_typenegative_sign () const
           Return negative sign string.
       string_typepositive_sign () const
           Return positive sign string.
       char_type thousands_sep () const
           Return thousands separator character.

           pattern pos_format () const
               Return pattern for money values.
           pattern neg_format () const
               Return pattern for money values.

   StaticPublicMemberFunctionsstatic pattern _S_construct_pattern (char __precedes, char __space, char __posn)  throw ()

   StaticPublicAttributesstatic const char * _S_atomsstatic const pattern _S_default_patternstaticlocale::idid
           Numpunct facet id.
       static const bool intlProtectedMemberFunctionsvoid_M_initialize_moneypunct (__c_locale __cloc=0, const char *__name=0)
       void_M_initialize_moneypunct (__c_locale, const char *)
       void_M_initialize_moneypunct (__c_locale, const char *)
       void_M_initialize_moneypunct (__c_locale, const char *)
       void_M_initialize_moneypunct (__c_locale, const char *)
       virtualstring_typedo_curr_symbol () const
           Return currency symbol string.
       virtual char_type do_decimal_point () const
           Return decimal point character.
       virtual int do_frac_digits () const
           Return number of digits in fraction.
       virtualstringdo_grouping () const
           Return grouping specification.
       virtual pattern do_neg_format () const
           Return pattern for money values.
       virtualstring_typedo_negative_sign () const
           Return negative sign string.
       virtual pattern do_pos_format () const
           Return pattern for money values.
       virtualstring_typedo_positive_sign () const
           Return positive sign string.
       virtual char_type do_thousands_sep () const
           Return thousands separator character.

   StaticProtectedMemberFunctionsstatic __c_locale _S_clone_c_locale (__c_locale &__cloc)  throw ()
       staticvoid_S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0)
       staticvoid_S_destroy_c_locale (__c_locale &__cloc)
       static __c_locale _S_get_c_locale ()
       static const char * _S_get_c_name ()  throw ()
       static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char *__s)

See Also