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

Function SplitString

Chapter_39/tiny_obj_loader.h:1659–1667  ·  view source on GitHub ↗

Split a string with specified delimiter character. http://stackoverflow.com/questions/236129/split-a-string-in-c

Source from the content-addressed store, hash-verified

1657 // Split a string with specified delimiter character.
1658 // http://stackoverflow.com/questions/236129/split-a-string-in-c
1659 static void SplitString(const std::string &s, char delim,
1660 std::vector<std::string> &elems) {
1661 std::stringstream ss;
1662 ss.str(s);
1663 std::string item;
1664 while (std::getline(ss, item, delim)) {
1665 elems.push_back(item);
1666 }
1667 }
1668
1669 void LoadMtl(std::map<std::string, int> *material_map,
1670 std::vector<material_t> *materials, std::istream *inStream,

Callers 2

LoadObjFunction · 0.70
LoadObjWithCallbackFunction · 0.70

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected