Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qharfbuzz.cpp |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /**************************************************************************** | - |
2 | ** | - |
3 | ** Copyright (C) 2015 The Qt Company Ltd. | - |
4 | ** Contact: http://www.qt.io/licensing/ | - |
5 | ** | - |
6 | ** This file is part of the QtCore module of the Qt Toolkit. | - |
7 | ** | - |
8 | ** $QT_BEGIN_LICENSE:LGPL21$ | - |
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 The Qt Company. For licensing terms | - |
14 | ** and conditions see http://www.qt.io/terms-conditions. For further | - |
15 | ** information use the contact form at http://www.qt.io/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 or version 3 as published by the Free | - |
20 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and | - |
21 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the | - |
22 | ** following information to ensure the GNU Lesser General Public License | - |
23 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and | - |
24 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | - |
25 | ** | - |
26 | ** As a special exception, The Qt Company gives you certain additional | - |
27 | ** rights. These rights are described in The Qt Company LGPL Exception | - |
28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | - |
29 | ** | - |
30 | ** $QT_END_LICENSE$ | - |
31 | ** | - |
32 | ****************************************************************************/ | - |
33 | - | |
34 | #include "qharfbuzz_p.h" | - |
35 | - | |
36 | #include "qunicodetables_p.h" | - |
37 | #include "qlibrary.h" | - |
38 | - | |
39 | QT_USE_NAMESPACE | - |
40 | - | |
41 | extern "C" { | - |
42 | - | |
43 | void HB_GetUnicodeCharProperties(HB_UChar32 ch, HB_CharCategory *category, int *combiningClass) | - |
44 | { | - |
45 | const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ch); | - |
46 | *category = (HB_CharCategory)prop->category; | - |
47 | *combiningClass = prop->combiningClass; | - |
48 | } never executed: end of block | 0 |
49 | - | |
50 | HB_CharCategory HB_GetUnicodeCharCategory(HB_UChar32 ch) | - |
51 | { | - |
52 | return (HB_CharCategory)QChar::category(ch); never executed: return (HB_CharCategory)QChar::category(ch); | 0 |
53 | } | - |
54 | - | |
55 | int HB_GetUnicodeCharCombiningClass(HB_UChar32 ch) | - |
56 | { | - |
57 | return QChar::combiningClass(ch); never executed: return QChar::combiningClass(ch); | 0 |
58 | } | - |
59 | - | |
60 | HB_UChar16 HB_GetMirroredChar(HB_UChar16 ch) | - |
61 | { | - |
62 | return QChar::mirroredChar(ch); never executed: return QChar::mirroredChar(ch); | 0 |
63 | } | - |
64 | - | |
65 | void (*HB_Library_Resolve(const char *library, int version, const char *symbol))() | - |
66 | { | - |
67 | #ifdef QT_NO_LIBRARY | - |
68 | Q_UNUSED(library); | - |
69 | Q_UNUSED(version); | - |
70 | Q_UNUSED(symbol); | - |
71 | return 0; | - |
72 | #else | - |
73 | return QLibrary::resolve(QLatin1String(library), version, symbol); executed 10 times by 2 tests: return QLibrary::resolve(QLatin1String(library), version, symbol); Executed by:
| 10 |
74 | #endif | - |
75 | } | - |
76 | - | |
77 | } // extern "C" | - |
78 | - | |
79 | QT_BEGIN_NAMESPACE | - |
80 | - | |
81 | HB_Bool qShapeItem(HB_ShaperItem *item) | - |
82 | { | - |
83 | return HB_ShapeItem(item); never executed: return HB_ShapeItem(item); | 0 |
84 | } | - |
85 | - | |
86 | HB_Face qHBNewFace(void *font, HB_GetFontTableFunc tableFunc) | - |
87 | { | - |
88 | return HB_AllocFace(font, tableFunc); never executed: return HB_AllocFace(font, tableFunc); | 0 |
89 | } | - |
90 | - | |
91 | HB_Face qHBLoadFace(HB_Face face) | - |
92 | { | - |
93 | return HB_LoadFace(face); never executed: return HB_LoadFace(face); | 0 |
94 | } | - |
95 | - | |
96 | void qHBFreeFace(HB_Face face) | - |
97 | { | - |
98 | HB_FreeFace(face); | - |
99 | } never executed: end of block | 0 |
100 | - | |
101 | QT_END_NAMESPACE | - |
Source code | Switch to Preprocessed file |