diff options
author | Vincent Richard <[email protected]> | 2005-11-04 23:21:22 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-11-04 23:21:22 +0000 |
commit | acfa9ffc64f56de42049bf5049810c15477729ed (patch) | |
tree | 3bb84a7319fb209c00f656927c83965f03bd5329 /src/text.cpp | |
parent | Fixed typo for 'ac_cv_sizeof_long'. (diff) | |
download | vmime-acfa9ffc64f56de42049bf5049810c15477729ed.tar.gz vmime-acfa9ffc64f56de42049bf5049810c15477729ed.zip |
Refactored header field values and parameters.
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/text.cpp b/src/text.cpp index 51593763..8436c44b 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -36,7 +36,7 @@ text::text() text::text(const text& t) - : component() + : headerFieldValue() { copyFrom(t); } @@ -383,4 +383,18 @@ const std::vector <ref <const component> > text::getChildComponents() const } +const string text::getWholeBuffer() const +{ + string res; + + for (std::vector <ref <word> >::const_iterator it = m_words.begin() ; + it != m_words.end() ; ++it) + { + res += (*it)->getBuffer(); + } + + return res; +} + + } // vmime |