• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KIOSlave

Functions | Variables

parsinghelpers.cpp File Reference

#include <QDir>
#include <QMap>
#include <QTextCodec>
#include <QUrl>
#include <kcodecs.h>
Include dependency graph for parsinghelpers.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool consume (const char input[], int *pos, int end, const char *term)
static QMap< QString, QString > contentDispositionParser (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 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)

Variables

static const char attrSpecials [] = "'%()<>@,;:\\\"/[]?="
static const char typeSpecials [] = "{}*'%()<>@,;:\\\"/[]?="
static const char valueSpecials [] = "()<>@,;:\\\"/[]?="

Function Documentation

static bool consume ( const char  input[],
int *  pos,
int  end,
const char *  term 
) [static]

Definition at line 68 of file parsinghelpers.cpp.

static QMap<QString, QString> contentDispositionParser ( const QString &  disposition) [static]

Definition at line 411 of file parsinghelpers.cpp.

static QString extractMaybeQuotedUntil ( const QString &  str,
int &  pos 
) [static]

Definition at line 356 of file parsinghelpers.cpp.

static QString extractUntil ( const QString &  str,
QChar  term,
int &  pos,
const char *  specials 
) [static]

read and parse the input until the given terminator

Parameters:
strinput string to parse
termterminator
posposition marker in the input string
specialscharacters 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 326 of file parsinghelpers.cpp.

static bool nextLine ( const char  input[],
int *  pos,
int  end 
) [static]

Definition at line 40 of file parsinghelpers.cpp.

static void skipLWS ( const QString &  str,
int &  pos 
) [static]

Definition at line 283 of file parsinghelpers.cpp.

static void skipSpace ( const char  input[],
int *  pos,
int  end 
) [static]

Definition at line 28 of file parsinghelpers.cpp.

static bool specialChar ( const QChar &  ch,
const char *  specials 
) [static]

Definition at line 294 of file parsinghelpers.cpp.


Variable Documentation

const char attrSpecials[] = "'%()<>@,;:\\\"/[]?=" [static]

Definition at line 291 of file parsinghelpers.cpp.

const char typeSpecials[] = "{}*'%()<>@,;:\\\"/[]?=" [static]

Definition at line 290 of file parsinghelpers.cpp.

const char valueSpecials[] = "()<>@,;:\\\"/[]?=" [static]

Definition at line 292 of file parsinghelpers.cpp.

KIOSlave

Skip menu "KIOSlave"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal