Continued development...
This commit is contained in:
1 parent
c957bbbb6f
commit
50f6e972de
24 files changed
+243
-40
No files matched your search
+16
-3
@@ -3,13 +3,26 @@
|
||||
namespace coreutils {
|
||||
|
||||
IMFMultipart::IMFMultipart() {
|
||||
|
||||
buffer = "";
|
||||
}
|
||||
|
||||
IMFMultipart::IMFMultipart(PString &in, std::string boundary) {
|
||||
buffer = in.str();
|
||||
in.cursor -= 2;
|
||||
section = in.split("\r\n--" + boundary);
|
||||
|
||||
sections = in.split("\r\n--" + boundary);
|
||||
|
||||
}
|
||||
|
||||
std::string IMFMultipart::toString() {
|
||||
return buffer;
|
||||
}
|
||||
|
||||
int IMFMultipart::getCount() {
|
||||
return sections.size();
|
||||
}
|
||||
|
||||
PString IMFMultipart::getSectionAt(int index) {
|
||||
return sections[index];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user