summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-09-24 20:33:07 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-09-24 20:33:07 (GMT)
commit6778bfcda9c30df98ea011cca3d36705798531b4 (patch)
treeb50a7ace694be7f29ae897c96045f16755d30ef8 /src/doxygen.cpp
parent34c1092a798a7792037fbe32acfb50dfebf84dc3 (diff)
downloadDoxygen-6778bfcda9c30df98ea011cca3d36705798531b4.zip
Doxygen-6778bfcda9c30df98ea011cca3d36705798531b4.tar.gz
Doxygen-6778bfcda9c30df98ea011cca3d36705798531b4.tar.bz2
Release-1.2.2
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index af7ed6e..b77c746 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -3201,7 +3201,7 @@ static void findMember(Entry *root,QCString funcDecl,QCString related,bool overl
NamespaceDef *nd=0;
if (!namespaceName.isEmpty()) nd=getResolvedNamespace(namespaceName);
tcd = findClassDefinition(fd,nd,scopeName,classTempList);
-
+
if (cd && tcd==cd) // member's classes match
{
Debug::print(Debug::FindMembers,0,
@@ -5737,7 +5737,29 @@ int main(int argc,char **argv)
{
QCString name=alias.left(i).stripWhiteSpace();
QCString value=alias.right(alias.length()-i-1);
- value=substitute(value,"\\n","\n");
+ QCString newValue;
+ int in,p=0;
+ // for each \n in the alias command value
+ while ((in=value.find("\\n",p))!=-1)
+ {
+ newValue+=value.mid(p,in-p);
+ // expand \n's except if \n is part of a built-in command.
+ if (value.mid(in,5)!="\\note" &&
+ value.mid(in,5)!="\\name" &&
+ value.mid(in,10)!="\\namespace" &&
+ value.mid(in,14)!="\\nosubgrouping"
+ )
+ {
+ newValue+="\n";
+ }
+ else
+ {
+ newValue+="\\n";
+ }
+ p=in+2;
+ }
+ newValue+=value.mid(p,value.length()-p);
+ value=newValue;
//printf("Alias: found name=`%s' value=`%s'\n",name.data(),value.data());
if (!name.isEmpty())
{