MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / decodeString

Method decodeString

Libraries/jsoncpp-0.y.z/src/lib_json/json_reader.cpp:583–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583bool Reader::decodeString(Token& token) {
584 std::string decoded_string;
585 if (!decodeString(token, decoded_string))
586 return false;
587 Value decoded(decoded_string);
588 currentValue().swapPayload(decoded);
589 return true;
590}
591
592bool Reader::decodeString(Token& token, std::string& decoded) {
593 decoded.reserve(token.end_ - token.start_ - 2);

Callers

nothing calls this directly

Calls 3

codePointToUTF8Function · 0.70
swapPayloadMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected