Changeset 499 for AE/Installer/trunk/source/installer.cpp
- Timestamp:
- Mar 3, 2010, 3:09:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/installer.cpp
r496 r499 940 940 while (getline(*fileHandler, line)) 941 941 { 942 StripNewlines(&line); 942 943 tokenize(line, tokens); 943 944 iter = tokens.begin(); … … 1471 1472 } 1472 1473 1474 /* StripNewlines() gets rids of any linebreaks that come from text returned by getline(); \ 1475 | getline() should be stripping those out, but Windows CR/LF files seem to be sneaking | 1476 \ some extra return characters into strings in the ReadInstallInfoCfg() function. */ 1477 void StripNewlines(string *theLine) 1478 { 1479 int deleteFromHere = 0; 1480 deleteFromHere = theLine->find("\r"); 1481 if (deleteFromHere > 0) 1482 theLine->erase(deleteFromHere, theLine->size()); 1483 } 1484 1473 1485 void clearOldDats(void) { 1474 1486 directory_iterator end_iter_gdf;
Note:
See TracChangeset
for help on using the changeset viewer.