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

Comparing trunk/Search/Search.cpp (file contents):
Revision 347 by Douglas Thrift, 2004-05-26T15:42:48-07:00 vs.
Revision 348 by Douglas Thrift, 2004-05-26T17:44:17-07:00

# Line 497 | Line 497 | void license()
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                  {
# Line 515 | Line 515 | void entities(string& line, char charact
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                  {
# Line 533 | Line 533 | void entities(string& line, const string
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines