Skip to content
Snippets Groups Projects
Commit aca09714 authored by Ben Gamari's avatar Ben Gamari
Browse files

Add support for incremental decoding

Decoding multi-byte encodings such as UTF-8 pose difficulty for
streaming I/O as one must take care to carry the decoder state between
incoming chunks. Here we introduce `decodeUtf8With'` which exposes an
interface similar to that provided by cassava's `Data.Csv.Incremental`.
To do this, we adapt the C UTF-8 decoder to expose its automaton state
and codepoint accumulator.
parent 0fc9b4dc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment