/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Prepended by Firefox when writing text/html to the clipboard or drag source // so that GetHTMLCharset always finds a UTF-8 declaration. Stripped on // read-back by DecodeHTMLData. inline constexpr char kHTMLMarkupPrefix[] =
R"(<meta http-equiv="content-type" content="text/html; charset=utf-8">)";
// Detect the character encoding from an HTML fragment. Looks for a // <meta http-equiv="content-type" content="text/html; charset=..."> tag. // Returns true and sets aFoundCharset when a charset is found; returns false // otherwise. This parser exists for StarOffice/LibreOffice compatibility // (bug 123389) and supports a narrow subset of HTML meta-charset syntax. bool GetHTMLCharset(Span<constchar> aData, nsCString& aFoundCharset);
// Decode an HTML byte sequence to a UTF-16 string. The charset is detected // from the HTML content itself via GetHTMLCharset; if none is found, UTF-8 is // assumed. Returns true on success. bool DecodeHTMLData(Span<constchar> aData, nsString& aOutDecoded);
} // namespace mozilla::widget
#endif// nsGtkHtmlUtils_h_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.22 Sekunden
(vorverarbeitet am 2026-09-29)
¤
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.