MCPcopy Create free account
hub / github.com/PlayFab/gsdk / writeIndent

Method writeIndent

cpp/cppsdk/jsoncpp.cpp:4754–4763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4752}
4753
4754void StyledWriter::writeIndent() {
4755 if (!document_.empty()) {
4756 char last = document_[document_.length() - 1];
4757 if (last == ' ') // already indented
4758 return;
4759 if (last != '\n') // Comments may add new-line
4760 document_ += '\n';
4761 }
4762 document_ += indentString_;
4763}
4764
4765void StyledWriter::writeWithIndent(const JSONCPP_STRING& value) {
4766 writeIndent();

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected