4#include "qplatformdefs.h"
6#include "private/qdataurl_p.h"
41 constexpr auto base64 =
";base64"_L1;
44 data.chop(base64.size());
48 constexpr auto charset =
"charset"_L1;
51 while (
data.at(
i) ==
' ')
53 if (
data.at(
i) ==
'=')
54 textPlain =
"text/plain;"_L1;
qsizetype indexOf(QByteArrayView a, qsizetype from=0) const noexcept
static QByteArray fromPercentEncoding(const QByteArray &pctEncoded, char percent='%')
void truncate(qsizetype pos)
Truncates the byte array at index position pos.
static QByteArray fromBase64(const QByteArray &base64, Base64Options options=Base64Encoding)
QByteArray mid(qsizetype index, qsizetype len=-1) const &
bool endsWith(QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
constexpr qsizetype size() const noexcept
bool startsWith(QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toLatin1() const &
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
QString url(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
QString host(ComponentFormattingOptions=FullyDecoded) const
Returns the host of the URL if it is defined; otherwise an empty string is returned.
QString scheme() const
Returns the scheme of the URL.
Combined button and popup list for selecting options.
Q_CORE_EXPORT bool qDecodeDataUrl(const QUrl &uri, QString &mimeType, QByteArray &payload)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QStringLiteral(str)