Motor OpenGL
Cargando...
Buscando...
Nada coincide
Referencia de la plantilla de la clase detail::lexer< BasicJsonType, InputAdapterType >

lexical analysis Más...

#include <json.hpp>

Métodos públicos

constexpr number_integer_t get_number_integer () const noexcept
 return integer value
constexpr number_unsigned_t get_number_unsigned () const noexcept
 return unsigned integer value
constexpr number_float_t get_number_float () const noexcept
 return floating-point value
string_t & get_string ()
 return current string value (implicitly resets the token; useful only once)
constexpr position_t get_position () const noexcept
 return position of last read token
std::string get_token_string () const
JSON_HEDLEY_RETURNS_NON_NULL constexpr const char * get_error_message () const noexcept
 return syntax error message
bool skip_bom ()
 skip the UTF-8 byte order mark

Descripción detallada

template<typename BasicJsonType, typename InputAdapterType>
class detail::lexer< BasicJsonType, InputAdapterType >

lexical analysis

This class organizes the lexical analysis during JSON deserialization.

Documentación de funciones miembro

◆ get_token_string()

template<typename BasicJsonType, typename InputAdapterType>
std::string detail::lexer< BasicJsonType, InputAdapterType >::get_token_string ( ) const
inline

return the last read token (for errors only). Will never contain EOF (an arbitrary value that is not a valid char value, often -1), because 255 may legitimately occur. May contain NUL, which should be escaped.

◆ skip_bom()

template<typename BasicJsonType, typename InputAdapterType>
bool detail::lexer< BasicJsonType, InputAdapterType >::skip_bom ( )
inline

skip the UTF-8 byte order mark

Devuelve
true iff there is no BOM or the correct BOM has been skipped