mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
494d6ca3df
This is a pure refactoring, there are no semantic changes. Cherry-picked from #42682.
26 lines
415 B
C++
26 lines
415 B
C++
#include "FunctionStringReplace.h"
|
|
#include "FunctionFactory.h"
|
|
#include "ReplaceStringImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameReplaceOne
|
|
{
|
|
static constexpr auto name = "replaceOne";
|
|
};
|
|
|
|
using FunctionReplaceOne = FunctionStringReplace<ReplaceStringImpl<ReplaceStringTraits::Replace::First>, NameReplaceOne>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(ReplaceOne)
|
|
{
|
|
factory.registerFunction<FunctionReplaceOne>();
|
|
}
|
|
|
|
}
|