| 5011 | : base_adapter(base) {} |
| 5012 | |
| 5013 | typename std::char_traits<char>::int_type get_character() noexcept |
| 5014 | { |
| 5015 | // check if buffer needs to be filled |
| 5016 | if (utf8_bytes_index == utf8_bytes_filled) |
| 5017 | { |
| 5018 | fill_buffer<sizeof(WideCharType)>(); |
| 5019 | |
| 5020 | JSON_ASSERT(utf8_bytes_filled > 0); |
| 5021 | JSON_ASSERT(utf8_bytes_index == 0); |
| 5022 | } |
| 5023 | |
| 5024 | // use buffer |
| 5025 | JSON_ASSERT(utf8_bytes_filled > 0); |
| 5026 | JSON_ASSERT(utf8_bytes_index < utf8_bytes_filled); |
| 5027 | return utf8_bytes[utf8_bytes_index++]; |
| 5028 | } |
| 5029 | |
| 5030 | private: |
| 5031 | BaseInputAdapter base_adapter; |
nothing calls this directly
no outgoing calls
no test coverage detected