MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / decodeString

Method decodeString

src/share/jsoncpp/jsoncpp.cpp:848–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848bool Reader::decodeString(Token& token) {
849 JSONCPP_STRING decoded_string;
850 if (!decodeString(token, decoded_string))
851 return false;
852 Value decoded(decoded_string);
853 currentValue().swapPayload(decoded);
854 currentValue().setOffsetStart(token.start_ - begin_);
855 currentValue().setOffsetLimit(token.end_ - begin_);
856 return true;
857}
858
859bool Reader::decodeString(Token& token, JSONCPP_STRING& decoded) {
860 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