MCPcopy Create free account
hub / github.com/Kitware/VTK / decodeString

Method decodeString

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:842–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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