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
qjsonparser_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
QJSONPARSER_P_H
6
#
define
QJSONPARSER_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 purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
20
#
include
<
QtCore
/
private
/
qcborvalue_p
.
h
>
21
#
include
<
QtCore
/
qjsondocument
.
h
>
22
#
include
<
QtCore
/
qutf8stringview
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
namespace
QJsonPrivate
{
27
28
class
Parser
29
{
30
public
:
31
explicit
Parser
(QUtf8StringView json);
32
33
QCborValue
parse
(QJsonParseError *error);
34
35
private
:
36
inline
void
eatBOM();
37
inline
bool
eatSpace();
38
inline
char
nextToken();
39
40
bool
parseObject();
41
bool
parseArray();
42
bool
parseMember();
43
bool
parseString();
44
bool
parseValueIntoContainer();
45
QCborValue parseValue();
46
QCborValue parseNumber();
47
const
char
*head;
48
const
char
*json;
49
const
char
*end;
50
51
int
nestingLevel;
52
QJsonParseError::ParseError lastError;
53
QExplicitlySharedDataPointer<QCborContainerPrivate> container;
54
};
55
56
}
57
58
QT_END_NAMESPACE
59
60
#
endif
QByteArray::FromBase64Result
\inmodule QtCore
Definition
qbytearray.h:824
QJsonDocumentPrivate
Definition
qjsondocument.cpp:53
QJsonDocumentPrivate::QJsonDocumentPrivate
QJsonDocumentPrivate()=default
QJsonDocumentPrivate::QJsonDocumentPrivate
QJsonDocumentPrivate(QCborValue data)
Definition
qjsondocument.cpp:57
QJsonDocumentPrivate::value
QCborValue value
Definition
qjsondocument.cpp:59
QJsonPrivate::Parser
Definition
qjsonparser_p.h:29
QJsonPrivate::Parser::parse
QCborValue parse(QJsonParseError *error)
Definition
qjsonparser.cpp:280
QJsonPrivate::Parser::Parser
Parser(QUtf8StringView json)
Definition
qjsonparser.cpp:181
QJsonPrivate
Definition
qcborarray.h:17
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
operator>>
QDataStream & operator>>(QDataStream &s, QKeyCombination &combination)
Definition
qdatastream.h:699
comparesEqual
bool comparesEqual(const QFileInfo &lhs, const QFileInfo &rhs)
Definition
qfileinfo.cpp:469
qtbase
src
corelib
serialization
qjsonparser_p.h
Generated on
for Qt by
1.18.0