mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense.
This commit is contained in:
parent
76c5e30869
commit
c999baf7ed
68 changed files with 168 additions and 144 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue