2020-11-26 18:16:07 +00:00
|
|
|
#include "FunctionsStringSearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "CountSubstringsImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
|
|
|
|
struct NameCountSubstringsCaseInsensitive
|
|
|
|
{
|
|
|
|
static constexpr auto name = "countSubstringsCaseInsensitive";
|
|
|
|
};
|
|
|
|
|
2021-09-21 16:43:46 +00:00
|
|
|
using FunctionCountSubstringsCaseInsensitive = FunctionsStringSearch<CountSubstringsImpl<NameCountSubstringsCaseInsensitive, PositionCaseInsensitiveASCII>>;
|
2020-11-26 18:16:07 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void registerFunctionCountSubstringsCaseInsensitive(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionCountSubstringsCaseInsensitive>();
|
|
|
|
}
|
|
|
|
}
|