| 79 | } |
| 80 | |
| 81 | static inline std::string parseString(const char*& token) |
| 82 | { |
| 83 | std::string s; |
| 84 | int b = (int)strspn(token, " \t"); |
| 85 | int e = (int)strcspn(token, " \t\r"); |
| 86 | s = std::string(&token[b], &token[e]); |
| 87 | |
| 88 | token += (e - b); |
| 89 | return s; |
| 90 | } |
| 91 | |
| 92 | static inline int parseInt(const char*& token) |
| 93 | { |