MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / decodeString

Method decodeString

Sources/Dependencies/jsoncpp/reader.cpp:880–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878 }
879
880 bool OurReader::decodeString(Token& token) {
881 StringContainer decoded_string;
882 if (!decodeString(token, decoded_string))
883 return false;
884 Value decoded(decoded_string);
885 currentValue().swapPayload(decoded);
886 currentValue().setOffsetStart(token.start_ - begin_);
887 currentValue().setOffsetLimit(token.end_ - begin_);
888 return true;
889 }
890
891 bool OurReader::decodeString(Token& token, StringContainer& decoded) {
892 decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2));

Callers

nothing calls this directly

Calls 5

codePointToUTF8Function · 0.85
swapPayloadMethod · 0.80
setOffsetStartMethod · 0.80
setOffsetLimitMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected