MCPcopy Create free account
hub / github.com/Samsung/UTopia / parseFromStream

Function parseFromStream

external/jsoncpp/jsoncpp.cpp:2179–2189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2177// global functions
2178
2179bool parseFromStream(CharReader::Factory const &fact, IStream &sin, Value *root,
2180 String *errs) {
2181 OStringStream ssin;
2182 ssin << sin.rdbuf();
2183 String doc = ssin.str();
2184 char const *begin = doc.data();
2185 char const *end = begin + doc.size();
2186 // Note that we do not actually need a null-terminator.
2187 CharReaderPtr const reader(fact.newCharReader());
2188 return reader->parse(begin, end, root, errs);
2189}
2190
2191IStream &operator>>(IStream &sin, Value &root) {
2192 CharReaderBuilder b;

Callers 4

strToJsonFunction · 0.85
parseJsonFileToJsonValueFunction · 0.85
loadExternalsMethod · 0.85
jsoncpp.cppFile · 0.85

Calls 4

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

Tested by

no test coverage detected