Changeset c504199e7e127458fff243397776ee854e62b7a3 for msg/entity.hh
- Timestamp:
- 09/02/10 20:10:07 (21 months ago)
- Children:
- e7bbf3c6b857df8ad33c4d39396d693b48a48461
- Parents:
- 62231ec0359b34f6a82b6688a7af97f2eb2ede10
- git-committer:
- Antti-Juhani Kaijanaho <antti-juhani@…> (09/02/10 20:10:07)
- Files:
-
- 1 modified
-
msg/entity.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
msg/entity.hh
r62231ec rc504199 39 39 typedef std::list<std::string>::const_iterator field_iterator; 40 40 41 explicit entity(std::string msgstr); 41 explicit entity(std::string msgstr, 42 std::string default_ct = 43 "text/plain; charset=\"US-ASCII\""); 42 44 43 45 virtual ~entity() {} … … 59 61 60 62 61 bool has_field(std::string s) {63 bool has_field(std::string s) const{ 62 64 boost::to_lower(s); 63 65 return fields.find(s) != fields.end(); … … 82 84 83 85 private: 86 std::string default_ct; 84 87 // this split is to both provide a fast name lookup 85 88 // and to preserve the field ordering
