Provides streaming UTF8 validation functionality. More...
#include <utf8_validator.hpp>
Public Member Functions | |
validator () | |
Construct and initialize the validator. More... | |
bool | consume (uint8_t byte) |
Advance the state of the validator with the next input byte. More... | |
template<typename iterator_type > | |
bool | decode (iterator_type begin, iterator_type end) |
Advance validator state with input from an iterator pair. More... | |
bool | complete () |
Return whether the input sequence ended on a valid utf8 codepoint. More... | |
void | reset () |
Reset the validator to decode another message. More... | |
Provides streaming UTF8 validation functionality.
Definition at line 81 of file utf8_validator.hpp.
|
inline |
Construct and initialize the validator.
Definition at line 84 of file utf8_validator.hpp.
|
inline |
Advance the state of the validator with the next input byte.
byte | The byte to advance the validation state with |
Definition at line 91 of file utf8_validator.hpp.
References websocketpp::utf8_validator::decode().
|
inline |
Advance validator state with input from an iterator pair.
begin | Input iterator to the start of the input range |
end | Input iterator to the end of the input range |
Definition at line 105 of file utf8_validator.hpp.
References websocketpp::utf8_validator::decode().
Referenced by websocketpp::processor::hybi13< stub_config >::process_payload_bytes(), and websocketpp::utf8_validator::validate().
|
inline |
Return whether the input sequence ended on a valid utf8 codepoint.
Definition at line 124 of file utf8_validator.hpp.
References websocketpp::utf8_validator::utf8_accept.
Referenced by websocketpp::processor::hybi13< stub_config >::finalize_message(), and websocketpp::utf8_validator::validate().
|
inline |
Reset the validator to decode another message.
Definition at line 129 of file utf8_validator.hpp.
References websocketpp::utf8_validator::utf8_accept.