diff options
author | Vincent Richard <[email protected]> | 2004-11-07 10:33:01 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-11-07 10:33:01 +0000 |
commit | 5868c87506b82dbb5d8916d61b9e1528a755b686 (patch) | |
tree | 87defd00ebd954fbad3d9786b9a28bebaa3735ba /src/body.cpp | |
parent | Added tests for media type. (diff) | |
download | vmime-5868c87506b82dbb5d8916d61b9e1528a755b686.tar.gz vmime-5868c87506b82dbb5d8916d61b9e1528a755b686.zip |
Moved encodeAndFold() and decodeAndUnfold() functions from "base.cpp" to "text.cpp".
Diffstat (limited to 'src/body.cpp')
-rw-r--r-- | src/body.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/body.cpp b/src/body.cpp index 78f92b4d..da279b9b 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -258,8 +258,10 @@ void body::generate(utility::outputStream& os, const string::size_type maxLineLe if (!prologText.empty()) { - encodeAndFoldText(os, text(word(prologText, getCharset())), maxLineLength, 0, - NULL, encodeAndFoldFlags::forceNoEncoding | encodeAndFoldFlags::noNewLineSequence); + text prolog(word(prologText, getCharset())); + + prolog.encodeAndFold(os, maxLineLength, 0, + NULL, text::FORCE_NO_ENCODING | text::NO_NEW_LINE_SEQUENCE); os << CRLF; } @@ -279,8 +281,10 @@ void body::generate(utility::outputStream& os, const string::size_type maxLineLe if (!epilogText.empty()) { - encodeAndFoldText(os, text(word(epilogText, getCharset())), maxLineLength, 0, - NULL, encodeAndFoldFlags::forceNoEncoding | encodeAndFoldFlags::noNewLineSequence); + text epilog(word(epilogText, getCharset())); + + epilog.encodeAndFold(os, maxLineLength, 0, + NULL, text::FORCE_NO_ENCODING | text::NO_NEW_LINE_SEQUENCE); os << CRLF; } |