- Timestamp:
- Mar 10, 2006, 1:18:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/parser/ini_parser/ini_parser.cc
r7206 r7213 134 134 while((*lineBegin == ' ' || *lineBegin == '\t') && lineBegin < lineBuffer + strlen(lineBuffer)) 135 135 ++lineBegin; 136 136 137 137 if ( !strcmp( lineBegin, "" ) ) 138 138 continue; … … 186 186 --nameEnd; 187 187 nameEnd[1] = '\0'; 188 188 189 189 this->addVar(lineBegin, valueBegin); 190 190 this->setEntryComment(); … … 258 258 if (sectionName.empty()) 259 259 return false; 260 this->sections.push_back(IniSection()); 261 this->sections.back().comment = ""; 262 this->sections.back().name = sectionName; 260 IniSection newSection; 261 newSection.name = sectionName; 262 newSection.comment = ""; 263 264 this->sections.push_back(newSection); 263 265 264 266 this->currentSection = --this->sections.end(); … … 409 411 return (*entry).value; 410 412 PRINTF(2)("Entry '%s' in section '%s' not found.\n", entryName.c_str(), sectionName.c_str()); 411 412 413 } 413 414 else
Note: See TracChangeset
for help on using the changeset viewer.