Qt 4.8
qunicodetables_p.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtCore module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
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 
61 
62 #define UNICODE_DATA_VERSION QChar::Unicode_5_0
63 
64 #define UNICODE_LAST_CODEPOINT 0x10ffff
65 
66 namespace QUnicodeTables {
67 
68  struct Properties {
69  ushort category : 8; /* 5 needed */
70  ushort line_break_class : 8; /* 6 needed */
71  ushort direction : 8; /* 5 needed */
74  signed short digitValue : 6; /* 5 needed */
79  ushort caseFoldSpecial : 1; /* currently unused */
80  signed short mirrorDiff : 16;
81  signed short lowerCaseDiff : 16;
82  signed short upperCaseDiff : 16;
83  signed short titleCaseDiff : 16;
84  signed short caseFoldDiff : 16;
85  ushort graphemeBreak : 8; /* 4 needed */
86  ushort wordBreak : 8; /* 4 needed */
87  ushort sentenceBreak : 8; /* 4 needed */
88  };
91 
92  // See http://www.unicode.org/reports/tr24/tr24-5.html
93  enum Script {
161  };
162  enum { ScriptSentinel = 32 };
163 
164 
176  };
177 
178 
179  enum WordBreak {
188  };
189 
190 
203  };
204 
205 
206  // see http://www.unicode.org/reports/tr14/tr14-19.html
207  // we don't use the XX, AI and CB properties and map them to AL instead.
208  // as we don't support any EBDIC based OS'es, NL is ignored and mapped to AL as well.
217  };
218 
219 
221  inline int lineBreakClass(const QChar &ch)
222  { return lineBreakClass(ch.unicode()); }
223 
225  inline int script(const QChar &ch)
226  { return script(ch.unicode()); }
227 
228 } // namespace QUnicodeTables
229 
231 
232 #endif // QUNICODETABLES_P_H
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qchar.h:251
#define QT_FASTCALL
Definition: qglobal.h:1161
The QChar class provides a 16-bit Unicode character.
Definition: qchar.h:72
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
Q_CORE_EXPORT QUnicodeTables::LineBreakClass QT_FASTCALL lineBreakClass(uint ucs4)
unsigned int uint
Definition: qglobal.h:996
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
#define Q_CORE_EXPORT
Definition: qglobal.h:1449
unsigned short ushort
Definition: qglobal.h:995
Q_CORE_EXPORT const Properties *QT_FASTCALL properties(uint ucs4)