| 389 | } |
| 390 | |
| 391 | bool Configurations::Parser::isConfig(const std::string& line) { |
| 392 | std::size_t assignment = line.find('='); |
| 393 | return line != "" && |
| 394 | ((line[0] >= 'A' && line[0] <= 'Z') || (line[0] >= 'a' && line[0] <= 'z')) && |
| 395 | (assignment != std::string::npos) && |
| 396 | (line.size() > assignment); |
| 397 | } |
| 398 | |
| 399 | bool Configurations::Parser::parseLine(std::string* line, std::string* currConfigStr, std::string* currLevelStr, |
| 400 | Level* currLevel, |