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}(...); ```
https://github.com/lemire/simdutf/blob/19a0db4cc5938abdf1893ae58ae472648ceff8fd/include/simdutf/implementation.h#L19
I'd suggest to have also variant of
validatereturning the number of bytes/codepoints consumed. Like: