mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
26 lines
413 B
C++
26 lines
413 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<true>, NameReplaceOne>;
|
|
|
|
}
|
|
|
|
void registerFunctionReplaceOne(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionReplaceOne>();
|
|
}
|
|
|
|
}
|