1234567module juptune.data.utf8;
Result utf8Validate(
alias AlgorithmT = Utf8DefaultAlgorithm
)(
const void[] input
);
Validates that the entirety of the given input is a correct, well-formed UTF-8 string.
Utf8Error.invalid, Utf8Error.tooShort, Utf8Error.tooLong, Utf8Error.overlong, Utf8Error.tooLarge, Utf8Error.surrogate, and Utf8Error.eof. Please see their documentation on what conditions trigger them.
A non-errorful Resultif inputis a valid UTF-8 string, otherwise a Resultroughly specifying why inputis invalid.