Skip to content

API for validate #1

@WojciechMula

Description

@WojciechMula

https://github.com/lemire/simdutf/blob/19a0db4cc5938abdf1893ae58ae472648ceff8fd/include/simdutf/implementation.h#L19

I'd suggest to have also variant of validate returning the number of bytes/codepoints consumed. Like:

struct validation_result
{
   const size_t consumed_bytes;
   const size_t consumed_codepoints;
   const bool valid;
};

validation_result validate_utf{8,16}(...);

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