aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/URL/tldLookup.h
blob: 38c118b6bb13ffd65933d9875b4e858d5348935e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <cstdlib>

// Definition of the class generated by gperf, present on gperf/tldLookup.gperf
class TopLevelDomainLookupHash
{
private:
    static inline unsigned int hash(const char *str, size_t len);
public:
    static const char * isValid(const char *str, size_t len);
};

namespace DB
{
    using tldLookup = TopLevelDomainLookupHash;
}