ladybird/Libraries/LibWeb/Encoding
Andreas Kling d48db4e881 LibWeb: Implement TextDecoderStream
This is the streaming counterpart to TextDecoder, used by sites that
process responses with `pipeThrough(new TextDecoderStream())` or that
otherwise consume a Response body as decoded text.

The transform algorithm appends each chunk's bytes to the I/O queue
and decodes them via the underlying LibTextCodec decoder, holding back
any trailing partial UTF-8 sequence so chunk boundaries don't produce
spurious replacement characters. The flush algorithm emits a single
replacement character if a partial sequence was still pending. For
non-UTF-8 encodings the underlying decoders are stateless across
calls, so each chunk is decoded in full with nothing carried over.
2026-04-28 19:17:09 +02:00
..
TextDecoder.cpp LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +02:00
TextDecoder.h LibWeb: Extract TextDecoderCommon mixin into its own files 2026-04-28 19:17:09 +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 LibWeb: Implement TextDecoderStream 2026-04-28 19:17:09 +02:00
TextDecoderStream.h LibWeb: Implement TextDecoderStream 2026-04-28 19:17:09 +02:00
TextDecoderStream.idl LibWeb: Implement TextDecoderStream 2026-04-28 19:17:09 +02:00
TextEncoder.cpp LibWeb/Bindings: Pass exact typed array types through WebIDL bindings 2026-04-26 17:50:58 +02:00
TextEncoder.h LibWeb/Bindings: Pass exact typed array types through WebIDL bindings 2026-04-26 17:50:58 +02:00
TextEncoder.idl LibWeb+LibIDL: Remove support for #import directives during parsing 2026-04-24 20:08:29 +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