ClickHouse/src/Functions/replaceOne.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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