ClickHouse/src/Functions/URL/tldLookup.h
Azat Khuzhin 916cbd6610 Add ability to use custom TLD list
v2: Add a note that top_level_domains_lists aren not applied w/o restart
v3: Remove ExtractFirstSignificantSubdomain{Default,Custom}Lookup.h headers
v4: TLDListsHolder: remove FIXME for dense_hash_map (this is not significant)
2020-12-09 21:08:22 +03:00

18 lines
361 B
C++

#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;
}