MCPcopy Create free account
hub / github.com/Samsung/UTopia / decodeString

Method decodeString

external/jsoncpp/jsoncpp.cpp:839–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839bool Reader::decodeString(Token &token) {
840 String decoded_string;
841 if (!decodeString(token, decoded_string))
842 return false;
843 Value decoded(decoded_string);
844 currentValue().swapPayload(decoded);
845 currentValue().setOffsetStart(token.start_ - begin_);
846 currentValue().setOffsetLimit(token.end_ - begin_);
847 return true;
848}
849
850bool Reader::decodeString(Token &token, String &decoded) {
851 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