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
(
)
inline
noexcept
Definition at line
5665
of file
json.hpp
.
5666
{
5667
// check if buffer needs to be filled
5668
if
(
utf8_bytes_index
==
utf8_bytes_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
}
nlohmann::detail::wide_string_input_adapter::utf8_bytes_index
std::size_t utf8_bytes_index
index to the utf8_codes array for the next valid byte
Definition:
json.hpp:5694
nlohmann::detail::wide_string_input_adapter::utf8_bytes_filled
std::size_t utf8_bytes_filled
number of valid bytes in the utf8_codes array
Definition:
json.hpp:5696
nlohmann::detail::wide_string_input_adapter::utf8_bytes
std::array< std::char_traits< char >::int_type, 4 > utf8_bytes
a buffer for UTF-8 bytes
Definition:
json.hpp:5691
nlohmann
detail
wide_string_input_adapter
Generated on Thu Apr 7 2022 14:11:03 for TerraForge3D by
1.9.3