comments only
This commit is contained in:
parent
c5b545c1a4
commit
258bad35c0
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: mimeparse.cpp,v 1.10 2006-01-23 13:32:28 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: mimeparse.cpp,v 1.11 2006-09-05 08:04:36 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -32,14 +32,14 @@ static char rcsid[] = "@(#$Id: mimeparse.cpp,v 1.10 2006-01-23 13:32:28 dockes E
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
#endif /* NO_NAMESPACES */
|
#endif /* NO_NAMESPACES */
|
||||||
|
|
||||||
// Parsing a header value. Only content-type has parameters, but
|
// Parsing a header value. Only content-type and content-disposition
|
||||||
// others are compatible with content-type syntax, only, parameters
|
// have parameters, but others are compatible with content-type
|
||||||
// are not used. So we can parse all like content-type:
|
// syntax, only, parameters are not used. So we can parse all like
|
||||||
|
// content-type:
|
||||||
// headertype: value [; paramname=paramvalue] ...
|
// headertype: value [; paramname=paramvalue] ...
|
||||||
// Value and paramvalues can be quoted strings, and there can be
|
// Value and paramvalues can be quoted strings, and there can be
|
||||||
// comments in there
|
// comments too
|
||||||
|
// Ref: RFC2045/6/7 (MIME) RFC1806 (content-disposition)
|
||||||
|
|
||||||
|
|
||||||
// The lexical token returned by find_next_token
|
// The lexical token returned by find_next_token
|
||||||
class Lexical {
|
class Lexical {
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
#ifndef _MIME_H_INCLUDED_
|
#ifndef _MIME_H_INCLUDED_
|
||||||
#define _MIME_H_INCLUDED_
|
#define _MIME_H_INCLUDED_
|
||||||
/* @(#$Id: mimeparse.h,v 1.5 2006-01-30 11:15:28 dockes Exp $ (C) 2004 J.F.Dockes */
|
/* @(#$Id: mimeparse.h,v 1.6 2006-09-05 08:04:36 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
@ -44,6 +44,8 @@ extern bool qp_decode(const std::string& in, std::string &out);
|
|||||||
/** Decode an Internet mail header value encoded according to rfc2047
|
/** Decode an Internet mail header value encoded according to rfc2047
|
||||||
*
|
*
|
||||||
* Example input: =?iso-8859-1?Q?RE=A0=3A_Smoke_Tests?=
|
* Example input: =?iso-8859-1?Q?RE=A0=3A_Smoke_Tests?=
|
||||||
|
* The input normally comes from parseMimeHeaderValue() output
|
||||||
|
* and no comments or quoting are expected.
|
||||||
* @param in input string, ascii with rfc2047 markup
|
* @param in input string, ascii with rfc2047 markup
|
||||||
* @return out output string encoded in utf-8
|
* @return out output string encoded in utf-8
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user