mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
494d6ca3df
This is a pure refactoring, there are no semantic changes. Cherry-picked from #42682.
27 lines
556 B
C++
27 lines
556 B
C++
#include "FunctionStringReplace.h"
|
|
#include "FunctionFactory.h"
|
|
#include "ReplaceRegexpImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameReplaceRegexpAll
|
|
{
|
|
static constexpr auto name = "replaceRegexpAll";
|
|
};
|
|
|
|
using FunctionReplaceRegexpAll = FunctionStringReplace<ReplaceRegexpImpl<ReplaceRegexpTraits::Replace::All>, NameReplaceRegexpAll>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(ReplaceRegexpAll)
|
|
{
|
|
factory.registerFunction<FunctionReplaceRegexpAll>();
|
|
factory.registerAlias("REGEXP_REPLACE", NameReplaceRegexpAll::name, FunctionFactory::CaseInsensitive);
|
|
}
|
|
|
|
}
|