MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / parseFromStream

Function parseFromStream

Source/JSON/jsoncpp.cpp:1964–1975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1962// global functions
1963
1964bool parseFromStream(
1965 CharReader::Factory const& fact, std::istream& sin,
1966 Value* root, std::string* errs) {
1967 std::ostringstream ssin;
1968 ssin << sin.rdbuf();
1969 std::string doc = ssin.str();
1970 char const* begin = doc.data();
1971 char const* end = begin + doc.size();
1972 // Note that we do not actually need a null-terminator.
1973 CharReaderPtr const reader(fact.newCharReader());
1974 return reader->parse(begin, end, root, errs);
1975}
1976
1977std::istream& operator>>(std::istream& sin, Value& root) {
1978 CharReaderBuilder b;

Callers 2

parseIstreamMethod · 0.70
jsoncpp.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