Many additions and changes.
This commit is contained in:
1 parent
50f6e972de
commit
08169b1c3d
30 files changed
+451
-63
No files matched your search
+7
-1
@@ -1,4 +1,5 @@
|
||||
#include "IMFMultipart.h"
|
||||
#include "PString.h"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
@@ -10,7 +11,12 @@ namespace coreutils {
|
||||
buffer = in.str();
|
||||
in.cursor -= 2;
|
||||
sections = in.split("\r\n--" + boundary);
|
||||
|
||||
for(int ix = 0; ix < sections.size(); ++ix) {
|
||||
if(sections[ix].str() == "--\r\n")
|
||||
sections[ix] = PString("");
|
||||
if(sections[ix].str().substr(0, 2) == "\r\n")
|
||||
sections[ix].cursor += 2;
|
||||
}
|
||||
}
|
||||
|
||||
std::string IMFMultipart::toString() {
|
||||
|
||||
Reference in new issue
Block a user