| 14 | #include "vars.h" |
| 15 | |
| 16 | static std::string Strip(std::string s) { |
| 17 | size_t b = 0; |
| 18 | size_t e = s.size(); |
| 19 | while (b < e && std::isspace(s[b])) { |
| 20 | ++b; |
| 21 | } |
| 22 | while (b < e && std::isspace(s[e - 1])) { |
| 23 | --e; |
| 24 | } |
| 25 | return s.substr(b, e - b); |
| 26 | } |
| 27 | |
| 28 | struct Parser::Imp { |
| 29 | using Owner = Parser; |
no test coverage detected