| 52 | namespace { |
| 53 | template <size_t N> |
| 54 | bool IsCaseInsensitiveAnyOf(TStringBuf str, const std::array<TStringBuf, N>& options) { |
| 55 | for (auto option : options) { |
| 56 | if (str.size() == option.size() && ::strnicmp(str.data(), option.data(), str.size()) == 0) { |
| 57 | return true; |
| 58 | } |
| 59 | } |
| 60 | return false; |
| 61 | } |
| 62 | } // anonymous namespace |
| 63 | |
| 64 | bool IsTrue(const TStringBuf v) noexcept { |