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

Function extractLinePart

IO/EnSight/core/EnSightDataSet.cxx:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84template <typename T>
85bool extractLinePart(const std::regex& rx, std::string& line, T& value)
86{
87 std::smatch sm;
88 if (std::regex_search(line, sm, rx))
89 {
90 stringTo(sm.str(1), value);
91 line = sm.suffix().str();
92 return true;
93 }
94 return false;
95}
96
97bool extractFileName(std::string& line, std::string& filename)
98{

Callers 11

extractFileNameFunction · 0.85
getGridOptionsFunction · 0.85
readCaseFileValuesFunction · 0.85
readFileValuesFunction · 0.85
ParseGeometrySectionMethod · 0.85
ParseVariableSectionMethod · 0.85
ParseTimeSectionMethod · 0.85
ParseFileSectionMethod · 0.85
ReadDimensionsMethod · 0.85
ReadRangeMethod · 0.85

Calls 2

stringToFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected