aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2015-02-19 20:24:41 +0000
committerVincent Richard <[email protected]>2015-02-19 20:24:41 +0000
commit19321f9026ea5b49a226f47b12be02f3a02795c9 (patch)
tree4de2725957db5572c80c71dc7ed822cbeead94dc /src
parentMade word/parameter constructor with 'string' explicit to avoid implicit use ... (diff)
downloadvmime-19321f9026ea5b49a226f47b12be02f3a02795c9.tar.gz
vmime-19321f9026ea5b49a226f47b12be02f3a02795c9.zip
Fixed unit test so that is does not depend on the current locale charset.
Diffstat (limited to 'src')
-rw-r--r--src/vmime/parameter.hpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/vmime/parameter.hpp b/src/vmime/parameter.hpp
index a97408b9..d1e6ea72 100644
--- a/src/vmime/parameter.hpp
+++ b/src/vmime/parameter.hpp
@@ -44,8 +44,26 @@ private:
public:
- explicit parameter(const string& name);
+ /** Construct a parameter with no value.
+ * Charset is set to the current locale charset.
+ *
+ * @param name parameter name
+ */
+ parameter(const string& name);
+
+ /** Construct a parameter given a name and a value.
+ *
+ * @param name parameter name
+ * @param value parameter value
+ */
parameter(const string& name, const word& value);
+
+ /** Construct a parameter given a name and a string value
+ * expressed in the current locale charset.
+ *
+ * @param name parameter name
+ * @param value parameter value
+ */
parameter(const string& name, const string& value);