mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
b044d44fef
- introduced class MatchTraits with enums that replace bool template parameters - (minor: made negation the last template parameters because negation executes last during evaluation)
25 lines
500 B
C++
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>();
|
|
}
|
|
}
|