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()
Decodes the punycode domain part of the given addr-spec if it's an IDN.
- Parameters
-
addrSpec a pure 7-bit email address (addr-spec in RFC2822)
- Returns
- the email address with Unicode domain
◆ normalizeAddressesAndDecodeIdn()
Normalizes all email addresses in the given list and decodes all IDNs.
- Parameters
-
addresses a list of email addresses with punycoded IDNs
- Returns
- the email addresses in normalized form with Unicode IDNs
◆ normalizeAddressesAndEncodeIdn()
Normalizes all email addresses in the given list and encodes all IDNs in punycode.
- Parameters
-
str a list of email addresses
- Returns
- the email addresses in normalized form
◆ toIdn()
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
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.