TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ get_character()

template<typename BaseInputAdapter , typename WideCharType >
std::char_traits< char >::int_type nlohmann::detail::wide_string_input_adapter< BaseInputAdapter, WideCharType >::get_character ( )
inlinenoexcept

Definition at line 5665 of file json.hpp.

5666 {
5667 // check if buffer needs to be filled
5669 {
5670 fill_buffer<sizeof(WideCharType)>();
5671 JSON_ASSERT(utf8_bytes_filled > 0);
5672 JSON_ASSERT(utf8_bytes_index == 0);
5673 }
5674
5675 // use buffer
5676 JSON_ASSERT(utf8_bytes_filled > 0);
5677 JSON_ASSERT(utf8_bytes_index < utf8_bytes_filled);
5678 return utf8_bytes[utf8_bytes_index++];
5679 }
std::size_t utf8_bytes_index
index to the utf8_codes array for the next valid byte
Definition: json.hpp:5694
std::size_t utf8_bytes_filled
number of valid bytes in the utf8_codes array
Definition: json.hpp:5696
std::array< std::char_traits< char >::int_type, 4 > utf8_bytes
a buffer for UTF-8 bytes
Definition: json.hpp:5691