33 G_EXCEPTION_CLASS( Error ,
tx(
"error encoding idn domain name") )
35 bool valid( std::string_view domain ) ;
39 std::string
encode( std::string_view domain ) ;
std::string encode(std::string_view domain)
Returns the given domain with A-lables.
bool valid(std::string_view domain)
Returns true if the given domain is valid with U-labels and/or A-labels.
constexpr const char * tx(const char *p) noexcept
A briefer alternative to G::gettext_noop().