MCPcopy Create free account
hub / github.com/cinder/Cinder / decodeString

Method decodeString

src/jsoncpp/jsoncpp.cpp:798–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796}
797
798bool Reader::decodeString(Token& token) {
799 std::string decoded_string;
800 if (!decodeString(token, decoded_string))
801 return false;
802 Value decoded(decoded_string);
803 currentValue().swapPayload(decoded);
804 currentValue().setOffsetStart(token.start_ - begin_);
805 currentValue().setOffsetLimit(token.end_ - begin_);
806 return true;
807}
808
809bool Reader::decodeString(Token& token, std::string& decoded) {
810 decoded.reserve(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