From 03a0e36e91070a1bcfb13babaaefec4ea258723e Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 30 Jun 2014 22:48:42 +0200 Subject: Added support for language specification in RFC-2047 encoded words and RFC-2231 parameter values. --- tests/testUtils.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/testUtils.hpp') diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index 2476787b..367be623 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -119,7 +119,14 @@ inline std::ostream& operator<<(std::ostream& os, const vmime::charset& ch) inline std::ostream& operator<<(std::ostream& os, const vmime::word& w) { - os << "[word: charset=" << w.getCharset().getName() << ", buffer=" << w.getBuffer() << "]"; + os << "[word: charset=" << w.getCharset().getName() + << ", buffer=" << w.getBuffer(); + + if (!w.getLanguage().empty()) + os << ", lang=" << w.getLanguage(); + + os << "]"; + return (os); } -- cgit v1.2.3