23 #ifndef TUFAO_QUERYSTRING_H
24 #define TUFAO_QUERYSTRING_H
26 #include "tufao_global.h"
27 #include <QtCore/QMap>
36 namespace QueryString {
55 TUFAO_EXPORT QByteArray
stringify(
const QMap<QByteArray, QByteArray> &map,
56 char sep =
'&',
char eq =
'=',
57 bool percentEncoding =
true,
77 TUFAO_EXPORT QMap<QByteArray, QByteArray>
parse(
const QByteArray &
string,
78 char sep =
'&',
char eq =
'=',
79 bool percentEncoding =
true,
86 #endif // TUFAO_QUERYSTRING_H
TUFAO_EXPORT QByteArray stringify(const QMap< QByteArray, QByteArray > &map, char sep= '&', char eq= '=', bool percentEncoding=true, char percent= '%')
Serialize an object to a query string.
TUFAO_EXPORT QMap< QByteArray, QByteArray > parse(const QByteArray &string, char sep= '&', char eq= '=', bool percentEncoding=true, char percent= '%')
Deserialize a query string to an object.