mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +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>();
|
||
|
}
|
||
|
|
||
|
}
|