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

Method FindCharOption

library/cpp/getopt/small/last_getopt_opts.cpp:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 const TOpt* TOpts::FindCharOption(char c) const {
126 for (const auto& Opt : Opts_) {
127 const TOpt* opt = Opt.Get();
128 if (IsIn(opt->GetShortNames(), c))
129 return opt;
130 }
131 return nullptr;
132 }
133
134 TOpt* TOpts::FindCharOption(char c) {
135 for (auto& Opt : Opts_) {

Callers 3

GenerateOptCompletionMethod · 0.80
SeenMethod · 0.80

Calls 2

IsInFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected