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

Function parseFromStream

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

Source from the content-addressed store, hash-verified

1980// global functions
1981
1982bool parseFromStream(CharReader::Factory const& fact, IStream& sin, Value* root,
1983 String* errs) {
1984 OStringStream ssin;
1985 ssin << sin.rdbuf();
1986 String doc = ssin.str();
1987 char const* begin = doc.data();
1988 char const* end = begin + doc.size();
1989 // Note that we do not actually need a null-terminator.
1990 CharReaderPtr const reader(fact.newCharReader());
1991 return reader->parse(begin, end, root, errs);
1992}
1993
1994IStream& operator>>(IStream& sin, Value& root) {
1995 CharReaderBuilder b;

Callers 1

json_reader.cppFile · 0.85

Calls 4

dataMethod · 0.80
newCharReaderMethod · 0.80
sizeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected