MCPcopy Create free account
hub / github.com/Illumina/hap.py / writeIndent

Method writeIndent

external/jsoncpp/jsoncpp.cpp:3438–3447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3436}
3437
3438void StyledWriter::writeIndent() {
3439 if (!document_.empty()) {
3440 char last = document_[document_.length() - 1];
3441 if (last == ' ') // already indented
3442 return;
3443 if (last != '\n') // Comments may add new-line
3444 document_ += '\n';
3445 }
3446 document_ += indentString_;
3447}
3448
3449void StyledWriter::writeWithIndent(const std::string &value) {
3450 writeIndent();

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected