diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index c8abf28..952445a 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -32,6 +32,7 @@ #include "config.h" #include "htmlhelp.h" #include "example.h" +#include "version.h" // an inheritance tree of depth of 100000 should be enough for everyone :-) const int maxInheritanceDepth = 100000; @@ -1878,3 +1879,16 @@ void setFileNameForSections(QList<QCString> *anchorList,const char *fileName) } } +//---------------------------------------------------------------------- + +QCString substituteKeywords(QCString &s,const char *title) +{ + if (title) s = substitute(s,"$title",title); + s = substitute(s,"$datetime",dateToString(TRUE)); + s = substitute(s,"$date",dateToString(FALSE)); + s = substitute(s,"$doxygenversion",versionString); + s = substitute(s,"$projectname",Config::projectName); + s = substitute(s,"$projectnumber",Config::projectNumber); + return s; +} + |