diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-02-23 20:49:55 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-02-23 20:49:55 (GMT) |
commit | 6ac75f5093a2ac447626579cfbda2d1a8af6d86e (patch) | |
tree | 4163d92b8a5b2126fe8413cc21df8eb3f247dbfa /src/util.cpp | |
parent | b0cbd5971eb11555a9ea3ab5c23f2b0b97279b4d (diff) | |
download | Doxygen-6ac75f5093a2ac447626579cfbda2d1a8af6d86e.zip Doxygen-6ac75f5093a2ac447626579cfbda2d1a8af6d86e.tar.gz Doxygen-6ac75f5093a2ac447626579cfbda2d1a8af6d86e.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; } |