Got it compiling and somewhat working, except post.

This commit is contained in:
Brad Arant committed 2020-11-29 13:58:17 -08:00
1 parent 41852d019c
commit b6f4bf8a71
8 files changed
+69 -38

No files matched your search

+10 -16
View File
@@ -1,5 +1,6 @@
#include "IMFHeader.h"
#include "Exception.h"
#include "Log.h"
namespace coreutils {
@@ -8,25 +9,18 @@ namespace coreutils {
}
IMFHeader::IMFHeader(PString &in) {
printf("in='%s'\n", in.str().c_str());
key = in.getTokenInclude("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-0123456789");
if(key.length() != 0) {
if(!in.ifNext(":")) {
printf("key=%s %02X\n", key.c_str(), in.str()[0]);
throw coreutils::Exception("Invalid character in expected header token.");
}
in.skipWhitespace();
value = in.str();
if(!in.ifNext(":")) {
printf("key=%s %02X\n", key.c_str(), in.str()[0]);
throw coreutils::Exception("Invalid character in expected header token.");
}
in.skipWhitespace();
value = in.goeol();
}
else if(in.skipWhitespace() > 0) {
}
else if(in.str() == "") {
}
else if(in.skipWhitespace() > 0) {}
else if(in.str() == "") {}
coreutils::Log(coreutils::LOG_DEBUG_2) << " " << key << "[" << value << "]";
}
IMFHeader::IMFHeader(std::string key, std::string value) {