MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / writeIndent

Method writeIndent

vrclient_x64/jsoncpp.cpp:4584–4593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4582}
4583
4584void StyledWriter::writeIndent() {
4585 if (!document_.empty()) {
4586 char last = document_[document_.length() - 1];
4587 if (last == ' ') // already indented
4588 return;
4589 if (last != '\n') // Comments may add new-line
4590 document_ += '\n';
4591 }
4592 document_ += indentString_;
4593}
4594
4595void StyledWriter::writeWithIndent(const std::string& value) {
4596 writeIndent();

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected