summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-08-18 16:56:32 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-18 18:18:36 (GMT)
commitb4fc4e93391438cffa05631f6d9065bfab519e0a (patch)
treedce11a691f9870075c2854a0431e8045bedfba91 /src/corelib
parent8d314cd4eb39015a196bc4a4edfe44592d74f3c0 (diff)
downloadQt-b4fc4e93391438cffa05631f6d9065bfab519e0a.zip
Qt-b4fc4e93391438cffa05631f6d9065bfab519e0a.tar.gz
Qt-b4fc4e93391438cffa05631f6d9065bfab519e0a.tar.bz2
Doc: explain that QUrl::toAce may fail if its input is not correct.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/io/qurl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp
index acbac36..4aae53d 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -5699,6 +5699,10 @@ QString QUrl::fromAce(const QByteArray &domain)
Applications (IDNA) specification, which allows for domain names
(like \c "example.com") to be written using international
characters.
+
+ This function return an empty QByteArra if \a domain is not a valid
+ hostname. Note, in particular, that IPv6 literals are not valid domain
+ names.
*/
QByteArray QUrl::toAce(const QString &domain)
{