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

Method decodeString

src/jsoncpp.cpp:814–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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