Skip to content

Expose an UTF-8 checking function that returns the index of the error #12168

@ghost

Description

Use case:

  • reporting the position of the error to the user

Possible candidates:

  • mark first_non_utf8_index() as public
  • change from_utf8{_owned}'s return type from Option to Result<_, uint>

Since it's possible to recover from such an error, it would also be nice if these returned all encoding errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions