mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
31 lines
614 B
C++
31 lines
614 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/HasSubsequenceImpl.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct HasSubsequenceCaseSensitiveUTF8
|
|
{
|
|
static constexpr bool is_utf8 = true;
|
|
|
|
static int toLowerIfNeed(int code_point) { return code_point; }
|
|
};
|
|
|
|
struct NameHasSubsequenceUTF8
|
|
{
|
|
static constexpr auto name = "hasSubsequenceUTF8";
|
|
};
|
|
|
|
using FunctionHasSubsequenceUTF8 = HasSubsequenceImpl<NameHasSubsequenceUTF8, HasSubsequenceCaseSensitiveUTF8>;
|
|
}
|
|
|
|
REGISTER_FUNCTION(hasSubsequenceUTF8)
|
|
{
|
|
factory.registerFunction<FunctionHasSubsequenceUTF8>({}, FunctionFactory::CaseInsensitive);
|
|
}
|
|
|
|
}
|