summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qunicodetables_p.h
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2012-06-11 15:14:25 +0300
committerQt by Nokia <qt-info@nokia.com>2012-06-14 05:22:15 +0200
commitf00012aa89e2e07949a0f32f970f4e9be9405d4b (patch)
treed3e0d91297759c1e757873e7a996a38eb64a1a5f /src/corelib/tools/qunicodetables_p.h
parentd8c04d60dbaf1b2d97da253af7c2a149b2af480b (diff)
Regenerate the Unicode tables
Change-Id: I64b93ba8ec85eff5e308d92c57e98e8745c43d66 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qunicodetables_p.h')
-rw-r--r--src/corelib/tools/qunicodetables_p.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/corelib/tools/qunicodetables_p.h b/src/corelib/tools/qunicodetables_p.h
index a7038d5e09..245bea0ae1 100644
--- a/src/corelib/tools/qunicodetables_p.h
+++ b/src/corelib/tools/qunicodetables_p.h
@@ -64,25 +64,26 @@ QT_BEGIN_NAMESPACE
namespace QUnicodeTables {
struct Properties {
- ushort category : 8; /* 5 needed */
- ushort line_break_class : 8; /* 6 needed */
- ushort direction : 8; /* 5 needed */
+ ushort category : 8; /* 5 used */
+ ushort direction : 8; /* 5 used */
ushort combiningClass : 8;
ushort joining : 2;
- signed short digitValue : 6; /* 5 needed */
- ushort unicodeVersion : 4;
- ushort lowerCaseSpecial : 1;
- ushort upperCaseSpecial : 1;
- ushort titleCaseSpecial : 1;
- ushort caseFoldSpecial : 1;
+ signed short digitValue : 6; /* 5 used */
signed short mirrorDiff : 16;
signed short lowerCaseDiff : 16;
signed short upperCaseDiff : 16;
signed short titleCaseDiff : 16;
signed short caseFoldDiff : 16;
- ushort graphemeBreak : 8; /* 4 needed */
- ushort wordBreak : 8; /* 4 needed */
- ushort sentenceBreak : 8; /* 4 needed */
+ ushort lowerCaseSpecial : 1;
+ ushort upperCaseSpecial : 1;
+ ushort titleCaseSpecial : 1;
+ ushort caseFoldSpecial : 1;
+ ushort unicodeVersion : 4;
+ ushort graphemeBreak : 8; /* 4 used */
+ ushort wordBreak : 8; /* 4 used */
+ ushort sentenceBreak : 8; /* 4 used */
+ ushort line_break_class : 8; /* 6 used */
+ ushort script : 8; /* 5 used */
};
Q_CORE_EXPORT const Properties * QT_FASTCALL properties(uint ucs4);
Q_CORE_EXPORT const Properties * QT_FASTCALL properties(ushort ucs2);
@@ -259,23 +260,23 @@ namespace QUnicodeTables {
Q_CORE_EXPORT GraphemeBreak QT_FASTCALL graphemeBreakClass(uint ucs4);
- inline int graphemeBreakClass(QChar ch)
+ inline GraphemeBreak graphemeBreakClass(QChar ch)
{ return graphemeBreakClass(ch.unicode()); }
Q_CORE_EXPORT WordBreak QT_FASTCALL wordBreakClass(uint ucs4);
- inline int wordBreakClass(QChar ch)
+ inline WordBreak wordBreakClass(QChar ch)
{ return wordBreakClass(ch.unicode()); }
Q_CORE_EXPORT SentenceBreak QT_FASTCALL sentenceBreakClass(uint ucs4);
- inline int sentenceBreakClass(QChar ch)
+ inline SentenceBreak sentenceBreakClass(QChar ch)
{ return sentenceBreakClass(ch.unicode()); }
Q_CORE_EXPORT LineBreakClass QT_FASTCALL lineBreakClass(uint ucs4);
- inline int lineBreakClass(QChar ch)
+ inline LineBreakClass lineBreakClass(QChar ch)
{ return lineBreakClass(ch.unicode()); }
- Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4);
- inline int script(QChar ch)
+ Q_CORE_EXPORT Script QT_FASTCALL script(uint ucs4);
+ inline Script script(QChar ch)
{ return script(ch.unicode()); }
} // namespace QUnicodeTables