Optmizations for IMF objects.
This commit is contained in:
1 parent
a0129273b3
commit
d4148b0ab4
4 files changed
+11
-371
No files matched your search
+6
-6
@@ -11,18 +11,18 @@ namespace coreutils {
|
||||
IMFHeader::IMFHeader(ZString &in) : ZString(in) {
|
||||
key = in.getTokenInclude((char *)"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-0123456789");
|
||||
if(key.getLength() != 0) {
|
||||
if(!in.ifNext((char *)":")) {
|
||||
printf("key=%s %02X\n", key.str().c_str(), in.str()[0]);
|
||||
throw coreutils::Exception("Invalid character in expected header token.");
|
||||
}
|
||||
in.skipWhitespace();
|
||||
if(!in.ifNext((char *)":")) {
|
||||
printf("key=%s %02X\n", key.str().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() == "") {}
|
||||
coreutils::Log(coreutils::LOG_DEBUG_2) << " " << key << "[" << value << "]";
|
||||
}
|
||||
|
||||
|
||||
IMFHeader::IMFHeader(ZString key, ZString value) : ZString() {
|
||||
this->key = key;
|
||||
this->value = value;
|
||||
|
||||
Reference in new issue
Block a user