Skip to main content

The markdown.h File Reference

Included Headers

#include <memory> #include "qcstring.h" #include "parserintf.h"

Classes Index

classMarkdown

Helper class to process markdown formatted text. More...

classMarkdownOutlineParser

Functions Index

QCStringmarkdownFileNameToId (const QCString &fileName)

processes string s and converts markdown into doxygen/html commands. More...

Functions

markdownFileNameToId()

QCString markdownFileNameToId (const QCString & fileName)

processes string s and converts markdown into doxygen/html commands.

Declaration at line 28 of file markdown.h, definition at line 3600 of file markdown.cpp.

3601{
3602 AUTO_TRACE("fileName={}",fileName);
3603 std::string absFileName = FileInfo(fileName.str()).absFilePath();
3604 QCString baseFn = stripFromPath(absFileName.c_str());
3605 int i = baseFn.findRev('.');
3606 if (i!=-1) baseFn = baseFn.left(i);
3607 QCString baseName = escapeCharsInString(baseFn,false,false);
3608 //printf("markdownFileNameToId(%s)=md_%s\n",qPrint(fileName),qPrint(baseName));
3609 QCString res = "md_"+baseName;
3610 AUTO_TRACE_EXIT("result={}",res);
3611 return res;
3612}

References FileInfo::absFilePath, AUTO_TRACE, AUTO_TRACE_EXIT, escapeCharsInString, QCString::findRev, QCString::left, QCString::str and stripFromPath.

Referenced by DocRef::DocRef, DocSecRefItem::parse and MarkdownOutlineParser::parseInput.


Generated via doxygen2docusaurus by Doxygen 1.14.0.