diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/inetmime.hxx | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx index e2c58b5ea056..cd66173a8d6c 100644 --- a/include/tools/inetmime.hxx +++ b/include/tools/inetmime.hxx @@ -30,6 +30,16 @@ struct INetContentTypeParameter { + /** The optional character set specification (see RFC 2231), in US-ASCII + encoding and converted to lower case. + */ + OString m_sCharset; + + /** The optional language specification (see RFC 2231), in US-ASCII + encoding and converted to lower case. + */ + OString m_sLanguage; + /** The attribute value. If the value is a quoted-string, it is 'unpacked.' If a character set is specified, and the value can be converted to Unicode, this is done. Also, if no character set is @@ -49,9 +59,18 @@ struct INetContentTypeParameter */ OUString m_sValue; + /** This is true if the value is successfully converted to Unicode, and + false if the value is a special mixture of ISO-LATIN-1 characters and + characters from Unicode's Private Use Area. + */ + bool m_bConverted; }; -// the key is the m_sAttribute again; all keys are lower case: +/** The key is the name of the attribute, in US-ASCII encoding and converted + to lower case. If a parameter value is split as described in RFC 2231, + there will only be one item for the complete parameter, with the attribute + name lacking any section suffix. + */ typedef std::unordered_map<OString, INetContentTypeParameter, OStringHash> INetContentTypeParameterList; |