diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2011-10-06 14:56:24 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-06 19:24:26 +0200 |
commit | 2bf2bb3daf32935e3642447d40732998df819556 (patch) | |
tree | d12419f56ded95b6eec385a79597bdb0b0898a9b /src/corelib/tools/qchar.h | |
parent | df08cb70906abce38cd54fb38f5b349424bd31a9 (diff) |
fix QChar::isSpace() to handle codepoint U+0085
according to the Unicode specs, code point U+0085 should be treated
like a white space character (an exceptional Cc one)
Change-Id: Ib17ae0c4d3cdafe667cafa38b645138ef24c238c
Merge-request: 32
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Reviewed-on: http://codereview.qt-project.org/6158
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'src/corelib/tools/qchar.h')
-rw-r--r-- | src/corelib/tools/qchar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qchar.h b/src/corelib/tools/qchar.h index b82addb4c5..697b506ca3 100644 --- a/src/corelib/tools/qchar.h +++ b/src/corelib/tools/qchar.h @@ -234,7 +234,7 @@ public: bool isPunct() const; inline bool isSpace() const { return ucs == 0x20 || (ucs <= 0x0D && ucs >= 0x09) - || (ucs > 127 && isSpace(ucs)); + || (ucs > 127 && (ucs == 0x0085 || isSpace(ucs))); } bool isMark() const; inline bool isLetter() const { |