mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
26 lines
431 B
C++
26 lines
431 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<NameReplaceOne, ReplaceStringTraits::Replace::First>, NameReplaceOne>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(ReplaceOne)
|
|
{
|
|
factory.registerFunction<FunctionReplaceOne>();
|
|
}
|
|
|
|
}
|