summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index cd5718c..852a0f4 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -73,10 +73,29 @@ void ManGenerator::init()
void ManGenerator::startFile(const char *name,const char *,bool)
{
QCString fileName=name;
+
+ // TODO: do something sensible here.
if (fileName.left(6)=="class_")
{
fileName=fileName.right(fileName.length()-6);
}
+ else if (fileName.left(10)=="interface_")
+ {
+ fileName=fileName.right(fileName.length()-10);
+ }
+ else if (fileName.left(7)=="struct_")
+ {
+ fileName=fileName.right(fileName.length()-7);
+ }
+ else if (fileName.left(6)=="union_")
+ {
+ fileName=fileName.right(fileName.length()-6);
+ }
+ else if (fileName.left(10)=="exception_")
+ {
+ fileName=fileName.right(fileName.length()-10);
+ }
+
int i;
if ((i=fileName.findRev('.'))!=-1)
{