MCPcopy Create free account
hub / github.com/Alan-CRL/Inkeys / parseFromStream

Function parseFromStream

Timeout/InkeysTimeout/json/lib_json/json_reader.cpp:1993–2003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

json_reader.cppFile · 0.70

Calls 5

strMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
newCharReaderMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected