Fix compilation

This commit is contained in:
Wojtek Figat
2024-10-06 23:54:20 +02:00
parent 4a4120864d
commit 28bf60e62d
2 changed files with 20 additions and 2 deletions

View File

@@ -15,6 +15,21 @@ constexpr char DirectorySeparatorChar = '\\';
constexpr char AltDirectorySeparatorChar = '/';
constexpr char VolumeSeparatorChar = ':';
#if PLATFORM_TEXT_IS_CHAR16
int32 StringUtils::Length(const wchar_t* str)
{
int32 result = 0;
if (str)
{
while (*str)
str++;
}
return result;
}
#endif
const Char* StringUtils::FindIgnoreCase(const Char* str, const Char* toFind)
{
if (toFind == nullptr || str == nullptr)