The Private
Struct Reference
Declaration
Public Member Typedefs Index
using | Action_t = std::function< int(std::string_view, size_t)> |
Public Constructors Index
Private (const QCString &fn, int line, int indent) | |
Public Member Functions Index
QCString | processQuotations (std::string_view data, size_t refIndent) |
QCString | processBlocks (std::string_view data, size_t indent) |
QCString | isBlockCommand (std::string_view data, size_t offset) |
size_t | isSpecialCommand (std::string_view data, size_t offset) |
size_t | findEndOfLine (std::string_view data, size_t offset) |
int | processHtmlTagWrite (std::string_view data, size_t offset, bool doWrite) |
Process a HTML tag. More... | |
int | processHtmlTag (std::string_view data, size_t offset) |
int | processEmphasis (std::string_view data, size_t offset) |
int | processEmphasis1 (std::string_view data, char c) |
process single emphasis More... | |
int | processEmphasis2 (std::string_view data, char c) |
process double emphasis More... | |
int | processEmphasis3 (std::string_view data, char c) |
Parsing triple emphasis. More... | |
int | processNmdash (std::string_view data, size_t offset) |
Process ndash and mdashes. More... | |
int | processQuoted (std::string_view data, size_t offset) |
Process quoted section "...", can contain one embedded newline. More... | |
int | processCodeSpan (std::string_view data, size_t offset) |
` parsing a code span (assuming codespan != 0) More... | |
int | processSpecialCommand (std::string_view data, size_t offset) |
int | processLink (std::string_view data, size_t offset) |
size_t | findEmphasisChar (std::string_view, char c, size_t c_size) |
looks for the next emph char, skipping other constructs, and stopping when either it is found, or we are at the end of a paragraph. More... | |
void | addStrEscapeUtf8Nbsp (std::string_view data) |
void | processInline (std::string_view data) |
void | writeMarkdownImage (std::string_view fmt, bool inline_img, bool explicitTitle, const QCString &title, const QCString &content, const QCString &link, const QCString &attributes, const FileDef *fd) |
int | isHeaderline (std::string_view data, bool allowAdjustLevel) |
returns whether the line is a setext-style hdr underline More... | |
int | isAtxHeader (std::string_view data, QCString &header, QCString &id, bool allowAdjustLevel, bool *pIsIdGenerated=nullptr) |
void | writeOneLineHeaderOrRuler (std::string_view data) |
void | writeFencedCodeBlock (std::string_view data, std::string_view lang, size_t blockStart, size_t blockEnd) |
size_t | writeBlockQuote (std::string_view data) |
size_t | writeCodeBlock (std::string_view, size_t refIndent) |
size_t | writeTableBlock (std::string_view data) |
QCString | extractTitleId (QCString &title, int level, bool *pIsIdGenerated=nullptr) |
Public Member Attributes Index
std::unordered_map< std::string, LinkRef > | linkRefs |
QCString | fileName |
int | lineNr = 0 |
int | indentLevel =0 |
QCString | out |
std::array< Action_t, 256 > | actions |
Definition at line 113 of file markdown.cpp.
Public Member Typedefs
Action_t
|
Definition at line 172 of file markdown.cpp.
Public Constructors
Private()
| inline |
Definition at line 115 of file markdown.cpp.
Public Member Functions
addStrEscapeUtf8Nbsp()
|
Definition at line 149 of file markdown.cpp.
References AUTO_TRACE, g_doxy_nbsp, g_utf8_nbsp, out, Portable::strnstr, substitute and Trace::trunc.
Referenced by processSpecialCommand and writeFencedCodeBlock.
extractTitleId()
|
Definition at line 164 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, Config_getEnum, Config_getInt, fileName, AnchorGenerator::generate, AnchorGenerator::instance, QCString::left, lineNr, reg::search, QCString::str, Trace::trunc and warn.
Referenced by isAtxHeader and processBlocks.
findEmphasisChar()
|
looks for the next emph char, skipping other constructs, and stopping when either it is found, or we are at the end of a paragraph.
Definition at line 148 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, QCString::data, ignoreCloseEmphChar, isBlockCommand, QCString::isEmpty, isIdChar, QCString::length, qstrncmp and Trace::trunc.
Referenced by processEmphasis1, processEmphasis2 and processEmphasis3.
findEndOfLine()
|
Definition at line 136 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, QCString::data, end, isBlockCommand, QCString::isEmpty, isNewline, QCString::length, processHtmlTagWrite, qstrncmp and Trace::trunc.
Referenced by processBlocks and processQuotations.
isAtxHeader()
|
Definition at line 156 of file markdown.cpp.
References QCString::at, AUTO_TRACE, AUTO_TRACE_EXIT, end, extractTitleId, indentLevel, QCString::left, QCString::length, SectionType::MaxLevel and Trace::trunc.
Referenced by writeOneLineHeaderOrRuler.
isBlockCommand()
|
Definition at line 134 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, end, QCString::size and Trace::trunc.
Referenced by findEmphasisChar, findEndOfLine, processBlocks and processSpecialCommand.
isHeaderline()
|
returns whether the line is a setext-style hdr underline
Definition at line 155 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, indentLevel and Trace::trunc.
Referenced by processBlocks.
isSpecialCommand()
|
Definition at line 135 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, end, literal_at and Trace::trunc.
Referenced by processSpecialCommand.
processBlocks()
|
Definition at line 133 of file markdown.cpp.
References AUTO_TRACE, codeBlockIndent, QCString::data, end, extractTitleId, findEndOfLine, isBlockCommand, isCodeBlock, QCString::isEmpty, isEmptyLine, isEndOfList, isFencedCodeBlock, isHeaderline, isLinkRef, isListMarker, isTableBlock, QCString::length, linkRefs, out, qstrncmp, TRUE, Trace::trunc, QCString::view, writeCodeBlock, writeFencedCodeBlock, writeOneLineHeaderOrRuler and writeTableBlock.
processCodeSpan()
|
` parsing a code span (assuming codespan != 0)
Definition at line 145 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, end, escapeSpecialChars, isIdChar, out and Trace::trunc.
processEmphasis()
|
Definition at line 139 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, extraChar, isIdChar, isOpenEmphChar, processEmphasis1, processEmphasis2, processEmphasis3 and Trace::trunc.
processEmphasis1()
|
process single emphasis
Definition at line 140 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, findEmphasisChar, out, processInline and Trace::trunc.
Referenced by processEmphasis and processEmphasis3.
processEmphasis2()
|
process double emphasis
Definition at line 141 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, findEmphasisChar, out, processInline and Trace::trunc.
Referenced by processEmphasis and processEmphasis3.
processEmphasis3()
|
Parsing triple emphasis.
Finds the first closing tag, and delegates to the other emph
Definition at line 142 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, findEmphasisChar, out, processEmphasis1, processEmphasis2, processInline and Trace::trunc.
Referenced by processEmphasis.
processHtmlTag()
|
Definition at line 138 of file markdown.cpp.
References AUTO_TRACE, processHtmlTagWrite and Trace::trunc.
processHtmlTagWrite()
|
Process a HTML tag.
Note that
..
are treated specially, in the sense that all code inside is written unprocessed
Definition at line 137 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, FALSE, isIdChar, QCString::lower, out, TRUE and Trace::trunc.
Referenced by findEndOfLine and processHtmlTag.
processInline()
|
Definition at line 150 of file markdown.cpp.
References actions, AUTO_TRACE, end, out and Trace::trunc.
Referenced by processEmphasis1, processEmphasis2, processEmphasis3 and processLink.
processLink()
|
Definition at line 147 of file markdown.cpp.
References FileInfo::absFilePath, AnchorGenerator::addPrefixIfNeeded, QCString::at, AUTO_TRACE, AUTO_TRACE_EXIT, Config_getEnum, Config_getInt, FileInfo::exists, externalLinkTarget, FALSE, FileInfo::fileName, fileName, QCString::find, findFileDef, getLanguageFromFileName, Doxygen::imageNameLinkedMap, Portable::isAbsolutePath, QCString::isEmpty, FileInfo::isReadable, isURL, QCString::left, QCString::length, linkRefs, QCString::lower, SectionType::MaxLevel, QCString::mid, SectionType::MinLevel, out, processInline, QCString::setNum, QCString::simplifyWhiteSpace, QCString::str, QCString::stripWhiteSpace, substitute, TRUE, Trace::trunc and writeMarkdownImage.
processNmdash()
|
Process ndash and mdashes.
Definition at line 143 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, literal_at, out and Trace::trunc.
processQuotations()
|
Definition at line 132 of file markdown.cpp.
References AUTO_TRACE, Config_getBool, Config_getString, QCString::data, end, findEndOfLine, isBlockQuote, isEmptyLine, isEndOfList, isFencedCodeBlock, isListMarker, QCString::length, out, processSpecialCommand, qisspace, qstrncmp, Trace::trunc, QCString::view, writeBlockQuote and writeFencedCodeBlock.
processQuoted()
|
Process quoted section "...", can contain one embedded newline.
Definition at line 144 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, out and Trace::trunc.
processSpecialCommand()
|
Definition at line 146 of file markdown.cpp.
References addStrEscapeUtf8Nbsp, AUTO_TRACE, AUTO_TRACE_ADD, AUTO_TRACE_EXIT, QCString::data, isBlockCommand, QCString::isEmpty, isSpecialCommand, QCString::length, out, qstrncmp and Trace::trunc.
Referenced by processQuotations.
writeBlockQuote()
|
Definition at line 161 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_ADD, AUTO_TRACE_EXIT, decrLevel, end, g_quotationHeaderMap, isHRuler, isListMarker, QCString::lower, out, QCString::str, stripWhiteSpace and Trace::trunc.
Referenced by processQuotations.
writeCodeBlock()
|
Definition at line 162 of file markdown.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, codeBlockIndent, end, out, skipOverFileAndLineCommands and Trace::trunc.
Referenced by processBlocks.
writeFencedCodeBlock()
|
Definition at line 159 of file markdown.cpp.
References addStrEscapeUtf8Nbsp, AUTO_TRACE, out and Trace::trunc.
Referenced by processBlocks and processQuotations.
writeMarkdownImage()
|
Definition at line 151 of file markdown.cpp.
References AUTO_TRACE, escapeDoubleQuotes, getFilteredImageAttributes, QCString::isEmpty, QCString::mid, out and Trace::trunc.
Referenced by processLink.
writeOneLineHeaderOrRuler()
|
Definition at line 158 of file markdown.cpp.
References AUTO_TRACE, hasLineBreak, isAtxHeader, isHRuler, out, SectionType::Paragraph, SectionType::Section, QCString::sprintf, SectionType::Subparagraph, SectionType::Subsection, SectionType::Subsubparagraph, SectionType::Subsubsection, TRUE and Trace::trunc.
Referenced by processBlocks.
writeTableBlock()
|
Definition at line 163 of file markdown.cpp.
References AlignCenter, AlignLeft, AlignNone, AlignRight, AUTO_TRACE, AUTO_TRACE_EXIT, end, FALSE, findTableColumns, markersToAlignment, out, QCString::setNum, TRUE and Trace::trunc.
Referenced by processBlocks.
Public Member Attributes
actions
|
Definition at line 179 of file markdown.cpp.
Referenced by processInline.
fileName
|
Definition at line 175 of file markdown.cpp.
Referenced by extractTitleId and processLink.
indentLevel
|
Definition at line 177 of file markdown.cpp.
Referenced by isAtxHeader and isHeaderline.
lineNr
|
linkRefs
|
Definition at line 174 of file markdown.cpp.
Referenced by processBlocks and processLink.
out
|
Definition at line 178 of file markdown.cpp.
Referenced by addStrEscapeUtf8Nbsp, processBlocks, processCodeSpan, processEmphasis1, processEmphasis2, processEmphasis3, processHtmlTagWrite, processInline, processLink, processNmdash, processQuotations, processQuoted, processSpecialCommand, writeBlockQuote, writeCodeBlock, writeFencedCodeBlock, writeMarkdownImage, writeOneLineHeaderOrRuler and writeTableBlock.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.