TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ get()

template<typename BasicJsonType , typename InputAdapterType >
char_int_type nlohmann::detail::lexer< BasicJsonType, InputAdapterType >::get ( )
inlineprivate

Definition at line 7941 of file json.hpp.

7942 {
7945
7946 if (next_unget)
7947 {
7948 // just reset the next_unget variable and work with current
7949 next_unget = false;
7950 }
7951
7952 else
7953 {
7954 current = ia.get_character();
7955 }
7956
7957 if (JSON_HEDLEY_LIKELY(current != std::char_traits<char_type>::eof()))
7958 {
7959 token_string.push_back(std::char_traits<char_type>::to_char_type(current));
7960 }
7961
7962 if (current == '\n')
7963 {
7966 }
7967
7968 return current;
7969 }
bool next_unget
whether the next get() call should just return current
Definition: json.hpp:8222
char_int_type current
the current character
Definition: json.hpp:8219
InputAdapterType ia
input adapter
Definition: json.hpp:8213
position_t position
the start position of the current token
Definition: json.hpp:8225
std::vector< char_type > token_string
raw input token string (for error messages)
Definition: json.hpp:8228
std::size_t lines_read
the number of lines read
Definition: json.hpp:2598
std::size_t chars_read_current_line
the number of characters read in the current line
Definition: json.hpp:2596
std::size_t chars_read_total
the total number of characters read
Definition: json.hpp:2594