MCPcopy Create free account
hub / github.com/Kitware/VTK / parseFromStream

Function parseFromStream

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:2232–2242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2230// global functions
2231
2232bool parseFromStream(CharReader::Factory const& fact, IStream& sin, Value* root,
2233 String* errs) {
2234 OStringStream ssin;
2235 ssin << sin.rdbuf();
2236 String doc = std::move(ssin).str();
2237 char const* begin = doc.data();
2238 char const* end = begin + doc.size();
2239 // Note that we do not actually need a null-terminator.
2240 CharReaderPtr const reader(fact.newCharReader());
2241 return reader->parse(begin, end, root, errs);
2242}
2243
2244IStream& operator>>(IStream& sin, Value& root) {
2245 CharReaderBuilder b;

Callers 8

ParseJSONMethod · 0.85
CanParseFileMethod · 0.85
RequestInformationMethod · 0.85
jsoncpp.cppFile · 0.85
LoadRenderModelMappingFunction · 0.85
LoadActionsMethod · 0.85
LoadDefaultBindingMethod · 0.85
InternalParseJSONMethod · 0.85

Calls 6

rdbufMethod · 0.80
newCharReaderMethod · 0.80
strMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected