MCPcopy Create free account
hub / github.com/catboost/catboost / Print

Method Print

library/cpp/getopt/small/formatted_output.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 void TFormattedOutput::Print(IOutputStream& out) {
24 for (auto&[indent, line] : Lines_) {
25 if (indent && !line.empty()) {
26 TTempBuf buf(indent);
27 Fill(buf.Data(), buf.Data() + indent, ' ');
28 out.Write(buf.Data(), indent);
29 }
30 out << line;
31 if (!line.EndsWith('\n')) {
32 out << Endl;
33 }
34 }
35 }
36}

Callers 1

GenerateMethod · 0.45

Calls 5

FillFunction · 0.50
emptyMethod · 0.45
DataMethod · 0.45
WriteMethod · 0.45
EndsWithMethod · 0.45

Tested by

no test coverage detected