CellModules
nlohmann::detail::wide_string_input_adapter< WideStringType > Class Template Reference

#include <json.hpp>

Inheritance diagram for nlohmann::detail::wide_string_input_adapter< WideStringType >:
nlohmann::detail::input_adapter_protocol

Public Member Functions

 wide_string_input_adapter (const WideStringType &w) noexcept
 
std::char_traits< char >::int_type get_character () noexcept override
 get a character [0,255] or std::char_traits<char>::eof(). More...
 

Private Member Functions

template<size_t T>
void fill_buffer ()
 

Private Attributes

const WideStringType & str
 the wstring to process More...
 
std::size_t current_wchar = 0
 index of the current wchar in str More...
 
std::array< std::char_traits< char >::int_type, 4 > utf8_bytes = {{0, 0, 0, 0}}
 a buffer for UTF-8 bytes More...
 
std::size_t utf8_bytes_index = 0
 index to the utf8_codes array for the next valid byte More...
 
std::size_t utf8_bytes_filled = 0
 number of valid bytes in the utf8_codes array More...
 

Detailed Description

template<typename WideStringType>
class nlohmann::detail::wide_string_input_adapter< WideStringType >

Definition at line 2521 of file json.hpp.

Constructor & Destructor Documentation

◆ wide_string_input_adapter()

template<typename WideStringType >
nlohmann::detail::wide_string_input_adapter< WideStringType >::wide_string_input_adapter ( const WideStringType &  w)
inlineexplicitnoexcept

Definition at line 2524 of file json.hpp.

Member Function Documentation

◆ fill_buffer()

template<typename WideStringType >
template<size_t T>
void nlohmann::detail::wide_string_input_adapter< WideStringType >::fill_buffer ( )
inlineprivate

Definition at line 2547 of file json.hpp.

◆ get_character()

template<typename WideStringType >
std::char_traits< char >::int_type nlohmann::detail::wide_string_input_adapter< WideStringType >::get_character ( )
inlineoverridevirtualnoexcept

get a character [0,255] or std::char_traits<char>::eof().

Implements nlohmann::detail::input_adapter_protocol.

Definition at line 2528 of file json.hpp.

Member Data Documentation

◆ current_wchar

template<typename WideStringType >
std::size_t nlohmann::detail::wide_string_input_adapter< WideStringType >::current_wchar = 0
private

index of the current wchar in str

Definition at line 2556 of file json.hpp.

◆ str

template<typename WideStringType >
const WideStringType& nlohmann::detail::wide_string_input_adapter< WideStringType >::str
private

the wstring to process

Definition at line 2553 of file json.hpp.

◆ utf8_bytes

template<typename WideStringType >
std::array<std::char_traits<char>::int_type, 4> nlohmann::detail::wide_string_input_adapter< WideStringType >::utf8_bytes = {{0, 0, 0, 0}}
private

a buffer for UTF-8 bytes

Definition at line 2559 of file json.hpp.

◆ utf8_bytes_filled

template<typename WideStringType >
std::size_t nlohmann::detail::wide_string_input_adapter< WideStringType >::utf8_bytes_filled = 0
private

number of valid bytes in the utf8_codes array

Definition at line 2564 of file json.hpp.

◆ utf8_bytes_index

template<typename WideStringType >
std::size_t nlohmann::detail::wide_string_input_adapter< WideStringType >::utf8_bytes_index = 0
private

index to the utf8_codes array for the next valid byte

Definition at line 2562 of file json.hpp.


The documentation for this class was generated from the following file: