From 5868c87506b82dbb5d8916d61b9e1528a755b686 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 7 Nov 2004 10:33:01 +0000 Subject: Moved encodeAndFold() and decodeAndUnfold() functions from "base.cpp" to "text.cpp". --- src/body.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/body.cpp') 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; } -- cgit v1.2.3