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

Function writeString

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:5338–5343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5336}
5337
5338String writeString(StreamWriter::Factory const& factory, Value const& root) {
5339 OStringStream sout;
5340 StreamWriterPtr const writer(factory.newStreamWriter());
5341 writer->write(root, &sout);
5342 return std::move(sout).str();
5343}
5344
5345OStream& operator<<(OStream& sout, Value const& root) {
5346 StreamWriterBuilder builder;

Callers 1

toStyledStringMethod · 0.85

Calls 3

newStreamWriterMethod · 0.80
writeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected