| 129 | |
| 130 | |
| 131 | void removeWhiteSpace(string &line) { |
| 132 | |
| 133 | // modifies line var, including removing newlines. we don't need to do |
| 134 | // this for pattern matching (our regex patterns include all permitted, |
| 135 | // frivolous whitespace), but we do need to perform it before passing |
| 136 | // matched strings to functions like std::stold() |
| 137 | line.erase(remove_if(line.begin(), line.end(), isWhiteSpace), line.end()); |
| 138 | } |
| 139 | |
| 140 | |
| 141 |
no outgoing calls
no test coverage detected