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::messages< _CharT > - Primary class template messages.

Author

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

                                                    libstdc++                      std::messages<_CharT>(3cxx)

Constructor & Destructor Documentation

template<typename_CharT>std::messages<_CharT>::messages(size_t__refs=0)[explicit]
       Constructor performs initialization. This is the constructor provided by the standard.

       Parameters__refs Passed to the base facet class.

   template<typename_CharT>std::messages<_CharT>::messages(__c_locale__cloc,constchar*__s,size_t__refs=0)[explicit]
       Internal constructor. Not for general use. This is a constructor for use by the library itself to set up
       new locales.

       Parameters__cloc The C locale.
           __s The name of a locale.
           __refs Refcount to pass to the base class.

   template<typename_CharT>std::messages<_CharT>::~messages()[protected],[virtual]
       Destructor.

Detailed Description

template<typename_CharT>
       class std::messages< _CharT >"Primary class template messages.

       This facet encapsulates the code to retrieve messages from message catalogs. The only thing defined by
       the standard for this facet is the interface. All underlying functionality is implementation-defined.

       This library currently implements 3 versions of the message facet. The first version (gnu) is a wrapper
       around gettext, provided by libintl. The second version (ieee) is a wrapper around catgets. The final
       version (default) does no actual translation. These implementations are only provided for char and
       wchar_t instantiations.

       The messages template uses protected virtual functions to provide the actual results. The public
       accessors forward the call to the virtual functions. These virtual functions are hooks for developers to
       implement the behavior they require from the messages facet.

Member Data Documentation

template<typename_CharT>locale::idstd::messages<_CharT>::id[static]
       Numpunct facet id.

Member Function Documentation

stringstd::messages<char>::do_get(catalog,int,int,conststring&)const[protected]
       Specializations for required instantiations.

Member Typedef Documentation

template<typename_CharT>typedef_CharTstd::messages<_CharT>::char_type
       Public typedefs.

   template<typename_CharT>typedefbasic_string<_CharT>std::messages<_CharT>::string_type
       Public typedefs.

Name

       std::messages< _CharT > - Primary class template messages.

Synopsis

       #include <locale>

       Inherits std::locale::facet, and std::messages_base.

       Inherited by std::messages_byname<_CharT>.

   PublicTypestypedef int catalogtypedef _CharT char_type
               Public typedefs.
           typedefbasic_string< _CharT > string_type
               Public typedefs.

   PublicMemberFunctionsmessages (__c_locale __cloc, const char *__s, size_t __refs=0)
           Internal constructor. Not for general use.
       messages (size_t __refs=0)
           Constructor performs initialization.
       voidclose (catalog __c) const
       string_typeget (catalog __c, int __set, int __msgid, const string_type &__s) const
       catalog open (const basic_string< char > &, const locale &, const char *) const
       catalog open (const basic_string< char > &__s, const locale &__loc) const

   StaticPublicAttributesstaticlocale::idid
           Numpunct facet id.

   ProtectedMemberFunctionsvirtual~messages ()
           Destructor.
       string_type_M_convert_from_char (char *) const
       char * _M_convert_to_char (const string_type &__msg) const
       virtualvoiddo_close (catalog) const
       voiddo_close (catalog) const
       voiddo_close (catalog) const
       stringdo_get (catalog, int, int, const string &) const
           Specializations for required instantiations.
       virtualstring_typedo_get (catalog, int, int, const string_type &__dfault) const
       wstringdo_get (catalog, int, int, const wstring &) const
       virtual catalog do_open (const basic_string< char > &, const locale &) const
       messages< char >::catalog do_open (const basic_string< char > &, const locale &) const
       messages< wchar_t >::catalog do_open (const basic_string< char > &, const locale &) const

   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)

   ProtectedAttributes
       __c_locale _M_c_locale_messages
       const char * _M_name_messages

See Also