MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / write

Method write

Sources/Dependencies/jsoncpp/writer.cpp:360–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 dropNullPlaceholders_(dropNullPlaceholders), precision_(precision), precisionType_(precisionType) {
359 }
360 int BuiltStyledStreamWriter::write(Value const& root, OStream* sout) {
361 sout_ = sout;
362 addChildValues_ = false;
363 indented_ = true;
364 indentString_.clear();
365 writeCommentBeforeValue(root);
366 if (!indented_)
367 writeIndent();
368 indented_ = true;
369 writeValue(root);
370 writeCommentAfterValueOnSameLine(root);
371 *sout_ << endingLineFeedSymbol_;
372 sout_ = nullptr;
373 return 0;
374 }
375 void BuiltStyledStreamWriter::writeValue(Value const& value) {
376 switch (value.type()) {
377 case nullValue:

Callers 2

writeStringFunction · 0.45
validateMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected