Doxygen

Search

Doxygen

_Messages::_Messages ( bool  is_wide,
const char name 
)

Definition at line 100 of file messages.cpp.

                                                   :
  _M_message_obj(0), _M_map(0) {
  if (!name)
    locale::_M_throw_on_null_name();

  int __err_code;
  char buf[_Locale_MAX_SIMPLE_NAME];
  _M_message_obj = _STLP_PRIV __acquire_messages(name, buf, 0, &__err_code);
  if (!_M_message_obj)
    locale::_M_throw_on_creation_failure(__err_code, name, "messages");

  if (is_wide)
    _M_map = new _Catalog_locale_map;
}