summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-12-30 13:28:15 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-12-30 13:28:15 (GMT)
commitdf4e1edf1f6abb55a811e7c4a34764f27b50e502 (patch)
treee73e0b41d708a8ea6260e541347b464cb2e5aeaa /src/util.cpp
parentf4fab829c8e9b4bf54c60fd85805eb008c3838ab (diff)
downloadDoxygen-df4e1edf1f6abb55a811e7c4a34764f27b50e502.zip
Doxygen-df4e1edf1f6abb55a811e7c4a34764f27b50e502.tar.gz
Doxygen-df4e1edf1f6abb55a811e7c4a34764f27b50e502.tar.bz2
Release-1.6.2
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 8d33369..cdeaaee 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6970,4 +6970,19 @@ bool readInputFile(const char *fileName,BufStr &inBuf)
return TRUE;
}
+// Replace %word by word in title
+QCString filterTitle(const QCString &title)
+{
+ QCString tf;
+ static QRegExp re("%[A-Z_a-z]");
+ int p=0,i,l;
+ while ((i=re.match(title,p,&l))!=-1)
+ {
+ tf+=title.mid(p,i-p);
+ tf+=title.mid(i+1,l-1); // skip %
+ p=i+l;
+ }
+ tf+=title.right(title.length()-p);
+ return tf;
+}