MCPcopy Create free account
hub / github.com/Illumina/paragraph / writeIndent

Method writeIndent

external/jsoncpp/jsoncpp.cpp:4705–4714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4703}
4704
4705void StyledWriter::writeIndent() {
4706 if (!document_.empty()) {
4707 char last = document_[document_.length() - 1];
4708 if (last == ' ') // already indented
4709 return;
4710 if (last != '\n') // Comments may add new-line
4711 document_ += '\n';
4712 }
4713 document_ += indentString_;
4714}
4715
4716void StyledWriter::writeWithIndent(const JSONCPP_STRING& value) {
4717 writeIndent();

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected