ladybird/Libraries/LibTextCodec
Andreas Kling c92079893a LibTextCodec: Match UTF-8 replacement handling
Consume truncated UTF-8 tails as one malformed sequence while preserving
existing behavior for encoded surrogate code points. This keeps lazy
SourceCode decoding and bytecode cache source hashing aligned with eager
source text decoding for invalid cached script source bytes.

Continue stripping an initial UTF-8 byte order mark in
UTF8Decoder::to_utf8() so HTML parsing keeps matching the previous
String-based implementation. Cover the shared decoder behavior and the
TextDecoder API surface.
2026-05-18 09:18:35 +02:00
..
CMakeLists.txt LibTextCodec: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
Decoder.cpp LibTextCodec: Match UTF-8 replacement handling 2026-05-18 09:18:35 +02:00
Decoder.h LibTextCodec: Allow processing decoded UTF-16 code points 2026-05-18 09:18:35 +02:00
Encoder.cpp LibTextCodec: Update GB18030 for GB18030-2022 and import WPT tests 2026-05-09 11:44:42 +02:00
Encoder.h LibTextEncoder/LibURL: Cleanup includes 2026-02-26 18:31:57 +01:00
Forward.h LibTextCodec: Add streaming decoder 2026-04-29 04:12:44 +02:00
indexes.json LibTextCodec: Update GB18030 for GB18030-2022 and import WPT tests 2026-05-09 11:44:42 +02:00