ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/Searcher.cpp
(Generate patch)

Comparing trunk/Search/Searcher.cpp (file contents):
Revision 194 by douglas, 2003-07-11T00:54:47-07:00 vs.
Revision 211 by douglas, 2003-07-19T18:46:12-07:00

# Line 46 | Line 46
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  
# Line 217 | Line 217 | void Searcher::setQuery()
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines