MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / getNextLine

Method getNextLine

src/sys/options/options_ini.cxx:174–181  ·  view source on GitHub ↗

Returns the next useful line, stripped of comments and whitespace

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

trimFunction · 0.85
trimCommentsFunction · 0.85

Tested by

no test coverage detected