mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
23 lines
446 B
C++
23 lines
446 B
C++
|
#include "FunctionsStringSearch.h"
|
||
|
#include <Functions/FunctionFactory.h>
|
||
|
#include "HasTokenImpl.h"
|
||
|
#include <Common/Volnitsky.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
struct NameHasToken
|
||
|
{
|
||
|
static constexpr auto name = "hasToken";
|
||
|
};
|
||
|
|
||
|
using FunctionHasToken = FunctionsStringSearch<HasTokenImpl<VolnitskyCaseSensitiveToken, false>, NameHasToken>;
|
||
|
|
||
|
void registerFunctionHasToken(FunctionFactory & factory)
|
||
|
{
|
||
|
factory.registerFunction<FunctionHasToken>();
|
||
|
}
|
||
|
|
||
|
}
|