STD::MESSAGES(3cxx)
okay so welcome to the std::messages< _CharT >(3cxx) manual page, bestie β this is the C++ locale facet that is literally called βPrimary class template messages,β and it's giving main character energy. πβ¨
π NAME π
std::messages< _CharT > β Primary class template messages. That's the whole name vibe. π
β¨ SYNOPSIS β¨
#include <locale>
It inherits std::locale::facet, and std::messages_base. It's inherited by std::messages_byname< _CharT >. Family tree is giving very structured, very C++ slay. π
π Public Types π
typedef int catalogβ acatalogis literally anint, no cap.typedef _CharT char_typeβ public typedef, iconic behavior.typedef basic_string< _CharT > string_typeβ public typedef, also iconic behavior.
π Public Member Functions π
messages (__c_locale __cloc, const char *__s, size_t __refs=0)β internal constructor. Not for general use. π«Άmessages (size_t __refs=0)β constructor performs initialization.void close (catalog __c) constβ exact signature, no extra description on the page. πstring_type get (catalog __c, int __set, int __msgid, const string_type &__s) constβ exact signature, no extra description on the page.catalog open (const basic_string< char > &, const locale &, const char *) constβ exact signature, no extra description on the page.catalog open (const basic_string< char > &__s, const locale &__loc) constβ exact signature, no extra description on the page.
π Static Public Attributes π
static locale::id idβ Numpunct facet id. Yes, that's what the page says, bestie. π
π Protected Member Functions π
virtual ~messages ()β Destructor.string_type _M_convert_from_char (char *) constβ signature only, no extra note.char * _M_convert_to_char (const string_type &__msg) constβ signature only, no extra note.virtual void do_close (catalog) constβ signature only.void do_close (catalog) constβ yep, same signature again; the page really lists it.void do_close (catalog) constβ and a third time. Not a typo on our end, bestie. πstring do_get (catalog, int, int, const string &) constβ Specializations for required instantiations.virtual string_type do_get (catalog, int, int, const string_type &__dfault) constβ signature only.wstring do_get (catalog, int, int, const wstring &) constβ signature only.virtual catalog do_open (const basic_string< char > &, const locale &) constβ signature only.messages< char >::catalog do_open (const basic_string< char > &, const locale &) constβ signature only.messages< wchar_t >::catalog do_open (const basic_string< char > &, const locale &) constβ signature only.
π§ Static Protected Member Functions π§
static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw ()β signature only.static void _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0)β signature only.static void _S_destroy_c_locale (__c_locale &__cloc)β signature only.static __c_locale _S_get_c_locale ()β signature only.static const char * _S_get_c_name () throw ()β signature only.static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char *__s)β signature only.
π¦ Protected Attributes π¦
__c_locale _M_c_locale_messagesβ protected attribute, no extra description.const char * _M_name_messagesβ protected attribute, no extra description.
π Detailed Description π
template<typename _CharT>
class std::messages< _CharT >"Primary class template messages.
That stray " before Primary is literally in the original template line, so we're keeping it. πβ¨
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 Typedef Documentation πΈ
template<typename _CharT > typedef _CharT std::messages< _CharT >::char_typeβ Public typedefs. Cute, brief, iconic. πtemplate<typename _CharT > typedef basic_string<_CharT> std::messages< _CharT >::string_typeβ Public typedefs. Also cute, also iconic.
π 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.__refsβ Passed to the base facet class.
template<typename _CharT > std::messages< _CharT >::messages (__c_locale __cloc, const char * __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.__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.
π Member Function Documentation π
string std::messages< char >::do_get (catalog, int, int, const string &) const [protected]β Specializations for required instantiations.
β Member Data Documentation β
template<typename _CharT > locale::id std::messages< _CharT >::id [static]β Numpunct facet id.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
That's the footer tea, bestie: the source/version energy is libstdc++, and the date slot is basically std::messages< _CharT >(3cxx) β no extra date drama on this page. ππ«Άβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms