| 760 | } |
| 761 | |
| 762 | static inline std::string parseString(const char **token) { |
| 763 | std::string s; |
| 764 | (*token) += strspn((*token), " \t"); |
| 765 | size_t e = strcspn((*token), " \t\r"); |
| 766 | s = std::string((*token), &(*token)[e]); |
| 767 | (*token) += e; |
| 768 | return s; |
| 769 | } |
| 770 | |
| 771 | static inline int parseInt(const char **token) { |
| 772 | (*token) += strspn((*token), " \t"); |
no test coverage detected