aboutsummaryrefslogtreecommitdiffstats
path: root/src/vmime/word.hpp
diff options
context:
space:
mode:
authorbmagistro <[email protected]>2023-12-31 15:10:18 +0000
committerGitHub <[email protected]>2023-12-31 15:10:18 +0000
commit6fd4de8fb59dd58a796522425cd537625dd5b00b (patch)
tree2a7a40fd80038a5f6e61e609819c85af4418069c /src/vmime/word.hpp
parentConfigurable email add domain (#287) (diff)
downloadvmime-6fd4de8fb59dd58a796522425cd537625dd5b00b.tar.gz
vmime-6fd4de8fb59dd58a796522425cd537625dd5b00b.zip
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 <[email protected]> Co-authored-by: Vincent Richard <[email protected]>
Diffstat (limited to '')
-rw-r--r--src/vmime/word.hpp8
1 files changed, 4 insertions, 4 deletions
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 <word> 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 <shared_ptr <word> > parseMultiple(
- const parsingContext& ctx,
+ parsingContext& ctx,
const string& buffer,
const size_t position,
const size_t end,