Changeset 3521
- Timestamp:
- 2002-11-08T14:26:17+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/cfgread.cpp
r3425 r3521 163 163 values.push_back(curvalue); 164 164 break; 165 } else { 166 // swallow up the EOL chars 167 while (!filein.eof() && (c=='\r' || c=='\n')) filein.get(c); 165 168 } 166 169 } else { // no new line seen … … 170 173 curvalue.clear(); 171 174 172 // the record continues on the next line 173 // remove whitespace before next token 174 while (!filein.eof() && isspace(c)) filein.get(c); 175 // remove whitespace (but not newline/CR chars) before next token 176 while (!filein.eof() && (c==' ' || c=='\t')) filein.get(c); 175 177 176 178 } // while(1)
Note:
See TracChangeset
for help on using the changeset viewer.