LibreOffice Module tools (master) 1
Public Attributes | List of all members
INetContentTypeParameter Struct Reference

#include <inetmime.hxx>

Public Attributes

OString m_sCharset
 The optional character set specification (see RFC 2231), in US-ASCII encoding and converted to lower case. More...
 
OString m_sLanguage
 The optional language specification (see RFC 2231), in US-ASCII encoding and converted to lower case. More...
 
OUString m_sValue
 The attribute value. More...
 
bool m_bConverted
 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. More...
 

Detailed Description

Definition at line 30 of file inetmime.hxx.

Member Data Documentation

◆ m_bConverted

bool INetContentTypeParameter::m_bConverted

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.

Definition at line 65 of file inetmime.hxx.

◆ m_sCharset

OString INetContentTypeParameter::m_sCharset

The optional character set specification (see RFC 2231), in US-ASCII encoding and converted to lower case.

Definition at line 35 of file inetmime.hxx.

◆ m_sLanguage

OString INetContentTypeParameter::m_sLanguage

The optional language specification (see RFC 2231), in US-ASCII encoding and converted to lower case.

Definition at line 40 of file inetmime.hxx.

◆ m_sValue

OUString INetContentTypeParameter::m_sValue

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 specified, it is first tried to convert the value from UTF-8 encoding to Unicode, and if that doesn't work (because the value is not in UTF-8 encoding), it is converted from ISO-8859-1 encoding to Unicode (which will always work). But if a character set is specified and the value cannot be converted from that character set to Unicode, special action is taken to produce a value that can possibly be transformed back into its original form: Any 8-bit character from a non-encoded part of the original value is directly converted to Unicode (effectively handling it as if it was ISO-8859-1 encoded), and any 8-bit character from an encoded part of the original value is mapped to the range U+F800..U+F8FF at the top of the Corporate Use Subarea within Unicode's Private Use Area (effectively adding 0xF800 to the character's numeric value).

Definition at line 59 of file inetmime.hxx.


The documentation for this struct was generated from the following file: