diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-08-12 12:53:19 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-08-12 12:53:19 (GMT) |
commit | bb18b811e8f1a4a939eadf28d12bc5f99dd74b82 (patch) | |
tree | 96c3b47bbfb0ee3d28e46421e1317253ba052f01 /src/searchindex.cpp | |
parent | 6e8975abdb6b52477a5788bca969e13e467814dd (diff) | |
download | Doxygen-bb18b811e8f1a4a939eadf28d12bc5f99dd74b82.zip Doxygen-bb18b811e8f1a4a939eadf28d12bc5f99dd74b82.tar.gz Doxygen-bb18b811e8f1a4a939eadf28d12bc5f99dd74b82.tar.bz2 |
Release-1.3.8-20040812
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r-- | src/searchindex.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp index cf049aa..b85d87e 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -81,12 +81,14 @@ static int charsToIndex(const char *word) void SearchIndex::addWord(const char *word) { - IndexWord *w = m_words[word]; + QString wStr=QString(word).lower(); + if (wStr.isEmpty()) return; + IndexWord *w = m_words[wStr]; if (w==0) { - int idx=charsToIndex(word); + int idx=charsToIndex(wStr); if (idx<0) return; - w = new IndexWord(word); + w = new IndexWord(wStr); //fprintf(stderr,"addWord(%s) at index %d\n",word,idx); m_index[idx]->append(w); m_words.insert(word,w); |