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

Method decodeString

Utilities/cmjsoncpp/src/lib_json/json_reader.cpp:604–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604bool Reader::decodeString(Token& token) {
605 String decoded_string;
606 if (!decodeString(token, decoded_string))
607 return false;
608 Value decoded(decoded_string);
609 currentValue().swapPayload(decoded);
610 currentValue().setOffsetStart(token.start_ - begin_);
611 currentValue().setOffsetLimit(token.end_ - begin_);
612 return true;
613}
614
615bool Reader::decodeString(Token& token, String& decoded) {
616 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.80

Tested by

no test coverage detected