aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/positionCaseInsensitiveUTF8.cpp
blob: e7ebf02d1565c44615c39710a9e90b19b1dcae59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "PositionImpl.h"


namespace DB
{
namespace
{

struct NamePositionCaseInsensitiveUTF8
{
    static constexpr auto name = "positionCaseInsensitiveUTF8";
};

using FunctionPositionCaseInsensitiveUTF8
    = FunctionsStringSearch<PositionImpl<NamePositionCaseInsensitiveUTF8, PositionCaseInsensitiveUTF8>>;

}

REGISTER_FUNCTION(PositionCaseInsensitiveUTF8)
{
    factory.registerFunction<FunctionPositionCaseInsensitiveUTF8>();
}

}