MCPcopy Create free account
hub / github.com/PlayFab/gsdk / decodeString

Method decodeString

cpp/cppsdk/jsoncpp.cpp:866–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866bool Reader::decodeString(Token& token) {
867 JSONCPP_STRING decoded_string;
868 if (!decodeString(token, decoded_string))
869 return false;
870 Value decoded(decoded_string);
871 currentValue().swapPayload(decoded);
872 currentValue().setOffsetStart(token.start_ - begin_);
873 currentValue().setOffsetLimit(token.end_ - begin_);
874 return true;
875}
876
877bool Reader::decodeString(Token& token, JSONCPP_STRING& decoded) {
878 decoded.reserve(static_cast<size_t>(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