ClickHouse/src/Functions/countSubstringsCaseInsensitiveUTF8.cpp

25 lines
583 B
C++
Raw Normal View History

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "CountSubstringsImpl.h"
namespace DB
{
namespace
{
struct NameCountSubstringsCaseInsensitiveUTF8
{
static constexpr auto name = "countSubstringsCaseInsensitiveUTF8";
};
using FunctionCountSubstringsCaseInsensitiveUTF8 = FunctionsStringSearch<CountSubstringsImpl<PositionCaseInsensitiveUTF8>, NameCountSubstringsCaseInsensitiveUTF8>;
}
void registerFunctionCountSubstringsCaseInsensitiveUTF8(FunctionFactory & factory)
{
factory.registerFunction<FunctionCountSubstringsCaseInsensitiveUTF8>();
}
}