2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionStringReplace.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "ReplaceRegexpImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-05-06 23:21:13 +00:00
|
|
|
|
|
|
|
struct NameReplaceRegexpOne
|
|
|
|
{
|
|
|
|
static constexpr auto name = "replaceRegexpOne";
|
|
|
|
};
|
|
|
|
|
|
|
|
using FunctionReplaceRegexpOne = FunctionStringReplace<ReplaceRegexpImpl<true>, NameReplaceRegexpOne>;
|
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2020-05-06 23:21:13 +00:00
|
|
|
void registerFunctionReplaceRegexpOne(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionReplaceRegexpOne>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|