mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
26 lines
473 B
C++
26 lines
473 B
C++
#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>();
|
|
}
|
|
|
|
}
|