| 62 | } // anonymous namespace |
| 63 | |
| 64 | bool IsTrue(const TStringBuf v) noexcept { |
| 65 | static constexpr std::array<TStringBuf, 7> trueOptions{ |
| 66 | "true", |
| 67 | "t", |
| 68 | "yes", |
| 69 | "y", |
| 70 | "on", |
| 71 | "1", |
| 72 | "da"}; |
| 73 | return IsCaseInsensitiveAnyOf(v, trueOptions); |
| 74 | } |
| 75 | |
| 76 | bool IsFalse(const TStringBuf v) noexcept { |
| 77 | static constexpr std::array<TStringBuf, 7> falseOptions{ |
no test coverage detected