Correct a mistake about non-characters in the documentation.
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 2 May 2012 13:37:53 +0000 (15:37 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 17:35:29 +0000 (19:35 +0200)
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 <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qstring.cpp

index a4a1563..5c63661 100644 (file)
@@ -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()
 */