2 ms·
There was a lot of discussion with invisible opponents in that text.. Plenty of counter-arguments but only a hint of what is this replying to. Other than that,
by theamk 5y ago
There was a lot of discussion with invisible opponents in that text.. Plenty of counter-arguments but only a hint of what is this replying to.
Other than that, it seems to present a C++ version of encoding conversion library (like iconv), but instead of handling encodings dynamically it uses C++ types. So not very good for any place with user-specified encoding (like browser or database or text editor), but can be used when the encoding is known at compile time?
I can see a few uses of it, but it seems kinda niche for all that grandiose talk about “liberation of the encoding hell”.
- aidenn0 5y agoztd::text::transcode takes an encoding type, as shown in the second example. In any event, a single switch statement turns a compile-time encoding into a run-time encoding.