2020-11-26 18:16:07 +00:00
|
|
|
#include "FunctionsStringSearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "CountSubstringsImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
|
|
|
|
struct NameCountSubstringsCaseInsensitiveUTF8
|
|
|
|
{
|
|
|
|
static constexpr auto name = "countSubstringsCaseInsensitiveUTF8";
|
|
|
|
};
|
|
|
|
|
2021-09-21 16:43:46 +00:00
|
|
|
using FunctionCountSubstringsCaseInsensitiveUTF8 = FunctionsStringSearch<
|
|
|
|
CountSubstringsImpl<NameCountSubstringsCaseInsensitiveUTF8, PositionCaseInsensitiveUTF8>>;
|
2020-11-26 18:16:07 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(CountSubstringsCaseInsensitiveUTF8)
|
2020-11-26 18:16:07 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionCountSubstringsCaseInsensitiveUTF8>();
|
|
|
|
}
|
|
|
|
}
|