summaryrefslogtreecommitdiff
path: root/Tests/LibTextCodec
AgeCommit message (Collapse)Author
2023-02-19LibTextCodec+Everywhere: Port Decoders to new StringsSam Atkins
2023-01-22LibTextCodec: Make utf-16be and utf-16le codecs actually workNico Weber
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.
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-03-29Tests: Add a basic UTF-8 to UTF-8 LibTextCodec testKarol Kosek