mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
25 lines
500 B
C++
25 lines
500 B
C++
#include "FunctionsStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "CountSubstringsImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameCountSubstrings
|
|
{
|
|
static constexpr auto name = "countSubstrings";
|
|
};
|
|
|
|
using FunctionCountSubstrings = FunctionsStringSearch<CountSubstringsImpl<NameCountSubstrings, PositionCaseSensitiveASCII>>;
|
|
|
|
}
|
|
|
|
void registerFunctionCountSubstrings(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionCountSubstrings>(FunctionFactory::CaseInsensitive);
|
|
}
|
|
}
|