Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qunicodetools_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QUNICODETOOLS_P_H
5#define QUNICODETOOLS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/private/qglobal_p.h>
19#include <QtCore/qchar.h>
20#include <QtCore/qvarlengtharray.h>
21
23
36
37namespace QUnicodeTools {
38
40{
42 QChar::Script script;
43};
44
45using ScriptItemArray = QVarLengthArray<ScriptItem, 64>;
46
47} // namespace QUnicodeTools
49namespace QUnicodeTools {
50
61Q_DECLARE_FLAGS(CharAttributeOptions, CharAttributeOption)
62
63// attributes buffer has to have a length of string length + 1
64Q_CORE_EXPORT void initCharAttributes(QStringView str,
65 const ScriptItem *items, qsizetype numItems,
66 QCharAttributes *attributes, CharAttributeOptions options);
67
68
69Q_CORE_EXPORT void initScripts(QStringView str, ScriptItemArray *scripts);
70
71} // namespace QUnicodeTools
72
74
75#endif // QUNICODETOOLS_P_H
\inmodule QtCore
Definition qstringview.h:78
QString str
[2]
Combined button and popup list for selecting options.
QVarLengthArray< ScriptItem, 64 > ScriptItemArray
Q_CORE_EXPORT void initCharAttributes(QStringView string, const ScriptItem *items, qsizetype numItems, QCharAttributes *attributes, CharAttributeOptions options)
Q_CORE_EXPORT void initScripts(QStringView string, ScriptItemArray *scripts)
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition qflags.h:174
@ Q_PRIMITIVE_TYPE
Definition qtypeinfo.h:157
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
Definition qtypeinfo.h:180
unsigned char uchar
Definition qtypes.h:32
ptrdiff_t qsizetype
Definition qtypes.h:165
QList< QTreeWidgetItem * > items