|
Doxygen
|
Helper class to process markdown formatted text. More...
#include <src/markdown.h>
Classes | |
| struct | Private |
Public Member Functions | |
| Markdown (const DString &fileName, int lineNr, int indentLevel=0) | |
| ~Markdown () | |
| DString | process (const DString &input, int &startNewlines, bool fromParseInput=false) |
| DString | extractPageTitle (DString &docs, DString &id, int &prepend, bool &isIdGenerated) |
| void | setIndentLevel (int level) |
Private Types | |
| using | Action_t = std::function<int(Private&,std::string_view,size_t)> |
| using | ActionTable_t = std::array<Action_t,256> |
Static Private Member Functions | |
| static ActionTable_t | fill_table () |
Private Attributes | |
| std::unique_ptr< Private > | prv |
Static Private Attributes | |
| static ActionTable_t | actions = Markdown::fill_table() |
Helper class to process markdown formatted text.
Definition at line 31 of file markdown.h.
|
private |
Definition at line 44 of file markdown.h.
|
private |
Definition at line 45 of file markdown.h.
| Markdown::Markdown | ( | const DString & | fileName, |
| int | lineNr, | ||
| int | indentLevel = 0 ) |
Definition at line 207 of file markdown.cpp.
References prv.
Referenced by ~Markdown().
|
default |
References extractPageTitle(), Markdown(), NON_COPYABLE, process(), and setIndentLevel().
| DString Markdown::extractPageTitle | ( | DString & | docs, |
| DString & | id, | ||
| int & | prepend, | ||
| bool & | isIdGenerated ) |
Definition at line 3695 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, DString::clear(), DString::DString(), DString::mid(), prv, DString::str(), DString::substr(), and Trace::trunc().
Referenced by MarkdownOutlineParser::parseInput(), and ~Markdown().
|
staticprivate |
Definition at line 188 of file markdown.cpp.
References Markdown::Private::processCodeSpan(), Markdown::Private::processEmphasis(), Markdown::Private::processHtmlTag(), Markdown::Private::processLink(), Markdown::Private::processNmdash(), Markdown::Private::processQuoted(), and Markdown::Private::processSpecialCommand().
| DString Markdown::process | ( | const DString & | input, |
| int & | startNewlines, | ||
| bool | fromParseInput = false ) |
Definition at line 3748 of file markdown.cpp.
References DString::at(), DString::data(), detab(), DString::empty(), g_doxy_nbsp, DString::length(), literal_at(), Debug::Markdown, DString::mid(), Debug::print(), prv, qPrint(), substitute(), and DString::view().
Referenced by CommentScanner::addDeprecatedDocs(), generateHtmlForComment(), handleCommentBlock(), handleCommentBlock(), handleCommentBlock(), VHDLOutlineParser::handleCommentBlock(), handleParametersCommentBlocks(), MarkdownOutlineParser::parseInput(), and ~Markdown().
| void Markdown::setIndentLevel | ( | int | level | ) |
Definition at line 216 of file markdown.cpp.
References prv.
Referenced by MarkdownOutlineParser::parseInput(), and ~Markdown().
|
staticprivate |
Definition at line 47 of file markdown.h.
Referenced by Markdown::Private::processInline().
|
private |
Definition at line 43 of file markdown.h.
Referenced by extractPageTitle(), Markdown(), process(), and setIndentLevel().