MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkLSNextSignificantLine

Function vtkLSNextSignificantLine

IO/LSDyna/vtkLSDynaReader.cxx:142–153  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

140// is encountered. Return with that text stored in \a line.
141// If an error or EOF is hit, return 0. Otherwise, return 1.
142int 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
155void vtkLSTrimWhitespace(std::string& line)
156{

Callers 1

ReadInputDeckKeywordsMethod · 0.85

Calls 2

goodMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected