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>.
|
#include <QtCore/private/qglobal_p.h>
#include "QtCore/qurl.h"
#include "QtCore/qbytearray.h"
#include "QtCore/qstring.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(), 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().