diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-02-27 17:41:30 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-02-27 17:41:30 (GMT) |
commit | 75cfc919c930dc2a5c9e6770d6b1e7b09e5e8883 (patch) | |
tree | 0e10644b6ed5c8878dc59e723fe3dcd591d57839 /src/util.cpp | |
parent | b76d4ee1ec41101fffbef5d33c5a2ea70a6c6e54 (diff) | |
download | Doxygen-75cfc919c930dc2a5c9e6770d6b1e7b09e5e8883.zip Doxygen-75cfc919c930dc2a5c9e6770d6b1e7b09e5e8883.tar.gz Doxygen-75cfc919c930dc2a5c9e6770d6b1e7b09e5e8883.tar.bz2 |
Release 2000-02-27
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 5097e43..b70e3a5 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -59,6 +59,29 @@ bool isId(char c) // return result; //} +// remove all annoymous scopes from string s +QCString removeAnnonymousScopes(const QCString &s) +{ + QCString result; + int i,ni,l=s.length(); + int p=0; + while ((i=s.find('@',p))!=-1) + { + if (i>p+2) result+=s.mid(p,i-p-2); + if ((ni=s.find("::",i+1))!=-1) + { + p=ni+2; + } + else + { + p=l; + } + } + if (p!=l) result+=s.mid(p,l-p); + //printf("removeAnnonymousScopes(`%s')=`%s'\n",s.data(),result.data()); + return result; +} + // strip annonymous left hand side part of the scope QCString stripAnnonymousNamespaceScope(const QCString &s) { @@ -85,7 +108,7 @@ void writePageRef(OutputList &ol,const char *cn,const char *mn) ol.pushGeneratorState(); - ol.enableAll(); + //ol.enableAll(); ol.disable(OutputGenerator::Html); ol.disable(OutputGenerator::Man); if (Config::pdfHyperFlag) ol.disable(OutputGenerator::Latex); |