Make FcStrCmpIgnoreCase a bit faster
This commit is contained in:
parent
c8d5753c0f
commit
b2b6903259
|
@ -72,13 +72,16 @@ FcStrCmpIgnoreCase (const FcChar8 *s1, const FcChar8 *s2)
|
|||
{
|
||||
c1 = *s1++;
|
||||
c2 = *s2++;
|
||||
if (!c1 || !c2)
|
||||
if (!c1)
|
||||
break;
|
||||
if (c1 != c2)
|
||||
{
|
||||
c1 = FcToLower (c1);
|
||||
c2 = FcToLower (c2);
|
||||
if (c1 != c2)
|
||||
break;
|
||||
}
|
||||
}
|
||||
return (int) c1 - (int) c2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue