MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / writeIndent

Method writeIndent

edrav2/eprj/jsoncpp/src/lib_json/json_writer.cpp:581–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581void StyledWriter::writeIndent() {
582 if (!document_.empty()) {
583 char last = document_[document_.length() - 1];
584 if (last == ' ') // already indented
585 return;
586 if (last != '\n') // Comments may add new-line
587 document_ += '\n';
588 }
589 document_ += indentString_;
590}
591
592void StyledWriter::writeWithIndent(const JSONCPP_STRING& value) {
593 writeIndent();

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected