497 |
|
|
498 |
|
void entities(string& line, char character, const string& entity) |
499 |
|
{ |
500 |
< |
int begin(0); |
500 |
> |
size_t begin(0); |
501 |
|
|
502 |
|
while (begin < line.length()) |
503 |
|
{ |
504 |
< |
int spot(line.find(character, begin)), end(spot + 1); |
504 |
> |
size_t spot(line.find(character, begin)), end(spot + 1); |
505 |
|
|
506 |
|
if (spot != string::npos) |
507 |
|
{ |
515 |
|
|
516 |
|
void entities(string& line, const string& entity, char character) |
517 |
|
{ |
518 |
< |
int begin(0); |
518 |
> |
size_t begin(0); |
519 |
|
|
520 |
|
while (begin < line.length()) |
521 |
|
{ |
522 |
< |
int spot(line.find(entity, begin)), end(spot + 1); |
522 |
> |
size_t spot(line.find(entity, begin)), end(spot + 1); |
523 |
|
|
524 |
|
if (spot != string::npos) |
525 |
|
{ |
533 |
|
|
534 |
|
void normalize(string& abbynormal) |
535 |
|
{ |
536 |
< |
for (unsigned index(0); index < abbynormal.length(); index++) |
536 |
> |
for (size_t index(0); index < abbynormal.length(); index++) |
537 |
|
{ |
538 |
|
if (isspace(abbynormal[index])) |
539 |
|
{ |
540 |
< |
unsigned next(index + 1); |
540 |
> |
size_t next(index + 1); |
541 |
|
|
542 |
|
while (isspace(abbynormal[next])) next++; |
543 |
|
|