ladybird/Libraries/LibWeb/Encoding
Shannon Booth 7b0dd6ab30 LibTextCodec: Use encoding_rs for legacy codecs
Replace the generated C++ legacy codec implementations with a
small Rust wrapper around encoding_rs.

This keeps the existing LibTextCodec API while moving label lookup,
legacy decode/encode, validation, and streaming decoder state to Rust.
The generated index data and generator are no longer needed.

It also fixes several TextDecoder EOF cases due to a more correct
implementation. encoding_rs finalizes decoders according to the
Encoding Standard, so incomplete UTF-8/Big5 tails and malformed
UTF-16 surrogate tails produce the required single replacement at
end-of-queue instead of being dropped, buffered, or double-counted
by our old hand-written decoders.
2026-06-20 21:56:43 +02:00
..
TextDecoder.cpp LibWeb/Bindings: Generate buffer typedefs as variants 2026-05-30 11:22:08 +02:00
TextDecoder.h LibWeb/Bindings: Generate buffer typedefs as variants 2026-05-30 11:22:08 +02:00
TextDecoder.idl LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderCommon.cpp LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderCommon.h LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderCommon.idl LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoderStream.cpp LibTextCodec: Use encoding_rs for legacy codecs 2026-06-20 21:56:43 +02:00
TextDecoderStream.h LibTextCodec: Use encoding_rs for legacy codecs 2026-06-20 21:56:43 +02:00
TextDecoderStream.idl LibWeb: Implement TextDecoderStream 2026-04-28 19:17:09 +02:00
TextEncoder.cpp LibWeb: Port a bunch of GC::Root to GC::Ref / GC::Ptr 2026-05-26 21:43:55 +02:00
TextEncoder.h LibWeb: Port a bunch of GC::Root to GC::Ref / GC::Ptr 2026-05-26 21:43:55 +02:00
TextEncoder.idl LibWeb/Bindings: Remove GenerateAsRequired handling from IDL generator 2026-05-26 21:43:57 +02:00
TextEncoderCommon.cpp LibWeb: Extract the TextEncoderCommon mixin to its own IDL file 2025-02-07 11:04:46 -05:00
TextEncoderCommon.h LibWeb: Extract the TextEncoderCommon mixin to its own IDL file 2025-02-07 11:04:46 -05:00
TextEncoderCommon.idl LibWeb: Extract the TextEncoderCommon mixin to its own IDL file 2025-02-07 11:04:46 -05:00
TextEncoderStream.cpp LibWeb/Bindings: Emit one bindings header and cpp per IDL 2026-04-21 07:36:13 +02:00
TextEncoderStream.h LibWeb: Implement TextEncoderStream 2025-02-07 11:04:46 -05:00
TextEncoderStream.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +02:00