12 static QString fromUrlEncoding(
const QByteArray &enc);
13 static QByteArray toUrlEncoding(
const QString &input,
const QByteArray &exclude =
"-._");
14 static QList<QPair<QString, QString>> fromFormUrlEncoded(
const QByteArray &enc);
16 static QString htmlEscape(
int n);
17 static QString htmlEscape(uint n);
18 static QString htmlEscape(
long n);
19 static QString htmlEscape(ulong n);
20 static QString htmlEscape(qlonglong n);
21 static QString htmlEscape(qulonglong n);
22 static QString htmlEscape(
double n);
26 static QString jsonEscape(
const QString &input);
27 static QString jsonEscape(
const char *input);
28 static QString jsonEscape(
const QByteArray &input);
29 static QString jsonEscape(
const QVariant &input);
30 static QByteArray toMimeEncoded(
const QString &input,
const QByteArray &encoding =
"UTF-8");
31 static QByteArray toMimeEncoded(
const QString &input, QStringConverter::Encoding encoding);
32 static QString fromMimeEncoded(
const QByteArray &mime);
33 static QByteArray getResponseReasonPhrase(
int statusCode);
34 static QString trimmedQuotes(
const QString &
string);
35 static QByteArray timeZone();
36 static QByteArray toHttpDateTimeString(
const QDateTime &dateTime);
37 static QDateTime fromHttpDateTimeString(
const QByteArray &localTime);
39 static QDateTime fromHttpDateTimeUTCString(
const QByteArray &utc);
40 static QByteArray getUTCTimeString();
static QString trimmedQuotes(const QString &string)
Returns a string that has quotes removed from the start and the end.
Definition thttputility.h:109
static QString htmlEscape(const QString &input, Tf::EscapeFlag flag=Tf::Quotes)
Returns a converted copy of input.
Definition thttputility.cpp:129