ClickHouse/src/Functions/replaceRegexpOne.cpp

26 lines
420 B
C++
Raw Normal View History

#include "FunctionStringReplace.h"
#include "FunctionFactory.h"
#include "ReplaceRegexpImpl.h"
namespace DB
{
2020-09-07 18:00:37 +00:00
namespace
{
struct NameReplaceRegexpOne
{
static constexpr auto name = "replaceRegexpOne";
};
using FunctionReplaceRegexpOne = FunctionStringReplace<ReplaceRegexpImpl<true>, NameReplaceRegexpOne>;
2020-09-07 18:00:37 +00:00
}
REGISTER_FUNCTION(ReplaceRegexpOne)
{
factory.registerFunction<FunctionReplaceRegexpOne>();
}
}