ゴミ箱
|
#include <utf8_checker.hpp>
Public Member Functions | |
void | reset () |
bool | finish () |
bool | write (std::uint8_t const *in, std::size_t size) |
template<class ConstBufferSequence > | |
bool | write (ConstBufferSequence const &bs) |
A UTF8 validator.
This validator can be used to check if a buffer containing UTF8 text is valid. The write function may be called incrementally with segmented UTF8 sequences. The finish function determines if all processed text is valid.
bool boost::beast::websocket::detail::utf8_checker_t< _ >::finish | ( | ) |
Check that all processed text is valid utf8
void boost::beast::websocket::detail::utf8_checker_t< _ >::reset | ( | ) |
Prepare to process text as valid utf8
bool boost::beast::websocket::detail::utf8_checker_t< _ >::write | ( | std::uint8_t const * | in, |
std::size_t | size | ||
) |
Check if text is valid UTF8
true
if the text is valid utf8 or false otherwise. bool boost::beast::websocket::detail::utf8_checker_t< _ >::write | ( | ConstBufferSequence const & | bs | ) |
Check if text is valid UTF8
true
if the text is valid utf8 or false otherwise.