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

Function dStrcmp

Engine/source/core/strings/stringFunctions.cpp:331–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330
331S32 dStrcmp( const UTF16 *str1, const UTF16 *str2)
332{
333#if defined(TORQUE_OS_WIN) || defined(TORQUE_OS_XBOX) || defined(TORQUE_OS_XENON)
334 return wcscmp( reinterpret_cast<const wchar_t *>( str1 ), reinterpret_cast<const wchar_t *>( str2 ) );
335#else
336 S32 ret;
337 const UTF16 *a, *b;
338 a = str1;
339 b = str2;
340
341 while( ((ret = *a - *b) == 0) && *a && *b )
342 a++, b++;
343
344 return ret;
345#endif
346}
347
348char* dStrupr(char *str)
349{

Callers 1

dStrEqualFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected