Doxygen
markdown.h 文件参考
#include <functional>
#include "qcstring.h"
#include "parserintf.h"
#include "growbuf.h"
+ markdown.h 的引用(Include)关系图:
+ 此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  Markdown
 Helper class to process markdown formatted text 更多...
 
struct  Markdown::LinkRef
 
class  MarkdownOutlineParser
 

函数

QCString markdownFileNameToId (const QCString &fileName)
 processes string s and converts markdown into doxygen/html commands. 更多...
 

函数说明

◆ markdownFileNameToId()

QCString markdownFileNameToId ( const QCString fileName)

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

在文件 markdown.cpp3053 行定义.

3054 {
3055  TRACE(fileName);
3056  std::string absFileName = FileInfo(fileName.str()).absFilePath();
3057  QCString baseFn = stripFromPath(absFileName.c_str());
3058  int i = baseFn.findRev('.');
3059  if (i!=-1) baseFn = baseFn.left(i);
3060  QCString baseName = baseFn;
3061  char *p = baseName.rawData();
3062  char c;
3063  while ((c=*p))
3064  {
3065  if (!isId(c)) *p='_'; // escape characters that do not yield an identifier by underscores
3066  p++;
3067  }
3068  //printf("markdownFileNameToId(%s)=md_%s\n",qPrint(fileName),qPrint(baseName));
3069  QCString res = "md_"+baseName;
3070  TRACE_RESULT(res);
3071  return res;
3072 }

引用了 FileInfo::absFilePath(), QCString::findRev(), isId(), QCString::left(), QCString::rawData(), QCString::str(), stripFromPath(), TRACE , 以及 TRACE_RESULT.

被这些函数引用 DocRef::DocRef(), DocSecRefItem::parse() , 以及 MarkdownOutlineParser::parseInput().

TRACE
#define TRACE(data)
Definition: markdown.cpp:162
QCString::rawData
char * rawData()
Returns a writable pointer to the data.
Definition: qcstring.h:157
QCString::findRev
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:86
QCString::str
std::string str() const
Definition: qcstring.h:442
isId
bool isId(int c)
Definition: util.h:172
QCString::left
QCString left(size_t len) const
Definition: qcstring.h:212
FileInfo
Minimal replacement for QFileInfo.
Definition: fileinfo.h:22
FileInfo::absFilePath
std::string absFilePath() const
Definition: fileinfo.cpp:101
stripFromPath
static QCString stripFromPath(const QCString &path, const StringVector &l)
Definition: util.cpp:292
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108
TRACE_RESULT
#define TRACE_RESULT(v)
Definition: markdown.cpp:164