| 89 | } |
| 90 | |
| 91 | static inline std::string parseString(const char*& token) |
| 92 | { |
| 93 | std::string s; |
| 94 | token += strspn(token, " \t"); |
| 95 | size_t e = strcspn(token, " \t\r"); |
| 96 | s = std::string(token, &token[e]); |
| 97 | token += e; |
| 98 | return s; |
| 99 | } |
| 100 | |
| 101 | static inline int parseInt(const char*& token) |
| 102 | { |
no outgoing calls
no test coverage detected