Continued development...

This commit is contained in:
Brad Arant committed 2019-08-02 15:43:31 -07:00
1 parent c957bbbb6f
commit 50f6e972de
24 files changed
+243 -40

No files matched your search

+16 -3
View File
@@ -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];
}
}