diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-02-23 20:49:55 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-02-23 20:49:55 (GMT) |
commit | 448b28836eb910f95e2f1903b4dea5eb8548e424 (patch) | |
tree | 4163d92b8a5b2126fe8413cc21df8eb3f247dbfa /src/util.cpp | |
parent | 067ee3cfc7a79acd42cedb3f89713b9ed5f47f93 (diff) | |
download | Doxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.zip Doxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.tar.gz Doxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.tar.bz2 |
Doxygen-1.3-rc3-20030223
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/util.cpp b/src/util.cpp index 94cf56e..98657a8 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -691,7 +691,10 @@ QCString removeRedundantWhiteSpace(const QCString &s) { result+=" >"; // insert extra space for layouting (nested) templates } - else if (i>0 && i<l-1 && c==',' && !isspace(s.at(i-1)) && isId(s.at(i+1))) + else if (i>0 && c==',' && !isspace(s.at(i-1)) + && ((i<l-1 && isId(s.at(i+1))) + || (i<l-2 && s.at(i+1)=='$' && isId(s.at(i+2))) // for PHP + || (i<l-3 && s.at(i+1)=='&' && s.at(i+2)=='$' && isId(s.at(i+3))))) // for PHP { result+=", "; } @@ -711,12 +714,13 @@ QCString removeRedundantWhiteSpace(const QCString &s) } else if (!isspace(c) || ( i>0 && i<l-1 && - (isId(s.at(i-1)) || s.at(i-1)==')' || s.at(i-1)==',' || s.at(i-1)=='>' || s.at(i-1)==']') && - isId(s.at(i+1)) + (isId(s.at(i-1)) || s.at(i-1)==')' || s.at(i-1)==',' || s.at(i-1)=='>' || s.at(i-1)==']') + && (isId(s.at(i+1)) || (i<l-2 && s.at(i+1)=='$' && isId(s.at(i+2))) + || (i<l-3 && s.at(i+1)=='&' && s.at(i+2)=='$' && isId(s.at(i+3)))) ) ) { - if (c=='*' || c=='&' || c=='@') + if (c=='*' || c=='&' || c=='@' || c=='$') { uint rl=result.length(); if (rl>0 && (isId(result.at(rl-1)) || result.at(rl-1)=='>')) result+=' '; @@ -2432,7 +2436,7 @@ bool resolveRef(/* in */ const char *scName, ClassDef *cd=0; NamespaceDef *nd=0; - if (scopePos==-1 && isLowerCase(tsName)) + if (!inSeeBlock && scopePos==-1 && isLowerCase(tsName)) { // link to lower case only name => do not try to autolink return FALSE; } |