streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Implement writeCharUtf8Rev'

Open adithyaov opened this issue 2 years ago • 0 comments

We can use the same code as we are using in ParseCharUtf8WithD. We need to buffer at most 2 chars in the Fold state, as soon as we see the third char we can either decode or fail. As soon as we have sufficient number of chars required for decoding we can run the state machine as in ParseCharUtf8WithD.

We need to find that starter from the end and forward parse.

adithyaov avatar Mar 15 '22 10:03 adithyaov