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

Method CalculateFullNameLen

library/cpp/getopt/small/modchooser.cpp:262–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262size_t TModChooser::TMode::CalculateFullNameLen() const {
263 size_t len = Name.size();
264 if (Aliases) {
265 len += 2;
266 for (auto& alias : Aliases) {
267 len += alias.size() + 1;
268 }
269 }
270 return len;
271}
272
273TString TModChooser::TMode::FormatFullName(size_t pad, const NColorizer::TColors& colors) const {
274 TStringBuilder name;

Callers 1

PrintHelpMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected