summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-11-29 14:31:57 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-11-29 14:31:57 (GMT)
commitfd91442bcc5a20ba298a024ee2cc375ec4f1714d (patch)
tree64bf2ef54067018960ed07cde8a3b363b1e36498 /src/util.cpp
parent200b828ead9f6bb5b2f6f99919837d5828a250e4 (diff)
downloadDoxygen-fd91442bcc5a20ba298a024ee2cc375ec4f1714d.zip
Doxygen-fd91442bcc5a20ba298a024ee2cc375ec4f1714d.tar.gz
Doxygen-fd91442bcc5a20ba298a024ee2cc375ec4f1714d.tar.bz2
Bug 687576 - Add support for LATEX_EXTRA_STYLESHEET
Added the possibility for LATEX_EXTRA_STYLESHEET analogous to HTML_EXTRA_STYLESHEET. Special attention has been paid to the extension as ".sty" is automatically added by the \usepackage
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 64e63c8..c813636 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6559,16 +6559,30 @@ QCString rtfFormatBmkStr(const char *name)
return *tag;
}
-QCString stripExtension(const char *fName)
+bool checkExtension(const char *fName, const char *ext)
+{
+ return (QCString(fName).right(QCString(ext).length())==ext);
+}
+
+//QCString stripExtension(const char *fName, const char *ext)
+QCString stripExtensionGeneral(const char *fName, const char *ext)
{
QCString result=fName;
- if (result.right(Doxygen::htmlFileExtension.length())==Doxygen::htmlFileExtension)
+ //if (result.right(Doxygen::htmlFileExtension.length())==Doxygen::htmlFileExtension)
+ //{
+ //result=result.left(result.length()-Doxygen::htmlFileExtension.length());
+ //}
+ if (result.right(QCString(ext).length())==QCString(ext))
{
- result=result.left(result.length()-Doxygen::htmlFileExtension.length());
+ result=result.left(result.length()-QCString(ext).length());
}
return result;
}
+QCString stripExtension(const char *fName)
+{
+ return stripExtensionGeneral(fName, Doxygen::htmlFileExtension);
+}
void replaceNamespaceAliases(QCString &scope,int i)
{