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

Function IsFalse

util/string/type.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool IsFalse(const TStringBuf v) noexcept {
77 static constexpr std::array<TStringBuf, 7> falseOptions{
78 "false",
79 "f",
80 "no",
81 "n",
82 "off",
83 "0",
84 "net"};
85 return IsCaseInsensitiveAnyOf(v, falseOptions);
86}

Callers 2

Y_UNIT_TESTFunction · 0.85
TryFromStringImpl<bool>Function · 0.85

Calls 1

IsCaseInsensitiveAnyOfFunction · 0.85

Tested by

no test coverage detected