diff options
| author | Vincent Richard <[email protected]> | 2012-04-16 20:32:33 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2012-04-16 20:32:33 +0000 |
| commit | 4f33877820edee1b47d1b6f4fc800eaad273adaa (patch) | |
| tree | 10d5d339f17f2561ef46993de308c2e7d8a9fd79 /src/header.cpp | |
| parent | Split stream.hpp/.cpp into multiple source files. (diff) | |
| download | vmime-4f33877820edee1b47d1b6f4fc800eaad273adaa.tar.gz vmime-4f33877820edee1b47d1b6f4fc800eaad273adaa.zip | |
Added ability to parse directly from an input stream (eg. file). This allows very big messages to be parsed without loading the whole message data into memory.
Diffstat (limited to 'src/header.cpp')
| -rw-r--r-- | src/header.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/header.cpp b/src/header.cpp index 443aab8b..fcdca2c9 100644 --- a/src/header.cpp +++ b/src/header.cpp @@ -61,7 +61,7 @@ field-body-contents = specials tokens, or else consisting of texts> */ -void header::parse(const string& buffer, const string::size_type position, +void header::parseImpl(const string& buffer, const string::size_type position, const string::size_type end, string::size_type* newPosition) { string::size_type pos = position; @@ -83,7 +83,7 @@ void header::parse(const string& buffer, const string::size_type position, } -void header::generate(utility::outputStream& os, const string::size_type maxLineLength, +void header::generateImpl(utility::outputStream& os, const string::size_type maxLineLength, const string::size_type /* curLinePos */, string::size_type* newLinePos) const { // Generate the fields @@ -337,9 +337,9 @@ const std::vector <ref <headerField> > header::getFieldList() } -const std::vector <ref <const component> > header::getChildComponents() const +const std::vector <ref <component> > header::getChildComponents() { - std::vector <ref <const component> > list; + std::vector <ref <component> > list; copy_vector(m_fields, list); |
