diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 9c46516..abcd910 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7089,6 +7089,15 @@ bool checkExtension(const char *fName, const char *ext) return (QCString(fName).right(QCString(ext).length())==ext); } +QCString addHtmlExtensionIfMissing(const char *fName) +{ + if (QFileInfo(fName).extension(FALSE).isEmpty()) + { + return QCString(fName)+Doxygen::htmlFileExtension; + } + return fName; +} + QCString stripExtensionGeneral(const char *fName, const char *ext) { QCString result=fName; |