summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 9c46516..d68ff52 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -7089,6 +7089,19 @@ bool checkExtension(const char *fName, const char *ext)
return (QCString(fName).right(QCString(ext).length())==ext);
}
+bool hasExtension(const char *fName)
+{
+ return !(QFileInfo(fName).extension(FALSE).isEmpty());
+}
+bool hasExtension(QCString fName)
+{
+ return !(QFileInfo(fName).extension(FALSE).isEmpty());
+}
+bool hasExtension(QString fName)
+{
+ return !(QFileInfo(fName).extension(FALSE).isEmpty());
+}
+
QCString stripExtensionGeneral(const char *fName, const char *ext)
{
QCString result=fName;