Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qxmlutils_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
// Qt-Security score:significant reason:header-decls-only
4
5
#
ifndef
QXMLUTILS_P_H
6
#
define
QXMLUTILS_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists for the convenience
13
// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
14
// file may change from version to version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
20
#
include
<
QtCore
/
qstring
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QString;
25
class
QChar;
26
class
QXmlCharRange
;
27
28
/*!
29
\internal
30
\short This class contains helper functions related to XML, for validating character classes,
31
productions in the XML specification, and so on.
32
*/
33
class
Q_CORE_EXPORT
QXmlUtils
34
{
35
public
:
36
static
bool
isEncName(QStringView encName);
37
static
bool
isChar(
const
char32_t
c);
38
static
bool
isNameChar(
const
QChar c);
39
static
bool
isLetter(
const
QChar c);
40
static
bool
isNCName(QStringView ncName);
41
static
bool
isPublicID(QStringView candidate);
42
43
private
:
44
typedef
const
QXmlCharRange *RangeIter;
45
static
bool
rangeContains(RangeIter begin, RangeIter end,
const
QChar c);
46
static
bool
isBaseChar(
const
QChar c);
47
static
bool
isDigit(
const
QChar c);
48
static
bool
isExtender(
const
QChar c);
49
static
bool
isIdeographic(
const
QChar c);
50
static
bool
isCombiningChar(
const
QChar c);
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
QXmlCharRange
Definition
qxmlutils.cpp:22
QXmlCharRange::min
ushort min
Definition
qxmlutils.cpp:24
QXmlCharRange::max
ushort max
Definition
qxmlutils.cpp:25
QXmlUtils
This class contains helper functions related to XML, for validating character classes,...
Definition
qxmlutils_p.h:34
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
g_ideographic_end
static const RangeIter g_ideographic_end
Definition
qxmlutils.cpp:121
g_extender_end
static const RangeIter g_extender_end
Definition
qxmlutils.cpp:178
g_base_end
static const RangeIter g_base_end
Definition
qxmlutils.cpp:115
g_combining_begin
static const QXmlCharRange g_combining_begin[]
Definition
qxmlutils.cpp:128
g_digit_begin
static const QXmlCharRange g_digit_begin[]
Definition
qxmlutils.cpp:158
g_ideographic_begin
static const QXmlCharRange g_ideographic_begin[]
Definition
qxmlutils.cpp:117
g_extender_begin
static const QXmlCharRange g_extender_begin[]
Definition
qxmlutils.cpp:172
RangeIter
const QXmlCharRange * RangeIter
Definition
qxmlutils.cpp:27
g_combining_end
static const RangeIter g_combining_end
Definition
qxmlutils.cpp:150
g_base_begin
static const QXmlCharRange g_base_begin[]
Definition
qxmlutils.cpp:71
g_digit_end
static const RangeIter g_digit_end
Definition
qxmlutils.cpp:164
qtbase
src
corelib
serialization
qxmlutils_p.h
Generated on
for Qt by
1.18.0