Child: [d392d3] (diff)

Download this file

mimeparse.h    18 lines (13 with data), 454 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#ifndef _MIME_H_INCLUDED_
#define _MIME_H_INCLUDED_
/* @(#$Id: mimeparse.h,v 1.1 2005-01-26 11:45:55 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 MimeHeaderValue parseMimeHeaderValue(const std::string &in);
#endif /* _MIME_H_INCLUDED_ */