1 | #include <Functions/FunctionFactory.h> |
---|---|
2 | #include <Functions/FunctionStringToString.h> |
3 | #include "firstSignificantSubdomain.h" |
4 | |
5 | |
6 | namespace DB |
7 | { |
8 | |
9 | struct NameFirstSignificantSubdomain { static constexpr auto name = "firstSignificantSubdomain"; }; |
10 | using FunctionFirstSignificantSubdomain = FunctionStringToString<ExtractSubstringImpl<ExtractFirstSignificantSubdomain>, NameFirstSignificantSubdomain>; |
11 | |
12 | void registerFunctionFirstSignificantSubdomain(FunctionFactory & factory) |
13 | { |
14 | factory.registerFunction<FunctionFirstSignificantSubdomain>(); |
15 | } |
16 | |
17 | } |
18 |