KCodecs

Email IDN (punycode) handling

Functions

KCODECS_EXPORT QString KEmailAddress::fromIdn (const QString &addrSpec)
 
KCODECS_EXPORT QString KEmailAddress::normalizeAddressesAndDecodeIdn (const QString &addresses)
 
KCODECS_EXPORT QString KEmailAddress::normalizeAddressesAndEncodeIdn (const QString &str)
 
KCODECS_EXPORT QString KEmailAddress::toIdn (const QString &addrSpec)
 

Detailed Description

Function Documentation

QString KEmailAddress::fromIdn ( const QString addrSpec)

Decodes the punycode domain part of the given addr-spec if it's an IDN.

Parameters
addrSpeca pure 7-bit email address (addr-spec in RFC2822)
Returns
the email address with Unicode domain

Definition at line 961 of file kemailaddress.cpp.

QString KEmailAddress::normalizeAddressesAndDecodeIdn ( const QString addresses)

Normalizes all email addresses in the given list and decodes all IDNs.

Parameters
addressesa list of email addresses with punycoded IDNs
Returns
the email addresses in normalized form with Unicode IDNs

Definition at line 993 of file kemailaddress.cpp.

QString KEmailAddress::normalizeAddressesAndEncodeIdn ( const QString str)

Normalizes all email addresses in the given list and encodes all IDNs in punycode.

Parameters
stra list of email addresses
Returns
the email addresses in normalized form

Definition at line 1031 of file kemailaddress.cpp.

QString KEmailAddress::toIdn ( const QString addrSpec)

Encodes the domain part of the given addr-spec in punycode if it's an IDN.

Parameters
addrSpeca pure email address with Unicode domain
Returns
the email address with domain in punycode

Definition at line 977 of file kemailaddress.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 22:47:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.