diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 85536ca..874cf48 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7220,6 +7220,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; |