ClickHouse/src/Functions/notILike.cpp
Robert Schulze b044d44fef
Refactoring: Make template instantiation easier to read
- introduced class MatchTraits with enums that replace bool template
  parameters

- (minor: made negation the last template parameters because negation
  executes last during evaluation)
2022-05-25 10:03:58 +02:00

25 lines
500 B
C++

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "MatchImpl.h"
namespace DB
{
namespace
{
struct NameNotILike
{
static constexpr auto name = "notILike";
};
using NotILikeImpl = MatchImpl<NameNotILike, MatchTraits::Syntax::Like, MatchTraits::Case::Insensitive, MatchTraits::Result::Negate>;
using FunctionNotILike = FunctionsStringSearch<NotILikeImpl>;
}
void registerFunctionNotILike(FunctionFactory & factory)
{
factory.registerFunction<FunctionNotILike>();
}
}