40 #include "qplatformdefs.h"
42 #include "private/qdataurl_p.h"
80 while (
data.at(
i) ==
' ')
82 if (
data.at(
i) ==
'=')
83 data.prepend(
"text/plain;");
small capitals from c petite p scientific i
[1]
const QByteArray payload("Qt rocks!")
The QByteArray class provides an array of bytes.
static QByteArray fromPercentEncoding(const QByteArray &pctEncoded, char percent='%')
void truncate(qsizetype pos)
static QByteArray fromBase64(const QByteArray &base64, Base64Options options=Base64Encoding)
QByteArray mid(qsizetype index, qsizetype len=-1) const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal.
bool endsWith(QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
bool startsWith(QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
The QString class provides a Unicode character string.
QByteArray toLatin1() const &
static QString fromLatin1(QByteArrayView ba)
The QUrl class provides a convenient interface for working with URLs.
QString url(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
QString host(ComponentFormattingOptions=FullyDecoded) const
QT_BEGIN_NAMESPACE Q_CORE_EXPORT bool qDecodeDataUrl(const QUrl &uri, QString &mimeType, QByteArray &payload)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QStringLiteral(str)