ClickHouse/src/Functions/countSubstringsCaseInsensitive.cpp

25 lines
560 B
C++
Raw Normal View History

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "CountSubstringsImpl.h"
namespace DB
{
namespace
{
struct NameCountSubstringsCaseInsensitive
{
static constexpr auto name = "countSubstringsCaseInsensitive";
};
using FunctionCountSubstringsCaseInsensitive = FunctionsStringSearch<CountSubstringsImpl<NameCountSubstringsCaseInsensitive, PositionCaseInsensitiveASCII>>;
}
void registerFunctionCountSubstringsCaseInsensitive(FunctionFactory & factory)
{
factory.registerFunction<FunctionCountSubstringsCaseInsensitive>();
}
}