Returns the next useful line, stripped of comments and whitespace
| 172 | |
| 173 | // Returns the next useful line, stripped of comments and whitespace |
| 174 | string OptionINI::getNextLine(ifstream& fin) { |
| 175 | string line; |
| 176 | |
| 177 | getline(fin, line); |
| 178 | line = trim(trimComments(line)); |
| 179 | |
| 180 | return line; |
| 181 | } |
| 182 | |
| 183 | void OptionINI::parse(const string& buffer, string& key, string& value) { |
| 184 | // A key/value pair, separated by a '=' |
nothing calls this directly
no test coverage detected