std::encoding_state(3cxx)
π 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 sodescriptor_typeis literally justiconv_twearing 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,__ebomand__bytes(which default to0,0and1respectively). 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 anint.int external_bom () constβ gives you the external BOM as anint.const std::string external_encoding () constβ returns the external encoding as aconst std::string.bool good () const throw ()β the vibe check function, fr fr. returns abooland it's declaredthrow ().const descriptor_type & in_descriptor () constβ returns a const reference to the in-descriptor.int internal_bom () constβ returns the internal BOM, as anint.const std::string internal_encoding () constβ returns the internal encoding as aconst std::string.encoding_state & operator= (const encoding_state &__obj)β assignment operator, takes anotherencoding_statecalled__objand 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 declaredthrow ().void init ()β the init helper, no arguments, no notes.
π Protected Attributes π
int _M_bytesβ the bytes count, chillin' here as anint.int _M_ext_bomβ the external BOM, as anint.std::string _M_ext_encβ the external encoding, as astd::string.descriptor_type _M_in_descβ the in-descriptor, of typedescriptor_type.int _M_int_bomβ the internal BOM, as anint.std::string _M_int_encβ the internal encoding, as astd::string.descriptor_type _M_out_descβ the out-descriptor, of typedescriptor_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. ππ
π¦ where this page comes from
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu resolute: libstdc++-14-doc 14.3.0-14ubuntu1
- ubuntu resolute: libstdc++-15-doc 15.2.0-16ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- ubuntu stonking: libstdc++-14-doc 14.4.0-2ubuntu1
- ubuntu stonking: libstdc++-15-doc 15.3.0-4ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms