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