diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-11-12 21:12:36 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-11-12 21:12:36 (GMT) |
commit | 8a5c51f2c968dee1283dce092e1ccc0d3df91f0e (patch) | |
tree | c055ae5f212c403dc425fc687a6e0c50ce812b0b /src/searchindex.cpp | |
parent | a2a1e97fd2b0e3045482aa46978ac2d0ae1c6e11 (diff) | |
download | Doxygen-8a5c51f2c968dee1283dce092e1ccc0d3df91f0e.zip Doxygen-8a5c51f2c968dee1283dce092e1ccc0d3df91f0e.tar.gz Doxygen-8a5c51f2c968dee1283dce092e1ccc0d3df91f0e.tar.bz2 |
Release-1.3.4-20031112
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r-- | src/searchindex.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp index 74834b9..7427ac6 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -17,6 +17,7 @@ #include "qtbc.h" #include "searchindex.h" +#include "config.h" #include <qfile.h> @@ -59,8 +60,10 @@ SearchIndex::SearchIndex() : m_words(328829), m_index(numIndexEntries), m_urlInd for (i=0;i<numIndexEntries;i++) m_index.insert(i,new QList<IndexWord>); } -void SearchIndex::setCurrentDoc(const char *name,const char *url) +void SearchIndex::setCurrentDoc(const char *name,const char *baseName,const char *anchor) { + QCString url=baseName+Config_getString("HTML_FILE_EXTENSION"); + if (anchor) url+=(QCString)"#"+anchor; m_urlIndex++; m_urls.insert(m_urlIndex,new URL(name,url)); } @@ -84,7 +87,7 @@ void SearchIndex::addWord(const char *word) int idx=charsToIndex(word); if (idx<0) return; w = new IndexWord(word); - //printf("addWord(%s) at index %d\n",word,idx); + //fprintf(stderr,"addWord(%s) at index %d\n",word,idx); m_index[idx]->append(w); m_words.insert(word,w); } |