add dictionary contents as message editor table column

This commit is contained in:
scawful
2024-08-19 10:22:17 -04:00
parent 20dc6e4ba7
commit f214f25512
2 changed files with 27 additions and 5 deletions

View File

@@ -51,10 +51,6 @@ struct MessageData {
return absl::StrFormat("%0X - %s", ID, ContentsParsed);
}
std::string GetDumpedContents() {
return absl::StrFormat("%000X : %s\r\n\r\n", ID, ContentsParsed);
}
std::string OptimizeMessageForDictionary(std::string messageString) {
std::stringstream protons;
bool command = false;
@@ -78,6 +74,11 @@ struct MessageData {
return finalString;
}
void SetMessage(const std::string& message) {
RawString = message;
ContentsParsed = OptimizeMessageForDictionary(message);
}
};
struct TextElement {