2 ms·
UTF-8 vs UTF-16 vs UTF-32 encoding/decoding are just simple bit-twiddling transformations [1], you don't need a 'complete UNICODE implemenentation' for this (an
by flohofwoe 4y ago
UTF-8 vs UTF-16 vs UTF-32 encoding/decoding are just simple bit-twiddling transformations [1], you don't need a 'complete UNICODE implemenentation' for this (and ISO/IEC be damned, those conversion functions would still be useful to have in the C and C++ stdlibs without full 'UNICODE support' - which is hardly needed anyway, unless you're doing 'actual' text processing or need to write your own text renderer)
[1] https://github.com/llvm-mirror/llvm/blob/master/lib/Support/ConvertUTF.cpp https://github.com/llvm-mirror/llvm/blob/master/lib/Support/...