]> git.wh0rd.org - fontconfig.git/blobdiff - src/fclist.c
Adopt some RedHat suggestions for standard font configuration.
[fontconfig.git] / src / fclist.c
index 6730f20324f92ac95e6bd76adfcb82bda8f3b71c..aaa9061774799267deb87d0a4898ab40c18b69c8 100644 (file)
@@ -219,20 +219,6 @@ FcListPatternMatchAny (const FcPattern *p,
     return FcTrue;
 }
 
-static FcChar32
-FcListStringHash (const FcChar8        *s)
-{
-    FcChar32   h = 0;
-    FcChar8    c;
-
-    while ((c = *s++))
-    {
-       c = FcToLower (c);
-       h = ((h << 3) ^ (h >> 3)) ^ c;
-    }
-    return h;
-}
-
 static FcChar32
 FcListMatrixHash (const FcMatrix *m)
 {
@@ -255,7 +241,7 @@ FcListValueHash (FcValue    v)
     case FcTypeDouble:
        return (FcChar32) (int) v.u.d;
     case FcTypeString:
-       return FcListStringHash (v.u.s);
+       return FcStrHashIgnoreCase (v.u.s);
     case FcTypeBool:
        return (FcChar32) v.u.b;
     case FcTypeMatrix: