diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-02 15:37:53 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-16 19:35:29 +0200 |
commit | 83f796d2739fc927d671925541dec654d3492b94 (patch) | |
tree | 689b9cec1007c592588ca5268aa53e17dc1cefc1 /src/corelib/tools/qstring.cpp | |
parent | 1a4f58d3e67f3d271d9e24d7f52950f796542d2f (diff) |
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 <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r-- | src/corelib/tools/qstring.cpp | 4 |
1 files 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() */ |