217 return std::string();
std::string domain_only() const
Retrieve the domain name only.
tld_object(const char *domain_name=NULL)
Initialize a tld object with the specified domain.
std::string sub_domains() const
Retrieve the sub-domains of the URI.
std::string country() const
The name of the country linked to that TLD.
std::string domain() const
Retrieve the domain name of this TLD object.
tld_result f_result
The result of the tld() function call.
tld_status status() const
Retrieve the current status of the TLD.
tld_result result() const
Check the result of the tld() command.
std::string tld_only() const
Return the TLD of the URI.
void set_domain(const char *domain_name)
Change the domain of a tld object with the newly specified domain.
std::string full_domain() const
Full domain name: domain and TLD.
tld_category category() const
Retrieve the category of this URI.
std::string f_domain
The domain or URI as specified in the constructor or set_domain() function.
bool is_valid() const
Check whether this TLD object is valid.
tld_info f_info
The information of the domain of this tld_object.
Exception thrown when querying for data of an invalid domain.
enum tld_category f_category
The category of the TLD.
enum tld_status f_status
The status of the TLD.
char f_country[48]
The country where this TLD is used.
const char * f_tld
Pointer to the TLD in the URI string you supplied.
The public header of the libtld library.
LIBTLD_EXPORT enum tld_result tld(const char *uri, struct tld_info *info)
Get information about the TLD for the specified URI.
@ TLD_RESULT_SUCCESS
Success! The TLD of the specified URI is valid.
@ TLD_STATUS_VALID
The TLD is currently valid.