| 522 | } |
| 523 | |
| 524 | static inline std::string parseString(const char **token) { |
| 525 | std::string s; |
| 526 | (*token) += strspn((*token), " \t"); |
| 527 | size_t e = strcspn((*token), " \t\r"); |
| 528 | s = std::string((*token), &(*token)[e]); |
| 529 | (*token) += e; |
| 530 | return s; |
| 531 | } |
| 532 | |
| 533 | static inline int parseInt(const char **token) { |
| 534 | (*token) += strspn((*token), " \t"); |
no outgoing calls
no test coverage detected