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

KIOSlave

  • sources
  • kde-4.12
  • kdelibs
  • kioslave
  • http
Functions | Variables
parsinghelpers.cpp File Reference
#include <ctype.h>
#include <QDir>
#include <QMap>
#include <QTextCodec>
#include <QUrl>
#include <kcodecs.h>
#include <kdebug.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 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)
 

Variables

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

Function Documentation

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

Definition at line 581 of file parsinghelpers.cpp.

static QMap<QString, QString> contentDispositionParserInternal ( const QString &  disposition)
static

Definition at line 428 of file parsinghelpers.cpp.

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

Definition at line 370 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 336 of file parsinghelpers.cpp.

static bool isValidPercentEncoding ( const QByteArray &  data)
static

Definition at line 71 of file parsinghelpers.cpp.

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

Definition at line 44 of file parsinghelpers.cpp.

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

Definition at line 289 of file parsinghelpers.cpp.

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

Definition at line 32 of file parsinghelpers.cpp.

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

Definition at line 301 of file parsinghelpers.cpp.

Variable Documentation

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

Definition at line 298 of file parsinghelpers.cpp.

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

Definition at line 297 of file parsinghelpers.cpp.

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

Definition at line 299 of file parsinghelpers.cpp.

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.

KIOSlave

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal