libtld/tld_compiler.cpp
std::string tld_definition::get_name() const
{
    std::string name;

    for(auto const & segment : f_tld)
    {
        std::string const s(f_strings.get_string(segment));
        if(s.empty())
        {
            throw std::logic_error("a segment string is not defined");
        }
        name += '.';
        name += s;
    }

    return name;
}
/** \brief The domain name with periods separating each segment.
 *
 * This function rebuilds the full domain name. The idea is to have a way
 * to write error messages about various errors including the domain name.
 *
 * \return The name of the domain with each segment separated by periods.
 */
\brief The domain name with periods separating each segment.
This function rebuilds the full domain name. The idea is to have a way
to write error messages about various errors including the domain name.

\return The name of the domain with each segment separated by periods.
\ brief The domain name with periods separating each segment . This function rebuilds the full domain name . The idea is to have a way to write error messages about various errors including the domain name . \ return The name of the domain with each segment separated by periods .
std::string tld_definition::get_name() const
{
    std::string name;
    for(auto const & segment : f_tld)
    {
        std::string const s(f_strings.get_string(segment));
        if(s.empty())
        {
            throw std::logic_error("a segment string is not defined");
        }
        name += '.';
        name += s;
    }
    return name;
}
std :: string tld_definition :: get_name ( ) const { std :: string name ; for ( auto const & segment : f_tld ) { std :: string const s ( f_strings . get_string ( segment ) ) ; if ( s . empty ( ) ) { throw std :: logic_error ( " " ) ; } name += ' ' ; name += s ; } return name ; }
\brief The domain name with periods separating each segment.
\ brief The domain name with periods separating each segment .