2
3
6
7
8
9
10
14#include <restinio/compiler_features.hpp>
29
30
31
49
50
51
52
66 else if( 0xC0u == (byte & 0xE0u) )
71 else if( 0xE0u == (byte & 0xF0u) )
76 else if( 0xF0u == (byte & 0xF8u) )
101 if( 0x80u == (byte & 0xC0u) )
128 if( 0x80u == (byte & 0xC0u) )
144 if( 0x80u == (byte & 0xC0u) )
160 if( 0x80u == (byte & 0xC0u) )
190 if( 0x80u == (byte & 0xC0u) )
206 if( 0x80u == (byte & 0xC0u) )
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
312
313
322
323
332
333
334
335
336
337
338
339
Helper class for checking UTF-8 byte sequence during parsing URI or incoming byte stream.
void on_fourth_of_four(std::uint8_t byte) noexcept
bool process_byte(std::uint8_t byte) noexcept
void on_third_of_three(std::uint8_t byte) noexcept
void on_second_of_three(std::uint8_t byte) noexcept
state_t
Enumeration of all possible checker states.
bool finalized() const noexcept
void on_second_of_four(std::uint8_t byte) noexcept
void on_third_of_four(std::uint8_t byte) noexcept
std::uint32_t current_symbol() const noexcept
void on_first_byte(std::uint8_t byte) noexcept
std::uint32_t m_current_symbol
The current UNICODE symbol.
void on_second_of_two(std::uint8_t byte) noexcept
state_t m_state
The current state of the checker.