46 |
|
// |
47 |
|
// Douglas Thrift |
48 |
|
// |
49 |
< |
// $Id: Searcher.cpp,v 1.5 2003/07/11 07:54:47 douglas Exp $ |
49 |
> |
// $Id: Searcher.cpp,v 1.6 2003/07/20 01:46:12 douglas Exp $ |
50 |
|
|
51 |
|
#include "Searcher.h" |
52 |
|
|
217 |
|
|
218 |
|
if (word != "") |
219 |
|
{ |
220 |
< |
string lowerWord(word.length(), ' '); |
221 |
< |
|
222 |
< |
for (unsigned index = 0; index < word.length(); index++) |
223 |
< |
{ |
224 |
< |
lowerWord[index] = tolower(word[index]); |
225 |
< |
} |
226 |
< |
|
220 |
> |
string lowerWord = tolower(word); |
221 |
> |
|
222 |
|
if (debug) cerr << "word = " << word << "\n" |
223 |
|
<< "lowerWord = " << lowerWord << "\n"; |
224 |
|
|