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

Method ToShortString

library/cpp/getopt/small/last_getopt_opt.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 TString TOpt::ToShortString() const {
87 if (!LongNames_.empty())
88 return NPrivate::OptToString(LongNames_.front());
89 if (!Chars_.empty())
90 return NPrivate::OptToString(Chars_.front());
91 return "?";
92 }
93
94 void TOpt::FireHandlers(const TOptsParser* parser) const {
95 for (const auto& handler : Handlers_) {

Callers 6

GetCharMethod · 0.95
GetNameMethod · 0.95
ParseOptParamMethod · 0.80
OptToStringFunction · 0.80
MutuallyExclusiveHandlerFunction · 0.80
GetMethod · 0.80

Calls 3

OptToStringFunction · 0.85
emptyMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected