summaryrefslogtreecommitdiffstats
path: root/src/groupdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-08-12 12:53:19 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-08-12 12:53:19 (GMT)
commitedeb82c1e0cebe5437fb637c9d239a8cecfca0cb (patch)
tree96c3b47bbfb0ee3d28e46421e1317253ba052f01 /src/groupdef.cpp
parentf4bab88acea24b261d85d25359c73cbb49869c5f (diff)
downloadDoxygen-edeb82c1e0cebe5437fb637c9d239a8cecfca0cb.zip
Doxygen-edeb82c1e0cebe5437fb637c9d239a8cecfca0cb.tar.gz
Doxygen-edeb82c1e0cebe5437fb637c9d239a8cecfca0cb.tar.bz2
Release-1.3.8-20040812
Diffstat (limited to 'src/groupdef.cpp')
-rw-r--r--src/groupdef.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp
index 54b0bbd..aa4ec5b 100644
--- a/src/groupdef.cpp
+++ b/src/groupdef.cpp
@@ -16,6 +16,7 @@
*/
#include <ctype.h>
+#include <qregexp.h>
#include "qtbc.h"
#include "groupdef.h"
#include "classdef.h"
@@ -457,14 +458,20 @@ void GroupDef::writeDocumentation(OutputList &ol)
//ol.disable(OutputGenerator::Man);
startFile(ol,getOutputFileBase(),name(),title);
startTitle(ol,getOutputFileBase());
- ol.docify(title);
+ ol.parseText(title);
addGroupListToTitle(ol,this);
endTitle(ol,getOutputFileBase(),title);
if (Config_getBool("SEARCHENGINE"))
{
Doxygen::searchIndex->setCurrentDoc(title,getOutputFileBase());
- Doxygen::searchIndex->addWord(localName().lower());
+ static QRegExp we("[a-zA-Z_][a-zA-Z_0-9]*");
+ int i=0,p=0,l=0;
+ while ((i=we.match(title,p,&l))!=-1) // foreach word in the title
+ {
+ Doxygen::searchIndex->addWord(title.mid(i,l));
+ p=i+l;
+ }
}
if (Config_getBool("DETAILS_AT_TOP"))