Read in lines until one that's - not empty, and - not a comment is encountered. Return with that text stored in \a line. If an error or EOF is hit, return 0. Otherwise, return 1.
| 140 | // is encountered. Return with that text stored in \a line. |
| 141 | // If an error or EOF is hit, return 0. Otherwise, return 1. |
| 142 | int vtkLSNextSignificantLine(istream& deck, std::string& line) |
| 143 | { |
| 144 | while (deck.good()) |
| 145 | { |
| 146 | std::getline(deck, line, '\n'); |
| 147 | if (!line.empty() && line[0] != '$') |
| 148 | { |
| 149 | return 1; |
| 150 | } |
| 151 | } |
| 152 | return 0; |
| 153 | } |
| 154 | |
| 155 | void vtkLSTrimWhitespace(std::string& line) |
| 156 | { |
no test coverage detected