48 if( (
byte & 0xC0) == 0x80 )
69 if( (
byte & 0x80) == 0x00)
74 else if( (
byte & 0xE0) == 0xC0)
80 else if( (
byte & 0xF0) == 0xE0)
86 else if( (
byte & 0xF8) == 0xF0)
92 else if( (
byte & 0xFC) == 0xF8)
98 else if( (
byte & 0xFE) == 0xFC)
155 (
byte & 0xE0) == 0x80 )
158 (
byte & 0xF0) == 0x80 )
161 (
byte & 0xF8) == 0x80 )
164 (
byte & 0xFC) == 0x80 )
171 if(
byte == 0xC0 ||
byte == 0xC1 )
175 else if(
byte == 0xE0 )
179 else if(
byte == 0xF0 )
Helper class for checking UTF-8 byte sequence during parsing URI or incoming byte stream.
void validate_current_symbol() noexcept
RESTINIO_NODISCARD bool finalized() const noexcept
RESTINIO_NODISCARD bool process_byte(std::uint8_t byte) noexcept
std::uint32_t m_current_symbol
void check_overlong(std::uint8_t byte) noexcept
RESTINIO_NODISCARD std::uint32_t current_symbol() const noexcept
std::size_t m_current_symbol_rest_bytes
Detection of compiler version and absence of various features.
#define RESTINIO_NODISCARD
unsigned int byte(digest_t::value_type v)