| 821 | } |
| 822 | |
| 823 | static inline std::string parseString(const char **token) { |
| 824 | std::string s; |
| 825 | (*token) += strspn((*token), " \t"); |
| 826 | size_t e = strcspn((*token), " \t\r"); |
| 827 | s = std::string((*token), &(*token)[e]); |
| 828 | (*token) += e; |
| 829 | return s; |
| 830 | } |
| 831 | |
| 832 | static inline int parseInt(const char **token) { |
| 833 | (*token) += strspn((*token), " \t"); |
no outgoing calls
no test coverage detected