struct INetContentTypeParameter
{ /** The optional character set specification (see RFC 2231), in US-ASCII encodingandconvertedtolowercase.
*/
OString m_sCharset;
/** The optional language specification (see RFC 2231), in US-ASCII encodingandconvertedtolowercase.
*/
OString m_sLanguage;
/** The attribute value. If the value is a quoted-string, it is 'unpacked.'Ifacharactersetisspecified,andthevaluecanbe convertedtoUnicode,thisisdone.Also,ifnocharactersetis specified,itisfirsttriedtoconvertthevaluefromUTF-8encoding toUnicode,andifthatdoesn'twork(becausethevalueisnotin UTF-8encoding),itisconvertedfromISO-8859-1encodingtoUnicode (whichwillalwayswork).Butifacharactersetisspecifiedandthe valuecannotbeconvertedfromthatcharactersettoUnicode,special actionistakentoproduceavaluethatcanpossiblybetransformed backintoitsoriginalform:Any8-bitcharacterfromanon-encoded partoftheoriginalvalueisdirectlyconvertedtoUnicode (effectivelyhandlingitasifitwasISO-8859-1encoded),andany 8-bitcharacterfromanencodedpartoftheoriginalvalueismapped totherangeU+F800..U+F8FFatthetopoftheCorporateUseSubarea withinUnicode'sPrivateUseArea(effectivelyadding0xF800tothe character'snumericvalue).
*/
OUString m_sValue;
/** This is true if the value is successfully converted to Unicode, and falseifthevalueisaspecialmixtureofISO-LATIN-1charactersand charactersfromUnicode'sPrivateUseArea.
*/ bool m_bConverted;
};
/** The key is the name of the attribute, in US-ASCII encoding and converted tolowercase.IfaparametervalueissplitasdescribedinRFC2231, therewillonlybeoneitemforthecompleteparameter,withtheattribute namelackinganysectionsuffix.
*/ typedef std::unordered_map<OString, INetContentTypeParameter>
INetContentTypeParameterList;
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC INetMIME
{ public: /** Check for US-ASCII visible character.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.