Functions
qhp.cpp File Reference
#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 <qstringlist.h>
#include <string.h>
#include <qfile.h>

Go to the source code of this file.

Functions

static QCString makeFileName (const char *withoutExtension)
 
static QCString makeRef (const char *withoutExtension, const char *anchor)
 

Function Documentation

static QCString makeFileName ( const char *  withoutExtension)
static

Definition at line 30 of file qhp.cpp.

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 }
static QCString result
bool isEmpty() const
Definition: qcstring.h:189
static QCString htmlFileExtension
Definition: doxygen.h:130
char & at(uint i) const
Definition: qcstring.h:326
QCString mid(uint index, uint len=0xffffffff) const
Definition: qcstring.cpp:246
static QCString makeRef ( const char *  withoutExtension,
const char *  anchor 
)
static

Definition at line 47 of file qhp.cpp.

48 {
49  //printf("QHP::makeRef(%s,%s)\n",withoutExtension,anchor);
50  if (!withoutExtension) return QCString();
51  QCString result = makeFileName(withoutExtension);
52  if (!anchor) return result;
53  return result+"#"+anchor;
54 }
static QCString result
static QCString makeFileName(const char *withoutExtension)
Definition: qhp.cpp:30