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

◆ fromIdn()

KCODECS_EXPORT 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

◆ normalizeAddressesAndDecodeIdn()

KCODECS_EXPORT 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

◆ normalizeAddressesAndEncodeIdn()

KCODECS_EXPORT 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

◆ toIdn()

KCODECS_EXPORT 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:13:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.