MCPcopy Create free account
hub / github.com/SOUI2/soui / decodeString

Method decodeString

third-part/jsoncpp/src/lib_json/json_reader.cpp:630–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630bool Reader::decodeString(Token& token) {
631 JSONCPP_STRING decoded_string;
632 if (!decodeString(token, decoded_string))
633 return false;
634 Value decoded(decoded_string);
635 currentValue().swapPayload(decoded);
636 currentValue().setOffsetStart(token.start_ - begin_);
637 currentValue().setOffsetLimit(token.end_ - begin_);
638 return true;
639}
640
641bool Reader::decodeString(Token& token, JSONCPP_STRING& decoded) {
642 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