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

Function ContainsSubstring

shadercompiler/InlineString.h:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146inline bool ContainsSubstring( const InlineString& name, const char* substr )
147{
148 size_t len = strlen( substr );
149 for( const char* s = name.start; s + len <= name.end; ++s )
150 {
151 if( strncmp( s, substr, len ) == 0 )
152 {
153 return true;
154 }
155 }
156 return false;
157}

Callers 3

GetTextureTypeFunction · 0.85
FindDX9TexSampleCallsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected