author | eckhart.koppen@nokia.com |
Wed, 31 Mar 2010 11:06:36 +0300 | |
changeset 7 | f7bc934e204c |
parent 3 | 41300fa6a67c |
child 30 | 5dc02b23752f |
permissions | -rw-r--r-- |
0 | 1 |
/**************************************************************************** |
2 |
** |
|
7
f7bc934e204c
5cabc75a39ca2f064f70b40f72ed93c74c4dc19b
eckhart.koppen@nokia.com
parents:
3
diff
changeset
|
3 |
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 4 |
** All rights reserved. |
5 |
** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 |
** |
|
7 |
** This file is part of the QtCore module of the Qt Toolkit. |
|
8 |
** |
|
9 |
** $QT_BEGIN_LICENSE:LGPL$ |
|
10 |
** No Commercial Usage |
|
11 |
** This file contains pre-release code and may not be distributed. |
|
12 |
** You may use this file in accordance with the terms and conditions |
|
13 |
** contained in the Technology Preview License Agreement accompanying |
|
14 |
** this package. |
|
15 |
** |
|
16 |
** GNU Lesser General Public License Usage |
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 |
** General Public License version 2.1 as published by the Free Software |
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 |
** packaging of this file. Please review the following information to |
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 |
** |
|
24 |
** In addition, as a special exception, Nokia gives you certain additional |
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 |
** |
|
28 |
** If you have questions regarding the use of this file, please contact |
|
29 |
** Nokia at qt-info@nokia.com. |
|
30 |
** |
|
31 |
** |
|
32 |
** |
|
33 |
** |
|
34 |
** |
|
35 |
** |
|
36 |
** |
|
37 |
** |
|
38 |
** $QT_END_LICENSE$ |
|
39 |
** |
|
40 |
****************************************************************************/ |
|
41 |
||
42 |
/* This file is autogenerated from the Unicode 5.0 database. Do not edit */ |
|
43 |
||
44 |
// |
|
45 |
// W A R N I N G |
|
46 |
// ------------- |
|
47 |
// |
|
48 |
// This file is not part of the Qt API. It exists for the convenience |
|
49 |
// of internal files. This header file may change from version to version |
|
50 |
// without notice, or even be removed. |
|
51 |
// |
|
52 |
// We mean it. |
|
53 |
// |
|
54 |
||
55 |
#ifndef QUNICODETABLES_P_H |
|
56 |
#define QUNICODETABLES_P_H |
|
57 |
||
58 |
#include <QtCore/qchar.h> |
|
59 |
||
60 |
QT_BEGIN_NAMESPACE |
|
61 |
||
62 |
namespace QUnicodeTables { |
|
63 |
struct Properties { |
|
64 |
ushort category : 8; |
|
65 |
ushort line_break_class : 8; |
|
66 |
ushort direction : 8; |
|
67 |
ushort combiningClass :8; |
|
68 |
ushort joining : 2; |
|
69 |
signed short digitValue : 6; /* 5 needed */ |
|
70 |
ushort unicodeVersion : 4; |
|
71 |
ushort lowerCaseSpecial : 1; |
|
72 |
ushort upperCaseSpecial : 1; |
|
73 |
ushort titleCaseSpecial : 1; |
|
74 |
ushort caseFoldSpecial : 1; /* currently unused */ |
|
75 |
signed short mirrorDiff : 16; |
|
76 |
signed short lowerCaseDiff : 16; |
|
77 |
signed short upperCaseDiff : 16; |
|
78 |
signed short titleCaseDiff : 16; |
|
79 |
signed short caseFoldDiff : 16; |
|
80 |
ushort graphemeBreak : 8; |
|
81 |
ushort wordBreak : 8; |
|
82 |
ushort sentenceBreak : 8; |
|
83 |
}; |
|
84 |
Q_CORE_EXPORT const Properties * QT_FASTCALL properties(uint ucs4); |
|
85 |
Q_CORE_EXPORT const Properties * QT_FASTCALL properties(ushort ucs2); |
|
86 |
||
87 |
// See http://www.unicode.org/reports/tr24/tr24-5.html |
|
88 |
||
89 |
enum Script { |
|
90 |
Common, |
|
91 |
Greek, |
|
92 |
Cyrillic, |
|
93 |
Armenian, |
|
94 |
Hebrew, |
|
95 |
Arabic, |
|
96 |
Syriac, |
|
97 |
Thaana, |
|
98 |
Devanagari, |
|
99 |
Bengali, |
|
100 |
Gurmukhi, |
|
101 |
Gujarati, |
|
102 |
Oriya, |
|
103 |
Tamil, |
|
104 |
Telugu, |
|
105 |
Kannada, |
|
106 |
Malayalam, |
|
107 |
Sinhala, |
|
108 |
Thai, |
|
109 |
Lao, |
|
110 |
Tibetan, |
|
111 |
Myanmar, |
|
112 |
Georgian, |
|
113 |
Hangul, |
|
114 |
Ogham, |
|
115 |
Runic, |
|
116 |
Khmer, |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
117 |
Nko, |
0 | 118 |
Inherited, |
119 |
ScriptCount = Inherited, |
|
120 |
Latin = Common, |
|
121 |
Ethiopic = Common, |
|
122 |
Cherokee = Common, |
|
123 |
CanadianAboriginal = Common, |
|
124 |
Mongolian = Common, |
|
125 |
Hiragana = Common, |
|
126 |
Katakana = Common, |
|
127 |
Bopomofo = Common, |
|
128 |
Han = Common, |
|
129 |
Yi = Common, |
|
130 |
OldItalic = Common, |
|
131 |
Gothic = Common, |
|
132 |
Deseret = Common, |
|
133 |
Tagalog = Common, |
|
134 |
Hanunoo = Common, |
|
135 |
Buhid = Common, |
|
136 |
Tagbanwa = Common, |
|
137 |
Limbu = Common, |
|
138 |
TaiLe = Common, |
|
139 |
LinearB = Common, |
|
140 |
Ugaritic = Common, |
|
141 |
Shavian = Common, |
|
142 |
Osmanya = Common, |
|
143 |
Cypriot = Common, |
|
144 |
Braille = Common, |
|
145 |
Buginese = Common, |
|
146 |
Coptic = Common, |
|
147 |
NewTaiLue = Common, |
|
148 |
Glagolitic = Common, |
|
149 |
Tifinagh = Common, |
|
150 |
SylotiNagri = Common, |
|
151 |
OldPersian = Common, |
|
152 |
Kharoshthi = Common, |
|
153 |
Balinese = Common, |
|
154 |
Cuneiform = Common, |
|
155 |
Phoenician = Common, |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
156 |
PhagsPa = Common |
0 | 157 |
}; |
158 |
enum { ScriptSentinel = 32 }; |
|
159 |
||
160 |
||
161 |
// see http://www.unicode.org/reports/tr14/tr14-19.html |
|
162 |
// we don't use the XX, AI and CB properties and map them to AL instead. |
|
163 |
// as we don't support any EBDIC based OS'es, NL is ignored and mapped to AL as well. |
|
164 |
enum LineBreakClass { |
|
165 |
LineBreak_OP, LineBreak_CL, LineBreak_QU, LineBreak_GL, LineBreak_NS, |
|
166 |
LineBreak_EX, LineBreak_SY, LineBreak_IS, LineBreak_PR, LineBreak_PO, |
|
167 |
LineBreak_NU, LineBreak_AL, LineBreak_ID, LineBreak_IN, LineBreak_HY, |
|
168 |
LineBreak_BA, LineBreak_BB, LineBreak_B2, LineBreak_ZW, LineBreak_CM, |
|
169 |
LineBreak_WJ, LineBreak_H2, LineBreak_H3, LineBreak_JL, LineBreak_JV, |
|
170 |
LineBreak_JT, LineBreak_SA, LineBreak_SG, |
|
171 |
LineBreak_SP, LineBreak_CR, LineBreak_LF, LineBreak_BK |
|
172 |
}; |
|
173 |
||
174 |
||
175 |
Q_CORE_EXPORT QUnicodeTables::LineBreakClass QT_FASTCALL lineBreakClass(uint ucs4); |
|
176 |
inline int lineBreakClass(const QChar &ch) { |
|
177 |
return QUnicodeTables::lineBreakClass(ch.unicode()); |
|
178 |
} |
|
179 |
||
180 |
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4); |
|
181 |
inline int script(const QChar &ch) { |
|
182 |
return script(ch.unicode()); |
|
183 |
} |
|
184 |
||
185 |
||
186 |
enum GraphemeBreak { |
|
187 |
GraphemeBreakOther, |
|
188 |
GraphemeBreakCR, |
|
189 |
GraphemeBreakLF, |
|
190 |
GraphemeBreakControl, |
|
191 |
GraphemeBreakExtend, |
|
192 |
GraphemeBreakL, |
|
193 |
GraphemeBreakV, |
|
194 |
GraphemeBreakT, |
|
195 |
GraphemeBreakLV, |
|
196 |
GraphemeBreakLVT |
|
197 |
}; |
|
198 |
||
199 |
||
200 |
enum WordBreak { |
|
201 |
WordBreakOther, |
|
202 |
WordBreakFormat, |
|
203 |
WordBreakKatakana, |
|
204 |
WordBreakALetter, |
|
205 |
WordBreakMidLetter, |
|
206 |
WordBreakMidNum, |
|
207 |
WordBreakNumeric, |
|
208 |
WordBreakExtendNumLet |
|
209 |
}; |
|
210 |
||
211 |
||
212 |
enum SentenceBreak { |
|
213 |
SentenceBreakOther, |
|
214 |
SentenceBreakSep, |
|
215 |
SentenceBreakFormat, |
|
216 |
SentenceBreakSp, |
|
217 |
SentenceBreakLower, |
|
218 |
SentenceBreakUpper, |
|
219 |
SentenceBreakOLetter, |
|
220 |
SentenceBreakNumeric, |
|
221 |
SentenceBreakATerm, |
|
222 |
SentenceBreakSTerm, |
|
223 |
SentenceBreakClose |
|
224 |
}; |
|
225 |
||
226 |
||
227 |
} |
|
228 |
||
229 |
QT_END_NAMESPACE |
|
230 |
||
231 |
#endif |