| 83 | |
| 84 | template <typename T> |
| 85 | bool 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 | |
| 97 | bool extractFileName(std::string& line, std::string& filename) |
| 98 | { |
no test coverage detected