MCPcopy Create free account
hub / github.com/carbonengine/trinity / SplitString

Function SplitString

shadercompiler/EffectCompilerMetal.cpp:4226–4236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4224
4225template <typename T>
4226void 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
4238struct MetalTool
4239{

Callers 1

DetectUnusedArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected