Renaming string functions.

This commit is contained in:
Branimir Karadžić
2017-04-22 14:46:22 -07:00
parent 8c79e05df0
commit 69512a3e6f
3 changed files with 30 additions and 14 deletions

View File

@@ -234,7 +234,7 @@ namespace bimg
const TextureFormat::Enum fmt = TextureFormat::Enum(ii);
if (isValid(fmt) )
{
if (0 == bx::strincmp(s_textureFormatName[ii], _name) )
if (0 == bx::strCmpI(s_textureFormatName[ii], _name) )
{
return fmt;
}

View File

@@ -258,22 +258,22 @@ namespace bimg
{
const EXRChannelInfo& channel = exrHeader.channels[ii];
if (UINT8_MAX == idxR
&& 0 == bx::strncmp(channel.name, "R") )
&& 0 == bx::strCmp(channel.name, "R") )
{
idxR = ii;
}
else if (UINT8_MAX == idxG
&& 0 == bx::strncmp(channel.name, "G") )
&& 0 == bx::strCmp(channel.name, "G") )
{
idxG = ii;
}
else if (UINT8_MAX == idxB
&& 0 == bx::strncmp(channel.name, "B") )
&& 0 == bx::strCmp(channel.name, "B") )
{
idxB = ii;
}
else if (UINT8_MAX == idxA
&& 0 == bx::strncmp(channel.name, "A") )
&& 0 == bx::strCmp(channel.name, "A") )
{
idxA = ii;
}