diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-05-22 11:07:08 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-05-22 11:07:08 (GMT) |
commit | 7a3de4c3c8aac25c38b6e93bb0927de40cd1c650 (patch) | |
tree | 9568dad93df55e8726251e5bdb1f2d8c00bdde93 /src/vhdldocgen.cpp | |
parent | c34e05f1d2d21630290f758aafe6d151825d0ce8 (diff) | |
download | Doxygen-7a3de4c3c8aac25c38b6e93bb0927de40cd1c650.zip Doxygen-7a3de4c3c8aac25c38b6e93bb0927de40cd1c650.tar.gz Doxygen-7a3de4c3c8aac25c38b6e93bb0927de40cd1c650.tar.bz2 |
Release-1.5.9-20090522
Diffstat (limited to 'src/vhdldocgen.cpp')
-rw-r--r-- | src/vhdldocgen.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp index 809fc31..280e068 100644 --- a/src/vhdldocgen.cpp +++ b/src/vhdldocgen.cpp @@ -833,12 +833,13 @@ bool VhdlDocGen::compareString(const QCString& s1,const QCString& s2) bool VhdlDocGen::getSigTypeName(QList<QCString>& ql, const char* str,QCString& buffer) { - QCString temp(str); - QStringList qlist=QStringList::split(" is ",temp,FALSE); - if (qlist.count()!=2) return FALSE; - temp.resize(0); - temp+=(QCString)qlist[0]+":"+(QCString)qlist[1]; - return VhdlDocGen::getSigName(ql,temp.data(),buffer); + //QCString temp(str); + //QStringList qlist=QStringList::split(" is ",temp,FALSE); + //if (qlist.count()!=2) return FALSE; + //temp.resize(0); + //temp+=(QCString)qlist[0]+":"+(QCString)qlist[1]; + //return VhdlDocGen::getSigName(ql,temp.data(),buffer); + return VhdlDocGen::getSigName(ql,str,buffer); } /*! @@ -1356,7 +1357,7 @@ bool VhdlDocGen::isNumber(const QCString& s) #endif }// isNumber -void VhdlDocGen::startFonts(const QCString& q, char *keyword,OutputList& ol) +void VhdlDocGen::startFonts(const QCString& q, const char *keyword,OutputList& ol) { ol.startFontClass(keyword); ol.docify(q.data()); @@ -1650,10 +1651,12 @@ bool VhdlDocGen::isFunctionProto(QCString& ss) QCString proc("procedure"); QCString func("function"); name=name.stripWhiteSpace(); - QStringList ql=QStringList::split(" ",name,FALSE); + QStringList ql=QStringList::split(QRegExp("[\\s]"),name,FALSE); int j=ql.count(); if (j<2) return FALSE; - QCString tt=(QCString)ql[0]; + QCString tt=(QCString)ql[0].lower(); + + if (tt=="impure" || tt=="pure") tt=ql[1]; if (VhdlDocGen::compareString(tt,proc)!=0 && VhdlDocGen::compareString(tt,func)!=0) return FALSE; |