ClickHouse/src/Functions/replaceOne.cpp

26 lines
413 B
C++
Raw Normal View History

#include "FunctionStringReplace.h"
#include "FunctionFactory.h"
#include "ReplaceStringImpl.h"
namespace DB
{
2020-09-07 18:00:37 +00:00
namespace
{
struct NameReplaceOne
{
static constexpr auto name = "replaceOne";
};
using FunctionReplaceOne = FunctionStringReplace<ReplaceStringImpl<true>, NameReplaceOne>;
2020-09-07 18:00:37 +00:00
}
void registerFunctionReplaceOne(FunctionFactory & factory)
{
factory.registerFunction<FunctionReplaceOne>();
}
}