summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-09-24 20:33:07 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-09-24 20:33:07 (GMT)
commit168b741da042373d667e226cace55c9e82ec8faa (patch)
treeb50a7ace694be7f29ae897c96045f16755d30ef8 /src/doxygen.cpp
parentcabe22de82107be7b828cb771b1b3c6be4ab8660 (diff)
downloadDoxygen-168b741da042373d667e226cace55c9e82ec8faa.zip
Doxygen-168b741da042373d667e226cace55c9e82ec8faa.tar.gz
Doxygen-168b741da042373d667e226cace55c9e82ec8faa.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())
{