aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/replaceRegexpOne.cpp
blob: fc3e55aa79124a09fc6c2325432182f7081e575c (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
#include "FunctionStringReplace.h"
#include "FunctionFactory.h"
#include "ReplaceRegexpImpl.h"


namespace DB
{
namespace
{

struct NameReplaceRegexpOne
{
    static constexpr auto name = "replaceRegexpOne";
};

using FunctionReplaceRegexpOne = FunctionStringReplace<ReplaceRegexpImpl<NameReplaceRegexpOne, ReplaceRegexpTraits::Replace::First>, NameReplaceRegexpOne>;

}

REGISTER_FUNCTION(ReplaceRegexpOne)
{
    factory.registerFunction<FunctionReplaceRegexpOne>();
}

}