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

Comparing trunk/Search/Indexer.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 58 | Line 58 | inline int unlink(const char* filename)
58  
59   void Indexer::index(string& begin)
60   {
61 <        unsigned separator(indexFile.rfind(slash));
61 >        size_t separator(indexFile.rfind(slash));
62          string dtd(separator != string::npos ? indexFile.substr(0, separator) +
63                  slash + "index.dtd" : "index.dtd");
64          ifstream fin(dtd.c_str());
# Line 234 | Line 234 | void Indexer::robots(URL& url)
234                  {
235                          http.getline(line);
236  
237 <                        unsigned comment(line.find('#'));
237 >                        size_t comment(line.find('#'));
238  
239                          if (comment != string::npos) line.erase(comment);
240  
241                          if (line.empty() && comment == string::npos) record = false;
242                          if (line.empty()) continue;
243  
244 <                        unsigned colon(line.find(':'));
244 >                        size_t colon(line.find(':'));
245                          string field(line.substr(0, colon));
246                          string value(line.substr(colon + 1));
247  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines