| 863 | } |
| 864 | |
| 865 | static inline std::string parseString(const char **token) { |
| 866 | std::string s; |
| 867 | (*token) += strspn((*token), " \t"); |
| 868 | size_t e = strcspn((*token), " \t\r"); |
| 869 | s = std::string((*token), &(*token)[e]); |
| 870 | (*token) += e; |
| 871 | return s; |
| 872 | } |
| 873 | |
| 874 | static inline int parseInt(const char **token) { |
| 875 | (*token) += strspn((*token), " \t"); |
no outgoing calls
no test coverage detected