Bug 23757 - Add mode="delete" to <edit>
authorAkira TAGOH <akira@tagoh.org>
Tue, 29 Jan 2013 11:19:36 +0000 (20:19 +0900)
committerAkira TAGOH <akira@tagoh.org>
Fri, 1 Feb 2013 03:56:14 +0000 (12:56 +0900)
commit20191810d1fea7c2f49b65ffee3e4d5e2bc0bac3
treefa5925889556407d6a9da7303e50039974e2ee4f
parentc1d9588890798e389d0f0ba633b704dee1ea8bf5
Bug 23757 - Add mode="delete" to <edit>

Add two edit mode, "delete" and "delete_all".
what values are being deleted depends on <test> as documented.
if the target object is same to what is tested, matching value there
will be deleted. otherwise all of values in the object will be deleted.
so this would means both edit mode will not take any expressions.

e.g.

Given that the testing is always true here, the following rules:

  <match>
    <test name="foo" compare="eq">
      <string>bar</string>
    </test>
    <edit name="foo" mode="delete"/>
  </match>

will removes "bar" string from "foo" object. and:

  <match>
    <test name="foo" compare="eq">
      <string>foo</string>
    </test>
    <edit name="bar" mode="delete"/>
  </match>

will removes all of values in "bar" object.
doc/fontconfig-user.sgml
fonts.dtd
src/fccfg.c
src/fcdbg.c
src/fcint.h
src/fcxml.c