ClickHouse/src/Functions/replaceOne.cpp

26 lines
415 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<ReplaceStringTraits::Replace::First>, NameReplaceOne>;
2020-09-07 18:00:37 +00:00
}
REGISTER_FUNCTION(ReplaceOne)
{
factory.registerFunction<FunctionReplaceOne>();
}
}