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
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(CountSubstringsCaseInsensitive)
|
2020-11-26 18:16:07 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionCountSubstringsCaseInsensitive>();
|
|
|
|
}
|
|
|
|
}
|