123456789101112131415161718192021module juptune.data.utf8;
enum Utf8Error : int
{
///
none = 0,
/// A leading byte is simply just invalid, and can never be used to represent a valid codepoint.
invalid = 1,
/// A leading byte has too little continuation bytes.
tooShort = 2,
/// A continuation byte was found when a leading byte was expected - too many continuation bytes were used in the previous codepoint.
tooLong = 3,
/// The codepoint must be above U+7F when two bytes; U+7FF when three bytes, and U+FFFF when four bytes long.
overlong = 4,
/// The codepoint must be <= U+10FFFF.
tooLarge = 5,
/// The codepoint must not be in the range U+D800..U+DFFF.
surrogate = 6,
/// Ran out of bytes while decoding a codepoint.
eof = 7
}
A Resulterror enum.