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
Definition at line 959 of file kemailaddress.cpp.
◆ 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
Definition at line 991 of file kemailaddress.cpp.
◆ 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
Definition at line 1025 of file kemailaddress.cpp.
◆ toIdn()
Encodes the domain part of the given addr-spec in punycode if it's an IDN.
- Parameters
-
addrSpec a pure email address with Unicode domain
- Returns
- the email address with domain in punycode
Definition at line 975 of file kemailaddress.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.