MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / get_character

Method get_character

include/jwt/json/json.hpp:5013–5028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected