MCPcopy Create free account
hub / github.com/Illumina/paragraph / decodeString

Method decodeString

external/jsoncpp/jsoncpp.cpp:844–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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