MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dStrichr

Function dStrichr

Engine/source/core/strings/stringFunctions.cpp:224–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224char* dStrichr( char* str, char ch )
225{
226 AssertFatal( str != NULL, "dStrichr - NULL string" );
227
228 if( !ch )
229 return dStrchr( str, ch );
230
231 char c = dToupper( ch );
232 while( *str )
233 {
234 if( dToupper( *str ) == c )
235 return str;
236
237 ++ str;
238 }
239
240 return NULL;
241}
242
243const char* dStrichr( const char* str, char ch )
244{

Callers

nothing calls this directly

Calls 2

dToupperFunction · 0.85
dStrchrFunction · 0.70

Tested by

no test coverage detected