Doxygen
qhp.cpp 文件参考
#include "qhp.h"
#include "qhpxmlwriter.h"
#include "message.h"
#include "config.h"
#include "memberdef.h"
#include "groupdef.h"
#include "doxygen.h"
#include "filedef.h"
#include "util.h"
#include <fstream>
#include <string.h>
+ qhp.cpp 的引用(Include)关系图:

浏览源代码.

函数

static QCString makeFileName (const QCString &withoutExtension)
 
static QCString makeRef (const QCString &withoutExtension, const QCString &anchor)
 

函数说明

◆ makeFileName()

static QCString makeFileName ( const QCString withoutExtension)
static

在文件 qhp.cpp30 行定义.

31 {
32  QCString result=withoutExtension;
33  if (!result.isEmpty())
34  {
35  if (result.at(0)=='!') // relative URL -> strip marker
36  {
37  result=result.mid(1);
38  }
39  else // add specified HTML extension
40  {
42  }
43  }
44  return result;
45 }

引用了 addHtmlExtensionIfMissing(), QCString::at(), QCString::isEmpty() , 以及 QCString::mid().

被这些函数引用 makeRef().

◆ makeRef()

static QCString makeRef ( const QCString withoutExtension,
const QCString anchor 
)
static

在文件 qhp.cpp47 行定义.

48 {
49  //printf("QHP::makeRef(%s,%s)\n",withoutExtension,anchor);
50  if (withoutExtension.isEmpty()) return QCString();
51  QCString result = makeFileName(withoutExtension);
52  if (anchor.isEmpty()) return result;
53  return result+"#"+anchor;
54 }

引用了 QCString::isEmpty() , 以及 makeFileName().

被这些函数引用 Qhp::addIndexItem() , 以及 Qhp::handlePrevSection().

QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
QCString::at
char & at(size_t i)
Returns a reference to the character at index i.
Definition: qcstring.h:477
addHtmlExtensionIfMissing
QCString addHtmlExtensionIfMissing(const QCString &fName)
Definition: util.cpp:5275
QCString::mid
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Definition: qcstring.h:224
makeFileName
static QCString makeFileName(const QCString &withoutExtension)
Definition: qhp.cpp:30
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108