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()); |
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 |
|
|