| 4224 | |
| 4225 | template <typename T> |
| 4226 | void SplitString( const std::string& string, char delim, T callback ) |
| 4227 | { |
| 4228 | size_t last = 0; |
| 4229 | size_t next = 0; |
| 4230 | while( ( next = string.find( delim, last ) ) != std::string::npos ) |
| 4231 | { |
| 4232 | callback( string.substr( last, next - last ) ); |
| 4233 | last = next + 1; |
| 4234 | } |
| 4235 | callback( string.substr( last ) ); |
| 4236 | } |
| 4237 | |
| 4238 | struct MetalTool |
| 4239 | { |
no outgoing calls
no test coverage detected