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
qrestreply.cpp File Reference

(0fef8f53c3e52dd31648c55a2376006f223a7054)

#include "qrestreply.h"
#include "qrestreply_p.h"
#include <QtNetwork/private/qnetworkreply_p.h>
#include <QtCore/qbytearrayview.h>
#include <QtCore/qjsondocument.h>
#include <QtCore/qlatin1stringmatcher.h>
#include <QtCore/qlatin1stringview.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/qstringconverter.h>
#include <QtCore/qxpfunctional.h>
+ Include dependency graph for qrestreply.cpp:

Go to the source code of this file.

Functions

static QLatin1StringView operationName (QNetworkAccessManager::Operation operation)
 
QDebug operator<< (QDebug debug, const QRestReply &reply)
 
static constexpr auto parse_OWS (QByteArrayView data) noexcept
 
static constexpr void eat_OWS (QByteArrayView &data) noexcept
 
static constexpr auto parse_quoted_string (QByteArrayView data, qxp::function_ref< void(char) const > yield)
 
static constexpr bool is_tchar (char ch) noexcept
 
static constexpr auto parse_comment (QByteArrayView data) noexcept
 
static constexpr void eat_CWS (QByteArrayView &data) noexcept
 
static constexpr auto parse_token (QByteArrayView data) noexcept
 
static constexpr auto parse_parameter (QByteArrayView data, qxp::function_ref< void(char) const > yield)
 
static auto parse_content_type (QByteArrayView data)
 

Function Documentation

◆ eat_CWS()

static constexpr void eat_CWS ( QByteArrayView & data)
staticconstexprnoexcept

Definition at line 462 of file qrestreply.cpp.

References eat_OWS(), and parse_comment().

Referenced by parse_content_type(), and parse_parameter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eat_OWS()

static constexpr void eat_OWS ( QByteArrayView & data)
staticconstexprnoexcept

Definition at line 359 of file qrestreply.cpp.

References parse_OWS().

Referenced by eat_CWS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_tchar()

static constexpr bool is_tchar ( char ch)
staticconstexprnoexcept

Definition at line 396 of file qrestreply.cpp.

References ch.

Referenced by parse_token().

+ Here is the caller graph for this function:

◆ operationName()

◆ operator<<()

QDebug operator<< ( QDebug debug,
const QRestReply & reply )

Definition at line 320 of file qrestreply.cpp.

◆ parse_comment()

static constexpr auto parse_comment ( QByteArrayView data)
staticconstexprnoexcept

Definition at line 423 of file qrestreply.cpp.

References i, QByteArrayView::isEmpty(), and R.

Referenced by eat_CWS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_content_type()

static auto parse_content_type ( QByteArrayView data)
static

Definition at line 531 of file qrestreply.cpp.

References Qt::CaseInsensitive, ch, eat_CWS(), QLatin1StringView::isEmpty(), parse_parameter(), parse_token(), R, and QLatin1StringView::sliced().

Referenced by QRestReplyPrivate::contentCharset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_OWS()

static constexpr auto parse_OWS ( QByteArrayView data)
staticconstexprnoexcept

Definition at line 344 of file qrestreply.cpp.

References ch, i, and R.

Referenced by eat_OWS().

+ Here is the caller graph for this function:

◆ parse_parameter()

static constexpr auto parse_parameter ( QByteArrayView data,
qxp::function_ref< void(char) const > yield )
staticconstexpr

Definition at line 485 of file qrestreply.cpp.

References eat_CWS(), QByteArrayView::isEmpty(), parse_quoted_string(), parse_token(), Q_UNLIKELY, and R.

Referenced by parse_content_type().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_quoted_string()

static constexpr auto parse_quoted_string ( QByteArrayView data,
qxp::function_ref< void(char) const > yield )
staticconstexpr

Definition at line 364 of file qrestreply.cpp.

References ch, i, QByteArrayView::isEmpty(), and R.

Referenced by parse_parameter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_token()

static constexpr auto parse_token ( QByteArrayView data)
staticconstexprnoexcept

Definition at line 471 of file qrestreply.cpp.

References i, is_tchar(), R, and token.

Referenced by parse_content_type(), and parse_parameter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: