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