MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / decodeString

Method decodeString

vrclient_x64/jsoncpp.cpp:813–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813bool Reader::decodeString(Token& token) {
814 std::string decoded_string;
815 if (!decodeString(token, decoded_string))
816 return false;
817 Value decoded(decoded_string);
818 currentValue().swapPayload(decoded);
819 currentValue().setOffsetStart(token.start_ - begin_);
820 currentValue().setOffsetLimit(token.end_ - begin_);
821 return true;
822}
823
824bool Reader::decodeString(Token& token, std::string& decoded) {
825 decoded.reserve(token.end_ - token.start_ - 2);

Callers

nothing calls this directly

Calls 4

codePointToUTF8Function · 0.85
swapPayloadMethod · 0.80
setOffsetStartMethod · 0.80
setOffsetLimitMethod · 0.80

Tested by

no test coverage detected