Commit b2b69032 authored by Keith Packard's avatar Keith Packard

Make FcStrCmpIgnoreCase a bit faster

parent c8d5753c
......@@ -72,12 +72,15 @@ FcStrCmpIgnoreCase (const FcChar8 *s1, const FcChar8 *s2)
{
c1 = *s1++;
c2 = *s2++;
if (!c1 || !c2)
if (!c1)
break;
c1 = FcToLower (c1);
c2 = FcToLower (c2);
if (c1 != c2)
break;
{
c1 = FcToLower (c1);
c2 = FcToLower (c2);
if (c1 != c2)
break;
}
}
return (int) c1 - (int) c2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment