diff options
author | Keith Packard <keithp@keithp.com> | 2004-12-29 09:15:17 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2004-12-29 09:15:17 +0000 |
commit | 192296d852011f4a2abb6e9fd1ee741fa7f81673 (patch) | |
tree | 0a6924e8b0b4a950d5eb78bbfc541be3367ad9ae /src/fclist.c | |
parent | 5cf8c5364f1b7a676f52b480fa55c571cadc6fda (diff) | |
download | fontconfig-192296d852011f4a2abb6e9fd1ee741fa7f81673.tar.gz |
Adopt some RedHat suggestions for standard font configuration.
Add new helper program 'fc-case' to construct case folding tables from
standard Unicode CaseFolding.txt file
Re-implement case insensitive functions with Unicode aware versions
(including full case folding mappings)
Diffstat (limited to 'src/fclist.c')
-rw-r--r-- | src/fclist.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/fclist.c b/src/fclist.c index 6730f20..aaa9061 100644 --- a/src/fclist.c +++ b/src/fclist.c @@ -220,20 +220,6 @@ FcListPatternMatchAny (const FcPattern *p, } 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) { int xx = (int) (m->xx * 100), @@ -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: |