MCPcopy Create free account
hub / github.com/Apress/Ray-Tracing-Gems-II / parseString

Function parseString

Chapter_39/tiny_obj_loader.h:762–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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");

Callers 3

LoadObjFunction · 0.70
LoadObjWithCallbackFunction · 0.70

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected