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

@ -206,7 +206,7 @@ void Platform::clearExcludedDirectories()
bool Platform::isExcludedDirectory(const char *pDir)
{
for(CharVector::iterator i=gPlatformDirectoryExcludeList.begin(); i!=gPlatformDirectoryExcludeList.end(); i++)
if(!dStrcmp(pDir, *i))
if(!String::compare(pDir, *i))
return true;
return false;
@ -349,18 +349,18 @@ char * Platform::makeFullPathName(const char *path, char *buffer, U32 size, cons
// Directory
if(dStrcmp(ptr, "..") == 0)
if(String::compare(ptr, "..") == 0)
{
// Parent
endptr = dStrrchr(buffer, '/');
if (endptr)
*endptr-- = 0;
}
else if(dStrcmp(ptr, ".") == 0)
else if(String::compare(ptr, ".") == 0)
{
// Current dir
}
else if(dStrcmp(ptr, "~") == 0)
else if(String::compare(ptr, "~") == 0)
{
catPath(endptr, defaultDir, size - (endptr - buffer));
endptr += dStrlen(endptr) - 1;