libtld/tld_object.cpp
std::string tld_object::tld_only() const
{
    if(!is_valid())
    {
        throw invalid_domain();
    }
    return f_info.f_tld;
}
/** \brief Return the TLD of the URI.
 *
 * This function returns the TLD part of the URI specified in the constructor
 * or the set_domain() function.
 *
 * The TLD is the part that represents a country, a region, a general TLD, etc.
 * Generic TLDs have one period (.com, .info,) but in general you must expect TLDs with
 * several period characters (.ca.us, .indiana.museum, .yawatahama.ehime.jp).
 *
 * \exception invalid_domain
 * This exception is raised when this function is called with an invalid
 * TLD object. This happens whenever you create the object or call
 * set_domain() with an invalid URI. You should call is_valid() and if
 * false, avoid calling this function.
 *
 * \return the TLD part of the URI specified in this TLD object.
 */
\brief Return the TLD of the URI.
This function returns the TLD part of the URI specified in the constructor
or the set_domain() function.

The TLD is the part that represents a country, a region, a general TLD, etc.
Generic TLDs have one period (.com, .info,) but in general you must expect TLDs with
several period characters (.ca.us, .indiana.museum, .yawatahama.ehime.jp).

\exception invalid_domain
This exception is raised when this function is called with an invalid
TLD object. This happens whenever you create the object or call
set_domain() with an invalid URI. You should call is_valid() and if
false, avoid calling this function.

\return the TLD part of the URI specified in this TLD object.
\ brief Return the TLD of the URI . This function returns the TLD part of the URI specified in the constructor or the set_domain () function . The TLD is the part that represents a country a region a general TLD etc . Generic TLDs have one period ( . com . info ) but in general you must expect TLDs with several period characters ( . ca . us . indiana . museum . yawatahama . ehime . jp ) . \ exception invalid_domain This exception is raised when this function is called with an invalid TLD object . This happens whenever you create the object or call set_domain () with an invalid URI . You should call is_valid () and if false avoid calling this function . \ return the TLD part of the URI specified in this TLD object .
std::string tld_object::tld_only() const
{
    if(!is_valid())
    {
        throw invalid_domain();
    }
    return f_info.f_tld;
}
std :: string tld_object :: tld_only ( ) const { if ( ! is_valid ( ) ) { throw invalid_domain ( ) ; } return f_info . f_tld ; }
\brief Return the TLD of the URI.
\ brief Return the TLD of the URI .