diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-04-17 18:47:53 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-04-17 18:47:53 (GMT) |
commit | 0e7fba152ca1c24593a5c9b01460116d16ca3f97 (patch) | |
tree | 25b1690e57effb00b6b482041be7b48ca0ae643e /src/util.cpp | |
parent | 0001e1e28b80b870b85b82b9f1cacfdb5cd834eb (diff) | |
download | Doxygen-0e7fba152ca1c24593a5c9b01460116d16ca3f97.zip Doxygen-0e7fba152ca1c24593a5c9b01460116d16ca3f97.tar.gz Doxygen-0e7fba152ca1c24593a5c9b01460116d16ca3f97.tar.bz2 |
Release-1.1.2-20000417
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp index 4b0d369..ccffae9 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -252,7 +252,7 @@ bool leftScopeMatch(const QCString &scope, const QCString &name) void linkifyText(OutputList &ol,const char *scName,const char *name,const char *text) { //printf("scope=`%s' name=`%s' Text: `%s'\n",scName,name,text); - static QRegExp regExp("[a-z_A-Z0-9:]+"); + static QRegExp regExp("[a-z_A-Z][a-z_A-Z0-9:]*"); QCString txtStr=text; OutputList result(&ol); int matchLen; @@ -860,8 +860,8 @@ static void trimNamespaceScope(QCString &t1,QCString &t2) int p2=t2.length(); for (;;) { - int i1=t1.findRev("::",p1); - int i2=t2.findRev("::",p2); + int i1=p1==0 ? -1 : t1.findRev("::",p1); + int i2=p2==0 ? -1 : t2.findRev("::",p2); if (i1==-1 && i2==-1) { return; |