ClickHouse/src/Functions/countSubstrings.cpp

25 lines
500 B
C++
Raw Normal View History

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "CountSubstringsImpl.h"
namespace DB
{
namespace
{
struct NameCountSubstrings
{
static constexpr auto name = "countSubstrings";
};
using FunctionCountSubstrings = FunctionsStringSearch<CountSubstringsImpl<PositionCaseSensitiveASCII>, NameCountSubstrings>;
}
void registerFunctionCountSubstrings(FunctionFactory & factory)
{
factory.registerFunction<FunctionCountSubstrings>(FunctionFactory::CaseInsensitive);
}
}