1
/***************************************************************************
2
mimehdrline.h - description
4
begin : Wed Oct 11 2000
5
copyright : (C) 2000 by Sven Carstens
6
email : s.carstens@gmx.de
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
23
#include <qasciidict.h>
26
*@author Sven Carstens
33
mimeHdrLine (mimeHdrLine *);
34
mimeHdrLine (const QCString &, const QCString &);
36
/** parse a Line into the class
37
and report characters slurped */
38
int setStr (const char *);
39
int appendStr (const char *);
40
/** return the value */
41
const QCString getValue ();
42
/** return the label */
43
const QCString getLabel ();
44
static QCString truncateLine (QCString, unsigned int truncate = 80);
45
static int parseSeparator (char, const char *);
46
static int parseQuoted (char, char, const char *);
47
/** skip all white space characters */
48
static int skipWS (const char *);
49
/** slurp one word respecting backticks */
50
static int parseHalfWord (const char *);
51
static int parseWord (const char *);
52
static int parseAlphaNum (const char *);
54
protected: // Protected attributes
55
/** contains the Value
58
/** contains the Label of the line
61
protected: // Protected methods
62
/** parses a continuated line */
63
int parseFullLine (const char *);
64
int parseHalfLine (const char *);