1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:34:57 +00:00
serenity/Userland/Libraries/LibTextCodec
Nico Weber 3423b54eb9 LibTextCodec: Make utf-16be and utf-16le codecs actually work
There were two problems:

1. They didn't handle surrogates
2. They used signed chars, leading to eg 0x00e4 being treated as 0xffe4

Also add a basic test that catches both issues.
There's some code duplication with Utf16CodePointIterator::operator*(),
but let's get things working first.
2023-01-22 21:30:44 +00:00
..
CMakeLists.txt Everywhere: Explicitly link all binaries against the LibC target 2022-11-01 14:49:09 +00:00
Decoder.cpp LibTextCodec: Make utf-16be and utf-16le codecs actually work 2023-01-22 21:30:44 +00:00
Decoder.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00