ゴミ箱
Public Member Functions | List of all members
boost::beast::websocket::detail::utf8_checker_t< class > Class Template Reference

#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)
 

Detailed Description

template<class = void>
class boost::beast::websocket::detail::utf8_checker_t< class >

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.

Member Function Documentation

template<class _ >
bool boost::beast::websocket::detail::utf8_checker_t< _ >::finish ( )

Check that all processed text is valid utf8

template<class _ >
void boost::beast::websocket::detail::utf8_checker_t< _ >::reset ( )

Prepare to process text as valid utf8

template<class _ >
bool boost::beast::websocket::detail::utf8_checker_t< _ >::write ( std::uint8_t const *  in,
std::size_t  size 
)

Check if text is valid UTF8

Returns
true if the text is valid utf8 or false otherwise.
template<class _ >
template<class ConstBufferSequence >
bool boost::beast::websocket::detail::utf8_checker_t< _ >::write ( ConstBufferSequence const &  bs)

Check if text is valid UTF8

Returns
true if the text is valid utf8 or false otherwise.

The documentation for this class was generated from the following file: