mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
28 lines
557 B
C++
28 lines
557 B
C++
#include "FunctionsStringSearch.h"
|
|
#include <Functions/FunctionFactory.h>
|
|
#include "HasTokenImpl.h"
|
|
#include <Common/Volnitsky.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameHasTokenCaseInsensitive
|
|
{
|
|
static constexpr auto name = "hasTokenCaseInsensitive";
|
|
};
|
|
|
|
using FunctionHasTokenCaseInsensitive
|
|
= FunctionsStringSearch<HasTokenImpl<NameHasTokenCaseInsensitive, VolnitskyCaseInsensitiveToken, false>>;
|
|
|
|
}
|
|
|
|
void registerFunctionHasTokenCaseInsensitive(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionHasTokenCaseInsensitive>();
|
|
}
|
|
|
|
}
|