1#include <Functions/FunctionFactory.h>
2#include "fragment.h"
3#include <Functions/FunctionStringToString.h>
4
5namespace DB
6{
7
8struct NameCutFragment { static constexpr auto name = "cutFragment"; };
9using FunctionCutFragment = FunctionStringToString<CutSubstringImpl<ExtractFragment<false>>, NameCutFragment>;
10
11void registerFunctionCutFragment(FunctionFactory & factory)
12{
13 factory.registerFunction<FunctionCutFragment>();
14}
15
16}
17