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 364 by Douglas Thrift, 2004-08-19T20:09:52-07:00 vs.
Revision 365 by douglas, 2008-08-11T15:16:35-07:00

# Line 175 | Line 175 | void Searcher::setQuery()
175          if (debug) cerr << "queryString = " << queryString << "\n"
176                  << "queryStringNormal = " << queryStringNormal << "\n";
177  
178 <        unsigned begin(0);
178 >        size_t begin(0);
179          bool capitalOr(false), quotes(false);
180  
181          while (begin < queryStringNormal.length())
182          {
183                  string word;
184 <                unsigned beginQuote(queryStringNormal.find('\"', begin)),
184 >                size_t beginQuote(queryStringNormal.find('\"', begin)),
185                          endQuote(beginQuote != string::npos ? queryStringNormal.find('\"',
186                          beginQuote + 1) : string::npos), space(queryStringNormal.find(' ',
187                          begin));
# Line 283 | Line 283 | void Searcher::setQuery()
283          {
284                  cerr << "query = {\n";
285  
286 <                for (unsigned index(0); index < query.size(); index++)
286 >                for (size_t index(0); index < query.size(); index++)
287                  {
288                          cerr << "   [" << index << "] = " << query[index] << "\n";
289                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines