5#ifndef QDOCHTMLEXTRACTOR_P_H
6#define QDOCHTMLEXTRACTOR_P_H
19#include <QtQmlDom/private/qqmldomtop_p.h>
27 enum class ExtractionMode :
char { Simplified, Extended };
29 virtual QString extract(
const QString &code,
const QString &keyword, ExtractionMode mode) = 0;
30 virtual ~HtmlExtractor() =
default;
37 QString execute(
const QString &code,
const QString &keyword, HtmlExtractor::ExtractionMode mode);
39 std::unique_ptr<HtmlExtractor> m_extractor;
static constexpr auto lengthOfEndParagraphTag
static constexpr auto lengthOfStartParagraphTag
static void processOutput(QString *html)
Process the string obtained from start mark to end mark. This is duplicated from QtC's Utils::HtmlExt...
static constexpr qsizetype firstIndexOfParagraphTag
static void stripAllHtml(QString *html)
static QString getContentsByMarks(const QString &html, QString startMark, QString endMark)