| 792 | } |
| 793 | |
| 794 | static inline std::string parseString(const char **token) { |
| 795 | std::string s; |
| 796 | (*token) += strspn((*token), " \t"); |
| 797 | size_t e = strcspn((*token), " \t\r"); |
| 798 | s = std::string((*token), &(*token)[e]); |
| 799 | (*token) += e; |
| 800 | return s; |
| 801 | } |
| 802 | |
| 803 | static inline int parseInt(const char **token) { |
| 804 | (*token) += strspn((*token), " \t"); |
no outgoing calls
no test coverage detected