Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qdataurl_p.h File Reference
#include <QtCore/private/qglobal_p.h>
#include "QtCore/qurl.h"
#include "QtCore/qbytearray.h"
#include "QtCore/qstring.h"
#include "QtCore/qpair.h"
+ Include dependency graph for qdataurl_p.h:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE Q_CORE_EXPORT bool qDecodeDataUrl (const QUrl &url, QString &mimeType, QByteArray &payload)
 

Function Documentation

◆ qDecodeDataUrl()

QT_BEGIN_NAMESPACE Q_CORE_EXPORT bool qDecodeDataUrl ( const QUrl uri,
QString mimeType,
QByteArray payload 
)

Decode a data: URL into its mimetype and payload. Returns a null string if the URL could not be decoded.

Definition at line 18 of file qdataurl.cpp.

References Qt::CaseInsensitive, QLatin1StringView::endsWith(), QByteArray::fromBase64(), QString::fromLatin1(), QByteArray::fromPercentEncoding(), QUrl::FullyEncoded, QUrl::host(), i, QString::isEmpty(), QByteArray::mid(), mimeType, pos, QStringLiteral, QUrl::RemoveScheme, QUrl::scheme(), QLatin1StringView::startsWith(), QString::toLatin1(), QByteArray::truncate(), and QUrl::url().

Referenced by QNetworkReplyDataImpl::QNetworkReplyDataImpl(), and QTextDocument::loadResource().

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