From 6fd4de8fb59dd58a796522425cd537625dd5b00b Mon Sep 17 00:00:00 2001 From: bmagistro Date: Sun, 31 Dec 2023 10:10:18 -0500 Subject: Add parsing feedback via parsingContext (#280) * Add parsing feedback via parsingContext Changes the parsing context to be modifiable to be able to provide feedback on the parsing. This allows the user to check if header recovery was necessary, for example, while parsing the current message. Signed-off-by: Ben Magistro Co-authored-by: Vincent Richard --- src/vmime/word.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/vmime/word.hpp') diff --git a/src/vmime/word.hpp b/src/vmime/word.hpp index 1565a0be..c90d908e 100644 --- a/src/vmime/word.hpp +++ b/src/vmime/word.hpp @@ -198,7 +198,7 @@ public: protected: void parseImpl( - const parsingContext& ctx, + parsingContext& ctx, const string& buffer, const size_t position, const size_t end, @@ -213,7 +213,7 @@ protected: ) const; void parseWithState( - const parsingContext& ctx, + parsingContext& ctx, const string& buffer, const size_t position, const size_t end, @@ -241,7 +241,7 @@ public: private: static shared_ptr parseNext( - const parsingContext& ctx, + parsingContext& ctx, const string& buffer, const size_t position, const size_t end, @@ -250,7 +250,7 @@ private: ); static const std::vector > parseMultiple( - const parsingContext& ctx, + parsingContext& ctx, const string& buffer, const size_t position, const size_t end, -- cgit v1.2.3