KIOSlave
#include <ctype.h>
#include <QDir>
#include <QMap>
#include <QTextCodec>
#include <QUrl>
#include <kcodecs.h>
#include <kdebug.h>
Go to the source code of this file.
|
static QMap< QString, QString > | contentDispositionParser (const QString &disposition) |
|
static QMap< QString, QString > | contentDispositionParserInternal (const QString &disposition) |
|
static QString | extractMaybeQuotedUntil (const QString &str, int &pos) |
|
static QString | extractUntil (const QString &str, QChar term, int &pos, const char *specials) |
|
static bool | isValidPercentEncoding (const QByteArray &data) |
|
static bool | nextLine (const char input[], int *pos, int end) |
|
static void | skipLWS (const QString &str, int &pos) |
|
static void | skipSpace (const char input[], int *pos, int end) |
|
static bool | specialChar (const QChar &ch, const char *specials) |
|
static QString extractMaybeQuotedUntil |
( |
const QString & |
str, |
|
|
int & |
pos |
|
) |
| |
|
static |
static QString extractUntil |
( |
const QString & |
str, |
|
|
QChar |
term, |
|
|
int & |
pos, |
|
|
const char * |
specials |
|
) |
| |
|
static |
read and parse the input until the given terminator
- Parameters
-
str | input string to parse |
term | terminator |
pos | position marker in the input string |
specials | characters forbidden in this section |
- Returns
- the next section or an empty string if it was invalid
Extracts token-like input until terminator char or EOL. Also skips over the terminator.
pos is correctly incremented even if this functions returns an empty string so this can be used to skip over invalid parts and continue.
Definition at line 336 of file parsinghelpers.cpp.
static bool isValidPercentEncoding |
( |
const QByteArray & |
data | ) |
|
|
static |
static bool nextLine |
( |
const char |
input[], |
|
|
int * |
pos, |
|
|
int |
end |
|
) |
| |
|
static |
static void skipLWS |
( |
const QString & |
str, |
|
|
int & |
pos |
|
) |
| |
|
static |
static void skipSpace |
( |
const char |
input[], |
|
|
int * |
pos, |
|
|
int |
end |
|
) |
| |
|
static |
static bool specialChar |
( |
const QChar & |
ch, |
|
|
const char * |
specials |
|
) |
| |
|
static |
const char attrSpecials[] = "'%()<>@,;:\\\"/[]?=" |
|
static |
const char typeSpecials[] = "{}*'%()<>@,;:\\\"/[]?=" |
|
static |
const char valueSpecials[] = "()<>@,;:\\\"/[]?=" |
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:58 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.