mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
18 lines
544 B
C++
18 lines
544 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionStringToString.h>
|
|
#include "firstSignificantSubdomain.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct NameFirstSignificantSubdomain { static constexpr auto name = "firstSignificantSubdomain"; };
|
|
using FunctionFirstSignificantSubdomain = FunctionStringToString<ExtractSubstringImpl<ExtractFirstSignificantSubdomain>, NameFirstSignificantSubdomain>;
|
|
|
|
void registerFunctionFirstSignificantSubdomain(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionFirstSignificantSubdomain>();
|
|
}
|
|
|
|
}
|