| 124 | } |
| 125 | |
| 126 | void split(std::string& s, std::string delim, std::vector<std::string>* ret) |
| 127 | { |
| 128 | size_t last = 0; |
| 129 | size_t index = s.find_first_of(delim, last); |
| 130 | while(index != string::npos) |
| 131 | { |
| 132 | ret->push_back(s.substr(last, index - last)); |
| 133 | last = index + 1; |
| 134 | index = s.find_first_of(delim, last); |
| 135 | } |
| 136 | if(index - last > 0) |
| 137 | { |
| 138 | ret->push_back(s.substr(last, index - last)); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void LoadImageFile(std::vector<std::string>& result, const char* fname) |
| 143 | { |
no outgoing calls
no test coverage detected