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
qdataurl_p.h File Reference

(ac9e9687559df28dbd6bc9bb645006ff454e18bd)

#include <QtCore/private/qglobal_p.h>
#include "QtCore/qurl.h"
#include "QtCore/qbytearray.h"
#include "QtCore/qstring.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(), QByteArray::fromPercentEncoding(), QUrl::FullyEncoded, QUrl::host(), i, QByteArrayView::indexOf(), QString::isEmpty(), QByteArray::mid(), mimeType, pos, QStringLiteral, QUrl::RemoveScheme, QUrl::scheme(), QLatin1StringView::size(), 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: