Qt 6.x
The Qt SDK
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
25{
34};
36
37namespace QUnicodeTools {
38
40{
43};
44
46
47} // namespace QUnicodeTools
49namespace QUnicodeTools {
50
53 WordBreaks = 0x02,
55 LineBreaks = 0x08,
58
59 DontClearAttributes = 0x1000
60};
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
Script
Definition qchar.h:144
\inmodule QtCore
Definition qstringview.h:76
QString str
[2]
Combined button and popup list for selecting options.
Q_CORE_EXPORT void initCharAttributes(QStringView string, const ScriptItem *items, qsizetype numItems, QCharAttributes *attributes, CharAttributeOptions options)
QVarLengthArray< ScriptItem, 64 > ScriptItemArray
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:144
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
Definition qtypeinfo.h:163
unsigned char uchar
Definition qtypes.h:27
ptrdiff_t qsizetype
Definition qtypes.h:70
QList< QTreeWidgetItem * > items