Freelance software grandad
software created
extended or repaired
Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations
[external][internal]codecvt.h
. The UTF16 to UTF8 is therefore called utf16utf8codecvt
, and reading a stream imbued with this facet converts from UTF16 toUTF8. Writing to such a stream converts from UTF8 toUTF16.
Facets with a name like [something]codecvt.h are byte stream encoders/decoders where [something] is an external encoding. Reading a stream imbued with base64codecvt
will un-Base64 the stream, while writing to it will Base64 everything.
The upshot of this is that some of the names of existing facets have changed in CVS - iso8859_1_utf8_codecvt
is now iso88591utf8codecvt
and utf16utf8_codecvt
is now utf8utf16codecvt
. I now this is a bit of a pain in the arse, but I do believe it will make thing clearer going forward.
Freelance software grandad
software created
extended or repaired
Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations