MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / reset

Function reset

Source/Utils/json.hpp:7191–7196  ·  view source on GitHub ↗

reset token_buffer; current character is beginning of token

Source from the content-addressed store, hash-verified

7189
7190 /// reset token_buffer; current character is beginning of token
7191 void reset() noexcept
7192 {
7193 token_buffer.clear();
7194 token_string.clear();
7195 token_string.push_back(std::char_traits<char_type>::to_char_type(current));
7196 }
7197
7198 /*
7199 @brief get next character from the input

Callers 2

scan_stringMethod · 0.85
scan_numberMethod · 0.85

Calls 2

clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected