summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-02-24 19:13:28 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-05 15:58:07 (GMT)
commit627d5ca9fbfcdc54eca466ee8eae9ac3c9bd9276 (patch)
treef2626ee536eec0d0579a2fb1135435865401222d /util
parent9b7377aa9623eeacccb9219bc87b6658b6af0285 (diff)
downloadQt-627d5ca9fbfcdc54eca466ee8eae9ac3c9bd9276.zip
Qt-627d5ca9fbfcdc54eca466ee8eae9ac3c9bd9276.tar.gz
Qt-627d5ca9fbfcdc54eca466ee8eae9ac3c9bd9276.tar.bz2
generate specialCaseMap as set of human-readable code-sequences
Merge-request: 480 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'util')
-rw-r--r--util/unicode/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp
index 4f39e06..4cc2066 100644
--- a/util/unicode/main.cpp
+++ b/util/unicode/main.cpp
@@ -2077,13 +2077,13 @@ static QByteArray createPropertyInfo()
out += "#define CURRENT_VERSION "DATA_VERSION_STR"\n\n";
- out += "static const ushort specialCaseMap[] = {";
+ out += "static const ushort specialCaseMap[] = {\n ";
for (int i = 0; i < specialCaseMap.size(); ++i) {
- if (!(i % 16))
- out += "\n ";
out += QByteArray(" 0x") + QByteArray::number(specialCaseMap.at(i), 16);
if (i < specialCaseMap.size() - 1)
out += ",";
+ if (!specialCaseMap.at(i))
+ out += "\n ";
}
out += "\n};\n";
out += "#define SPECIAL_CASE_MAX_LEN " + QByteArray::number(specialCaseMaxLen) + "\n\n";