std::encoding_state(3cxx)

πŸ“¦
version 16-20260322 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, welcome to std::encoding_state(3cxx) β€” this is the page for std::encoding_state, and it's an extension to use iconv for dealing with character encodings. that's the whole vibe. no cap. πŸ¦‹


✨ SYNOPSIS ✨

first things first, you gotta pull in the header:

#include <codecvt_specializations.h>

πŸŽ€ Public Types πŸŽ€

  • typedef iconv_t descriptor_type β€” yeah so descriptor_type is literally just iconv_t wearing a cute nickname. πŸ’…

🌸 Public Member Functions 🌸

  • encoding_state (const char *__int, const char *__ext, int __ibom=0, int __ebom=0, int __bytes=1) β€” the main constructor, she takes an internal encoding (__int), an external encoding (__ext), and then optionally __ibom, __ebom and __bytes (which default to 0, 0 and 1 respectively). slay.
  • encoding_state (const encoding_state &__obj) β€” copy constructor, for when you want a whole other one of these that's just like __obj. 🫢
  • int character_ratio () const β€” hands you back the character ratio as an int.
  • int external_bom () const β€” gives you the external BOM as an int.
  • const std::string external_encoding () const β€” returns the external encoding as a const std::string.
  • bool good () const throw () β€” the vibe check function, fr fr. returns a bool and it's declared throw ().
  • const descriptor_type & in_descriptor () const β€” returns a const reference to the in-descriptor.
  • int internal_bom () const β€” returns the internal BOM, as an int.
  • const std::string internal_encoding () const β€” returns the internal encoding as a const std::string.
  • encoding_state & operator= (const encoding_state &__obj) β€” assignment operator, takes another encoding_state called __obj and gives you back a reference to one. iconic.
  • const descriptor_type & out_descriptor () const β€” returns a const reference to the out-descriptor. πŸ‘‘

🧚 Protected Member Functions 🧚

  • void construct (const encoding_state &__obj) β€” the construction helper, takes __obj.
  • void destroy () throw () β€” the teardown helper, and yeah it's declared throw ().
  • void init () β€” the init helper, no arguments, no notes.

πŸ“ Protected Attributes πŸ“

  • int _M_bytes β€” the bytes count, chillin' here as an int.
  • int _M_ext_bom β€” the external BOM, as an int.
  • std::string _M_ext_enc β€” the external encoding, as a std::string.
  • descriptor_type _M_in_desc β€” the in-descriptor, of type descriptor_type.
  • int _M_int_bom β€” the internal BOM, as an int.
  • std::string _M_int_enc β€” the internal encoding, as a std::string.
  • descriptor_type _M_out_desc β€” the out-descriptor, of type descriptor_type.

πŸ’œ Detailed Description πŸ’œ

so the entire point of this thing: it's an extension to use iconv for dealing with character encodings. that's the tea, that's the whole thing, main character energy from start to finish. 🌈


πŸ¦‹ Author πŸ¦‹

not a human author bestie β€” this was generated automatically by Doxygen for libstdc++ from the source code. the robots ate, honestly. πŸ’€βœ¨

and that's a wrap on std::encoding_state(3cxx) πŸ’– β€” this whole page comes to you courtesy of libstdc++, so go forth and handle your character encodings, bestie. periodt. πŸ‘‘πŸŽ€