MCPcopy Create free account
hub / github.com/cutechess/cutechess / takeOption

Method takeOption

projects/cli/src/matchparser.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45QVariant MatchParser::takeOption(const QString& name)
46{
47 Q_ASSERT(m_validOptions.contains(name));
48
49 int i = m_validOptions.value(name).priority;
50 if (m_options.contains(i))
51 return m_options.take(i).value;
52
53 return QVariant();
54}
55
56QList<MatchParser::Option> MatchParser::options() const
57{

Callers 1

parseMatchFunction · 0.80

Calls 3

valueMethod · 0.80
takeMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected