Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense.

This commit is contained in:
Lukas Aldershaab 2020-10-03 14:37:55 +02:00
parent 76c5e30869
commit c999baf7ed
68 changed files with 168 additions and 144 deletions

View file

@ -329,7 +329,7 @@ char* dStrcpyl(char *dst, dsize_t dstSize, ...)
}
S32 dStrcmp( const UTF16 *str1, const UTF16 *str2)
S32 dStrcmp(const UTF16 *str1, const UTF16 *str2)
{
#if defined(TORQUE_OS_WIN)
return wcscmp( reinterpret_cast<const wchar_t *>( str1 ), reinterpret_cast<const wchar_t *>( str2 ) );
@ -546,7 +546,7 @@ bool dStrEqual(const char* str1, const char* str2)
if (!str1 || !str2)
return false;
else
return (dStrcmp(str1, str2) == 0);
return (String::compare(str1, str2) == 0);
}
/// Check if one string starts with another