MCPcopy Create free account
hub / github.com/SICKAG/sick_scan_xd / decodeString

Method decodeString

test/docker/jsoncpp/src/lib_json/json_reader.cpp:617–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617bool Reader::decodeString(Token& token) {
618 String decoded_string;
619 if (!decodeString(token, decoded_string))
620 return false;
621 Value decoded(decoded_string);
622 currentValue().swapPayload(decoded);
623 currentValue().setOffsetStart(token.start_ - begin_);
624 currentValue().setOffsetLimit(token.end_ - begin_);
625 return true;
626}
627
628bool Reader::decodeString(Token& token, String& decoded) {
629 decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2));

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected