mirror of
https://github.com/RGBCube/serenity
synced 2025-10-24 05:42:07 +00:00
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. |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Decoder.cpp | ||
| Decoder.h | ||