Exemple #1
0
moneypunct_byname<wchar_t, false>::moneypunct_byname(const char * name,
                                                     size_t refs, _Locale_name_hint* hint):
  moneypunct<wchar_t, false>(refs), _M_monetary(_STLP_PRIV __acquire_monetary(name, hint)) {
  if (!_M_monetary)
    locale::_M_throw_runtime_error() ;
  _STLP_PRIV _Init_monetary_formats(_M_pos_format, _M_neg_format, _M_monetary);
}
Exemple #2
0
moneypunct_byname<wchar_t, true>::moneypunct_byname(const char * name,
						 size_t refs):
  moneypunct<wchar_t, true>(refs),
  _M_monetary(__acquire_monetary(name))
{
  if (!_M_monetary)
    locale::_M_throw_runtime_error();
  _Init_monetary_formats(_M_pos_format, _M_neg_format, _M_monetary);
}
Exemple #3
0
moneypunct_byname<char, false>::moneypunct_byname(const char * name,
                                                  size_t refs)
    : moneypunct<char, false>(refs) {
  if (!name)
    locale::_M_throw_on_null_name();

  int __err_code;
  char buf[_Locale_MAX_SIMPLE_NAME];
  _M_monetary = _STLP_PRIV __acquire_monetary(name, buf, 0, &__err_code);
  if (!_M_monetary)
    locale::_M_throw_on_creation_failure(__err_code, name, "moneypunct");

  _STLP_PRIV _Init_monetary_formats(_M_pos_format, _M_neg_format, _M_monetary);
}
Exemple #4
0
moneypunct_byname<wchar_t, false>::moneypunct_byname(_Locale_monetary *__mon)
  : _M_monetary(__mon) {
  _STLP_PRIV _Init_monetary_formats(_M_pos_format, _M_neg_format, _M_monetary);
}
moneypunct<char, false>::moneypunct(size_t __refs) : _BaseFacet(__refs) {
    _Init_monetary_formats(_M_pos_format, _M_neg_format);
}
Exemple #6
0
moneypunct<wchar_t, false>::moneypunct(size_t __refs) : locale::facet(__refs)
{ _Init_monetary_formats(_M_pos_format, _M_neg_format); }