![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/private/qglobal_p.h>
#include "QtCore/qurl.h"
#include "QtCore/qbytearray.h"
#include "QtCore/qstring.h"
#include "QtCore/qpair.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) |
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().