Make FcOpNotContains use FcStrStr for strings so that it matches semantics
for !FcOpContains. reviewed by: keithp
This commit is contained in:
parent
adc7abacbf
commit
f1a42f6b5f
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue