Skip to content

Add functions that suggests where to continue after invalid UTF-8/UTF-16 sequences #2

Description

@tormol

...To make it easy to continue if you're ignoring errors or inserting replacement characters.

This requires an error overhaul as many errors already include a position, and having it in two places would be dumb.
On the other hand, if we return (*Error,usize) the errors Display impl cannot use the usize.

Idea:struct SomeError<E>{err:E, len:usize}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions