Example #1
0
locale basic_ios<_CharT, _Traits>::imbue(const locale& __loc)
{
    locale __tmp = ios_base::imbue(__loc);

    if (_M_streambuf)
        _M_streambuf->pubimbue(__loc);

    // no throwing here
    this->_M_cached_ctype = __loc._M_get_facet(ctype<char_type>::id) ;
    this->_M_cached_numpunct = __loc._M_get_facet(numpunct<char_type>::id) ;
    this->_M_cached_grouping = ((numpunct<char_type>*)_M_cached_numpunct)->grouping() ;
    return __tmp;
}
Example #2
0
File: _ios.c Project: RenEvo/dead6
locale basic_ios<_CharT, _Traits>::imbue(const locale& __loc) {
  locale __tmp = ios_base::imbue(__loc);
  _STLP_TRY {
    if (_M_streambuf)
      _M_streambuf->pubimbue(__loc);

    // no throwing here
    this->_M_cached_ctype = __loc._M_get_facet(ctype<char_type>::id);
    this->_M_cached_numpunct = __loc._M_get_facet(numpunct<char_type>::id);
    this->_M_cached_grouping = ((numpunct<char_type>*)_M_cached_numpunct)->grouping();
  }
  _STLP_CATCH_ALL {
    __tmp = ios_base::imbue(__tmp);
    _M_handle_exception(ios_base::failbit);
  }
  return __tmp;
}