aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testUtils.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-06-30 20:48:42 +0000
committerVincent Richard <[email protected]>2014-06-30 20:48:42 +0000
commit03a0e36e91070a1bcfb13babaaefec4ea258723e (patch)
tree4e61cb82e31c9dac38265fac988be87c07ec94fb /tests/testUtils.hpp
parentAllow choosing between encoding modes for parameter values. (diff)
downloadvmime-03a0e36e91070a1bcfb13babaaefec4ea258723e.tar.gz
vmime-03a0e36e91070a1bcfb13babaaefec4ea258723e.zip
Added support for language specification in RFC-2047 encoded words and RFC-2231 parameter values.
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r--tests/testUtils.hpp9
1 files changed, 8 insertions, 1 deletions
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);
}