4 #include <glog/logging.h>
12 TLD(TLD
const&) = delete;
13 TLD
& operator=(TLD
const&) = delete;
16 : ctx_(CHECK_NOTNULL(psl_latest(nullptr)))
19 ~TLD() { psl_free(ctx_
); }
21 char const* get_registered_domain(char const* dom
) const
23 return psl_registrable_domain(ctx_
, dom
);
26 char const* get_registered_domain(std::string
const& dom
) const
28 return get_registered_domain(dom
.c_str());