Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::messages

      From cppreference.com
      <cpp‎ |locale
       
       
       
      Localization library
       
       
      Defined in header<locale>
      template<class CharT>
      class messages;

      Class templatestd::messages is a standard locale facet that encapsulates retrieval of strings from message catalogs, such as the ones provided by GNUgettext or by POSIXcatgets.

      The source of the messages is implementation-defined.

      std-messages-inheritance.svg

      Contents

      [edit]Specializations

      The standard library is guaranteed to provide the following specializations (they arerequired to be implemented by any locale object):

      Defined in header<locale>
      std::messages<char> accesses narrow string message catalog
      std::messages<wchar_t> accesses wide string message catalog

      [edit]Nested types

      Type Definition
      char_typeCharT
      string_typestd::basic_string<CharT>

      [edit]Data members

      Member Description
      std::locale::idid[static] the identifier of thefacet

      [edit]Member functions

      constructs a newmessages facet
      (public member function)
      destructs amessages facet
      (protected member function)
      invokesdo_open
      (public member function)[edit]
      invokesdo_get
      (public member function)[edit]
      invokesdo_close
      (public member function)[edit]

      [edit]Protected member functions

      [virtual]
      opens a named message catalog
      (virtual protected member function)[edit]
      [virtual]
      retrieves a message from an open message catalog
      (virtual protected member function)[edit]
      [virtual]
      closes a message catalog
      (virtual protected member function)[edit]

      Inherited fromstd::messages_base

      Nested types

      Type Definition
      catalog an unspecified signed integer type

      [edit]See also

      defines messages catalog type
      (class)[edit]
      represents the system-suppliedstd::messages for the named locale
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/locale/messages&oldid=178044"

      [8]ページ先頭

      ©2009-2025 Movatter.jp