unget current character (read it again on next get)
We implement unget by setting variable next_unget to true. The input is not changed - we just simulate ungetting by modifying chars_read_total, chars_read_current_line, and token_string. The next call to get() will behave as if the unget character is read again.
Definition at line 7979 of file json.hpp.
7980 {
7983
7984
7986 {
7988 {
7990 }
7991 }
7992
7993 else
7994 {
7996 }
7997
7998 if (JSON_HEDLEY_LIKELY(
current != std::char_traits<char_type>::eof()))
7999 {
8002 }
8003 }
bool next_unget
whether the next get() call should just return current
char_int_type current
the current character
position_t position
the start position of the current token
std::vector< char_type > token_string
raw input token string (for error messages)
std::size_t lines_read
the number of lines read
std::size_t chars_read_current_line
the number of characters read in the current line
std::size_t chars_read_total
the total number of characters read