diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2010-11-29 16:38:46 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-11-29 16:39:27 (GMT) |
commit | 52abf69e3ecb0c7d7a7be0cd390afd05bb5999d4 (patch) | |
tree | 601cb7edac3e6842f217cf31526c6e643c326ef3 /util/unicode | |
parent | 155a7ceeed542911817dfaa6b2959717f6c92735 (diff) | |
download | Qt-52abf69e3ecb0c7d7a7be0cd390afd05bb5999d4.zip Qt-52abf69e3ecb0c7d7a7be0cd390afd05bb5999d4.tar.gz Qt-52abf69e3ecb0c7d7a7be0cd390afd05bb5999d4.tar.bz2 |
fix a typo in the code range
and add the curly braces to satisfy the coding style
Merge-request: 946
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'util/unicode')
-rw-r--r-- | util/unicode/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp index 6949e4c..8b505c4 100644 --- a/util/unicode/main.cpp +++ b/util/unicode/main.cpp @@ -461,18 +461,22 @@ struct UnicodeData { p.combiningClass = 0; p.direction = QChar::DirL; + // DerivedBidiClass.txt // DirR for: U+0590..U+05FF, U+07C0..U+08FF, U+FB1D..U+FB4F, U+10800..U+10FFF if ((codepoint >= 0x590 && codepoint <= 0x5ff) || (codepoint >= 0x7c0 && codepoint <= 0x8ff) || (codepoint >= 0xfb1d && codepoint <= 0xfb4f) - || (codepoint >= 0x10800 && codepoint <= 0x10fff)) + || (codepoint >= 0x10800 && codepoint <= 0x10fff)) { p.direction = QChar::DirR; - // DirAL for: U+0600..U+07BF, U+FB50..U+FDCF, U+FDF0..U+FDFF, U+FE70..U+FEFE + } + // DirAL for: U+0600..U+07BF, U+FB50..U+FDFF, U+FE70..U+FEFF + // minus noncharacter code points (intersects with U+FDD0..U+FDEF) if ((codepoint >= 0x600 && codepoint <= 0x7bf) || (codepoint >= 0xfb50 && codepoint <= 0xfdcf) || (codepoint >= 0xfdf0 && codepoint <= 0xfdff) - || (codepoint >= 0xfe70 && codepoint <= 0xfefe)) + || (codepoint >= 0xfe70 && codepoint <= 0xfeff)) { p.direction = QChar::DirAL; + } mirroredChar = 0; decompositionType = QChar::NoDecomposition; |