12345678module juptune.data.utf8;
Result utf8Length(
alias AlgorithmT = Utf8DefaultAlgorithm
)(
const void[] input,
size_t length
);
Helper function to easily count the amount of codepoints within the given UTF-8 input.
This function uses utf8DecodeNextunder the hood, so validation is also performed.
Anything that utf8DecodeNextthrows.
A non-errorful Resultif inputis a valid UTF-8 string, otherwise a Resultroughly specifying why inputis invalid.