From 83f796d2739fc927d671925541dec654d3492b94 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 2 May 2012 15:37:53 +0200 Subject: [PATCH] Correct a mistake about non-characters in the documentation. The Unicode non-characters are 32 characters, from U+FDD0 to U+FDEF. The code matching these comments was fixed in 9327bc87c3abf58bb471693b5448cd78e3db1b46, but the comment wasn't fixed. Change-Id: I5bde0ab9d70c1c6623893de36d31235cbd9fb152 Reviewed-by: Konstantin Ritt Reviewed-by: Lars Knoll --- src/corelib/tools/qstring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp index a4a1563b62..5c63661de8 100644 --- a/src/corelib/tools/qstring.cpp +++ b/src/corelib/tools/qstring.cpp @@ -4018,7 +4018,7 @@ QByteArray QString::toLocal8Bit() const However, in the Unicode range, there are certain codepoints that are not considered characters. The Unicode standard reserves the last two codepoints in each Unicode Plane (U+FFFE, U+FFFF, U+1FFFE, U+1FFFF, - U+2FFFE, etc.), as well as 16 codepoints in the range U+FDD0..U+FDDF, + U+2FFFE, etc.), as well as 32 codepoints in the range U+FDD0..U+FDEF, inclusive, as non-characters. If any of those appear in the string, they may be discarded and will not appear in the UTF-8 representation, or they may be replaced by one or more replacement characters. @@ -4174,7 +4174,7 @@ QString QString::fromLocal8Bit_helper(const char *str, int size) Non-characters are codepoints that the Unicode standard reserves and must not be used in text interchange. They are the last two codepoints in each Unicode Plane (U+FFFE, U+FFFF, U+1FFFE, U+1FFFF, U+2FFFE, etc.), as well - as 16 codepoints in the range U+FDD0..U+FDDF, inclusive. + as 32 codepoints in the range U+FDD0..U+FDEF, inclusive. \sa toUtf8(), fromLatin1(), fromLocal8Bit() */