1#include <Functions/FunctionFactory.h>
2#include <Functions/FunctionStringToString.h>
3#include "domain.h"
4
5namespace DB
6{
7
8struct NameDomainWithoutWWW { static constexpr auto name = "domainWithoutWWW"; };
9using FunctionDomainWithoutWWW = FunctionStringToString<ExtractSubstringImpl<ExtractDomain<true>>, NameDomainWithoutWWW>;
10
11
12void registerFunctionDomainWithoutWWW(FunctionFactory & factory)
13{
14 factory.registerFunction<FunctionDomainWithoutWWW>();
15}
16
17}
18