Work on the IMFHeader and IMFMessage.

This commit is contained in:
Brad Arant committed 2024-11-11 15:58:58 -08:00
1 parent 2e8bb4a123
commit 01180021b4
5 files changed
+22 -5

No files matched your search

+5 -1
View File
@@ -1,16 +1,20 @@
#include "IMFHeader.h"
#include "Exception.h"
#include "Log.h"
#include <iostream>
namespace coreutils {
IMFHeader::IMFHeader(ZString &in) : ZString(in) {
key = in.getTokenInclude("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_0123456789");
std::cout << "key: [" << key << "]" << std::endl;
if(key.getLength() != 0) {
if(!in.ifNext(":"))
throw coreutils::Exception("Invalid character in expected header token.");
in.skipWhitespace();
value = in.goeol();
value = in.goeolwithContinuation();
std::cout << "header: [" << value << "]" << std::endl;
}
else if(in.skipWhitespace() > 0) {}
else if(in.str() == "") {}