Parent: [d392d3] (diff)

Child: [43fb17] (diff)

Download this file

mimeparse.h    21 lines (16 with data), 645 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _MIME_H_INCLUDED_
#define _MIME_H_INCLUDED_
/* @(#$Id: mimeparse.h,v 1.3 2005-10-15 12:18:04 dockes Exp $ (C) 2004 J.F.Dockes */
#include <string>
#include <map>
// Simple (no quoting) mime value parser. Input: "value; pn1=pv1; pn2=pv2
class MimeHeaderValue {
public:
std::string value;
std::map<std::string, std::string> params;
};
extern bool parseMimeHeaderValue(const std::string& in, MimeHeaderValue& psd);
bool qp_decode(const std::string& in, std::string &out);
bool base64_decode(const std::string& in, std::string &out);
bool rfc2047_decode(const std::string& in, std::string &out);
#endif /* _MIME_H_INCLUDED_ */