Doxygen
Loading...
Searching...
No Matches
sitemap.cpp File Reference
#include <algorithm>
#include <memory>
#include <string.h>
#include <vector>
#include <cassert>
#include "config.h"
#include "debug.h"
#include "doxygen.h"
#include "groupdef.h"
#include "memberdef.h"
#include "message.h"
#include "sitemap.h"
#include "textstream.h"
#include "util.h"
#include "portable.h"
#include "language.h"
#include "version.h"
#include "containers.h"
+ Include dependency graph for sitemap.cpp:

Go to the source code of this file.

Classes

class  Sitemap::Private
 
class  Crawlmap::Private
 

Functions

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

Function Documentation

◆ makeFileName()

static QCString makeFileName ( const QCString & withoutExtension)
static

Definition at line 170 of file sitemap.cpp.

171{
172 QCString result=withoutExtension;
173 if (!result.isEmpty())
174 {
175 if (result.at(0)=='!') // relative URL -> strip marker
176 {
177 result=result.mid(1);
178 }
179 else // add specified HTML extension
180 {
182 }
183 }
184 return result;
185}
This is an alternative implementation of QCString.
Definition qcstring.h:101
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Definition qcstring.h:226
char & at(size_t i)
Returns a reference to the character at index i.
Definition qcstring.h:567
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
void addHtmlExtensionIfMissing(QCString &fName)
Definition util.cpp:5243

References addHtmlExtensionIfMissing(), QCString::at(), QCString::isEmpty(), and QCString::mid().

Referenced by makeRef().

◆ makeRef()

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

Definition at line 187 of file sitemap.cpp.

188{
189 if (withoutExtension.isEmpty()) return QCString();
190 QCString result = makeFileName(withoutExtension);
191 if (anchor.isEmpty()) return result;
192 return result+"#"+anchor;
193}
static QCString makeFileName(const QCString &withoutExtension)
Definition sitemap.cpp:170

References QCString::isEmpty(), and makeFileName().