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

Function dStrichr

Engine/source/core/strings/stringFunctions.cpp:223–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

dToupperFunction · 0.85
dStrchrFunction · 0.70

Tested by

no test coverage detected