summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@nokia.com>2010-08-20 10:46:47 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-08-20 10:50:33 (GMT)
commita3aeebff0afed0e974d20b088b14cdf2efa89d2b (patch)
tree2c35f3df35891aed7ce0c9ef956035e369dd4c9c /tools/linguist
parent0e4a9ab0f60faff3bde86cb7f08250161c18103e (diff)
downloadQt-a3aeebff0afed0e974d20b088b14cdf2efa89d2b.zip
Qt-a3aeebff0afed0e974d20b088b14cdf2efa89d2b.tar.gz
Qt-a3aeebff0afed0e974d20b088b14cdf2efa89d2b.tar.bz2
add full width characters to ending() in linguist
U+FF01 (FULLWIDTH EXCLAMATION MARK), U+FF1F (FULLWIDTH QUESTION MARK) and U+FF1A (FULLWIDTH COLON) Merge-request: 2455 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/linguist/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/linguist/linguist/mainwindow.cpp b/tools/linguist/linguist/mainwindow.cpp
index 163ef54..7d11823 100644
--- a/tools/linguist/linguist/mainwindow.cpp
+++ b/tools/linguist/linguist/mainwindow.cpp
@@ -142,10 +142,13 @@ static Ending ending(QString str, QLocale::Language lang)
case 0x2048: // question exclamation mark
case 0x2049: // exclamation question mark
case 0x2762: // heavy exclamation mark ornament
+ case 0xff01: // full width exclamation mark
+ case 0xff1f: // full width question mark
return End_Interrobang;
case 0x003b: // greek 'compatibility' questionmark
return lang == QLocale::Greek ? End_Interrobang : End_None;
case 0x003a: // colon
+ case 0xff1a: // full width colon
return End_Colon;
case 0x2026: // horizontal ellipsis
return End_Ellipsis;