Line | Source Code | Coverage |
---|
1 | /**************************************************************************** | - |
2 | ** | - |
3 | ** Copyright (C) 2013 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 | #include "qharfbuzz_p.h" | - |
43 | | - |
44 | #include "qunicodetables_p.h" | - |
45 | #include "qlibrary.h" | - |
46 | | - |
47 | QT_USE_NAMESPACE | - |
48 | | - |
49 | extern "C" { | - |
50 | | - |
51 | void HB_GetUnicodeCharProperties(HB_UChar32 ch, HB_CharCategory *category, int *combiningClass) | - |
52 | { | - |
53 | const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ch); executed (the execution status of this line is deduced): const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ch); | - |
54 | *category = (HB_CharCategory)prop->category; executed (the execution status of this line is deduced): *category = (HB_CharCategory)prop->category; | - |
55 | *combiningClass = prop->combiningClass; executed (the execution status of this line is deduced): *combiningClass = prop->combiningClass; | - |
56 | } executed: } Execution Count:2917021 | 2917021 |
57 | | - |
58 | HB_CharCategory HB_GetUnicodeCharCategory(HB_UChar32 ch) | - |
59 | { | - |
60 | return (HB_CharCategory)QChar::category(ch); executed: return (HB_CharCategory)QChar::category(ch); Execution Count:75 | 75 |
61 | } | - |
62 | | - |
63 | int HB_GetUnicodeCharCombiningClass(HB_UChar32 ch) | - |
64 | { | - |
65 | return QChar::combiningClass(ch); never executed: return QChar::combiningClass(ch); | 0 |
66 | } | - |
67 | | - |
68 | HB_UChar16 HB_GetMirroredChar(HB_UChar16 ch) | - |
69 | { | - |
70 | return QChar::mirroredChar(ch); never executed: return QChar::mirroredChar(ch); | 0 |
71 | } | - |
72 | | - |
73 | void (*HB_Library_Resolve(const char *library, int version, const char *symbol))() | - |
74 | { | - |
75 | #ifdef QT_NO_LIBRARY | - |
76 | return 0; | - |
77 | #else | - |
78 | return QLibrary::resolve(QLatin1String(library), version, symbol); executed: return QLibrary::resolve(QLatin1String(library), version, symbol); Execution Count:10 | 10 |
79 | #endif | - |
80 | } | - |
81 | | - |
82 | } // extern "C" | - |
83 | | - |
84 | QT_BEGIN_NAMESPACE | - |
85 | | - |
86 | HB_Bool qShapeItem(HB_ShaperItem *item) | - |
87 | { | - |
88 | return HB_ShapeItem(item); executed: return HB_ShapeItem(item); Execution Count:248442 | 248442 |
89 | } | - |
90 | | - |
91 | HB_Face qHBNewFace(void *font, HB_GetFontTableFunc tableFunc) | - |
92 | { | - |
93 | return HB_AllocFace(font, tableFunc); executed: return HB_AllocFace(font, tableFunc); Execution Count:1887 | 1887 |
94 | } | - |
95 | | - |
96 | HB_Face qHBLoadFace(HB_Face face) | - |
97 | { | - |
98 | return HB_LoadFace(face); executed: return HB_LoadFace(face); Execution Count:218 | 218 |
99 | } | - |
100 | | - |
101 | void qHBFreeFace(HB_Face face) | - |
102 | { | - |
103 | HB_FreeFace(face); executed (the execution status of this line is deduced): HB_FreeFace(face); | - |
104 | } executed: } Execution Count:4413 | 4413 |
105 | | - |
106 | QT_END_NAMESPACE | - |
107 | | - |
| | |