浏览该文件的文档.
18 #include <unordered_map>
32 static std::unordered_map<std::string,std::string>
g_symbolMap;
47 if (inputSource.empty())
51 else if (inputSource.size()==1)
55 err(
"Cannot find directory %s. "
56 "Check the value of the INPUT tag in the configuration file.\n",
57 inputSource.back().c_str()
62 err(
"If you use USE_HTAGS then INPUT should specify a single directory.\n");
69 QCString commandLine =
" -g -s -a -n ";
70 if (!quiet) commandLine +=
"-v ";
71 if (warnings) commandLine +=
"-w ";
75 commandLine += htagsOptions;
79 commandLine +=
"-t \"";
80 commandLine += projectName;
84 commandLine += projectNumber;
88 commandLine +=
" \"" + htmldir +
"\"";
96 err(
"Problems running %s. Check your installation\n",
"htags");
111 QCString fileMapName = htmlDir+
"/HTML/FILEMAP";
126 std::ifstream f(fileMapName.
str(),std::ifstream::in);
130 while (getline(f,lineStr))
134 int sep = line.
find(
'\t');
140 if (ext!=-1) value=value.
left(ext);
149 err(
"file %s cannot be opened\n",
qPrint(fileMapName));
164 if ((
int)symName.
length()>dl+1)
166 symName = symName.
mid(dl+1);
std::vector< std::string > StringVector
static std::string currentDirPath()
Class representing a directory in the file system
uint length() const
Returns the length of the string, not counting the 0-terminator.
int findRev(char c, int index=-1, bool cs=TRUE) const
bool isEmpty() const
Returns TRUE iff the string is empty
void err(const char *fmt,...)
int find(char c, int index=0, bool cs=TRUE) const
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
QCString left(size_t len) const
std::string absPath() const
int system(const QCString &command, const QCString &args, bool commandHasConsole=true)
static bool setCurrent(const std::string &path)
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
#define Config_getBool(name)
Minimal replacement for QFileInfo.
const char * qPrint(const char *s)
#define Config_getString(name)
void setPath(const std::string &path)
Portable versions of functions that are platform dependent.
A bunch of utility functions.
#define Config_getList(name)
This is an alternative implementation of QCString.