My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

References Doxygen::htmlFileExtension.

Referenced by makeRef().

{
QCString result=withoutExtension;
if (!result.isEmpty())
{
if (result.at(0)=='!') // relative URL -> strip marker
{
result=result.mid(1);
}
else // add specified HTML extension
{
}
}
return result;
}
static QCString makeRef ( const char *  withoutExtension,
const char *  anchor 
)
static

Definition at line 47 of file qhp.cpp.

References makeFileName().

Referenced by Qhp::addIndexItem(), and Qhp::handlePrevSection().

{
//printf("QHP::makeRef(%s,%s)\n",withoutExtension,anchor);
if (!withoutExtension) return QCString();
QCString result = makeFileName(withoutExtension);
if (!anchor) return result;
return result+"#"+anchor;
}