2020-03-29 17:04:16 +00:00
|
|
|
#include "FunctionsStringSearch.h"
|
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include "HasTokenImpl.h"
|
|
|
|
#include <Common/Volnitsky.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-03-29 17:04:16 +00:00
|
|
|
|
|
|
|
struct NameHasTokenCaseInsensitive
|
|
|
|
{
|
|
|
|
static constexpr auto name = "hasTokenCaseInsensitive";
|
|
|
|
};
|
|
|
|
|
|
|
|
using FunctionHasTokenCaseInsensitive
|
2021-09-21 16:43:46 +00:00
|
|
|
= FunctionsStringSearch<HasTokenImpl<NameHasTokenCaseInsensitive, VolnitskyCaseInsensitiveToken, false>>;
|
2020-03-29 17:04:16 +00:00
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2020-03-29 17:04:16 +00:00
|
|
|
void registerFunctionHasTokenCaseInsensitive(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionHasTokenCaseInsensitive>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|