Make FcOpNotContains use FcStrStr for strings so that it matches semantics

for !FcOpContains.
reviewed by: keithp
This commit is contained in:
Keith Packard 2005-06-17 03:01:43 +00:00
parent adc7abacbf
commit f1a42f6b5f
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2005-06-16 Patrick Lam <plam@MIT.EDU>
reviewed by: keithp
* src/fccfg.c: (FcConfigCompareValue):
Make FcOpNotContains use FcStrStr for strings so that
it matches semantics for !FcOpContains.
2005-05-20 Keith Packard <keithp@keithp.com> 2005-05-20 Keith Packard <keithp@keithp.com>
* debian/changelog: * debian/changelog:

View File

@ -629,9 +629,11 @@ FcConfigCompareValue (const FcValue left_o,
ret = FcStrStrIgnoreCase (left.u.s, right.u.s) != 0; ret = FcStrStrIgnoreCase (left.u.s, right.u.s) != 0;
break; break;
case FcOpNotEqual: case FcOpNotEqual:
case FcOpNotContains:
ret = FcStrCmpIgnoreCase (left.u.s, right.u.s) != 0; ret = FcStrCmpIgnoreCase (left.u.s, right.u.s) != 0;
break; break;
case FcOpNotContains:
ret = FcStrStrIgnoreCase (left.u.s, right.u.s) == 0;
break;
default: default:
break; break;
} }