KIO
#include "dataprotocol.h"#include <kdebug.h>#include <kurl.h>#include "global.h"#include <kglobal.h>#include <QtCore/QByteArray>#include <QtCore/QCharRef>#include <QtCore/QMutableStringListIterator>#include <QtCore/QTextCodec>
Go to the source code of this file.
Macros | |
| #define | DISPATCH(f) dispatch_##f | 
Functions | |
| static QString | extract (const QByteArray &buf, int &pos, const char c1= '\0') | 
| static int | find (const QByteArray &buf, int begin, const char c1) | 
| static void | ignoreWS (const QString &buf, int &pos) | 
| static DataHeader | parseDataHeader (const KUrl &url, const bool mimeOnly) | 
| static QString | parseQuotedString (const QString &buf, int &pos) | 
Macro Definition Documentation
Definition at line 37 of file dataprotocol.cpp.
Function Documentation
      
  | 
  inlinestatic | 
extracts the string between the current position pos and the first occurrence of either c1 or comma (',') or semicolon (';') exclusively and updates pos to point at the found delimiter or at the end of the buffer if neither character occurred. 
- Parameters
 - 
  
buf buffer where to look for pos zero-indexed position within buffer c1 character to find or '\0' to ignore  
Definition at line 108 of file dataprotocol.cpp.
      
  | 
  static | 
returns the position of the first occurrence of any of the given characters c1 or comma (',') or semicolon (';') or buf.length() if none is contained. 
- Parameters
 - 
  
buf buffer where to look for c begin zero-indexed starting position c1 character to find or '\0' to ignore  
Definition at line 85 of file dataprotocol.cpp.
      
  | 
  inlinestatic | 
ignores all whitespaces
- Parameters
 - 
  
buf buffer to operate on pos position to shift to first non-whitespace character Upon return poswill either point to the first non-whitespace character or to the end of the buffer. 
Definition at line 122 of file dataprotocol.cpp.
parses the header of a data url
- Parameters
 - 
  
url the data url mimeOnly if the only interesting information is the mime type  
- Returns
 - DataHeader structure with the header information
 
Definition at line 166 of file dataprotocol.cpp.
parses a quoted string as per rfc 822.
If trailing quote is missing, the whole rest of the buffer is returned.
- Parameters
 - 
  
buf buffer to operate on pos position pointing to the leading quote  
- Returns
 - the extracted string. 
poswill be updated to point to the character following the trailing quote. 
Definition at line 137 of file dataprotocol.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference