MCPcopy Index your code
hub / github.com/Kitware/CMake / parseFromStream

Function parseFromStream

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

Source from the content-addressed store, hash-verified

1993// global functions
1994
1995bool parseFromStream(CharReader::Factory const& fact, IStream& sin, Value* root,
1996 String* errs) {
1997 OStringStream ssin;
1998 ssin << sin.rdbuf();
1999 String doc = std::move(ssin).str();
2000 char const* begin = doc.data();
2001 char const* end = begin + doc.size();
2002 // Note that we do not actually need a null-terminator.
2003 CharReaderPtr const reader(fact.newCharReader());
2004 return reader->parse(begin, end, root, errs);
2005}
2006
2007IStream& operator>>(IStream& sin, Value& root) {
2008 CharReaderBuilder b;

Callers 6

LLVMFuzzerTestOneInputFunction · 0.85
json_reader.cppFile · 0.85
cmJSONStateMethod · 0.85
ReadJsonSnippetMethod · 0.85
ReadJsonFunction · 0.85
cmInstrumentationCommandFunction · 0.85

Calls 6

moveFunction · 0.85
strMethod · 0.80
newCharReaderMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…