Similar to regex_conversion_impl, except the output is not determined as the final state of the (edited) input buffer. The output starts out empty and each rule has a “side effect” that is appended to the output when that rule is applied. This is useful when the input and output have similar character spaces and structure.
some_rc add search replace append
Appends a new rule to the list in some_rc; the new rule has search as
the element sought, replace as the element that replaces it and append
as the side effect on the output. search may contain regular expression
elements (as implemented by boost) and replace and append may contain
elements like \1 to refer to parenthesised expressions in search.
some_rc remove search replace append
Removes the rule mapping search to replace with side effect append in
the rule list of some_rc.
some_rc list
Emit the list of rules for some_rc.
some_rc set_restart 0
Change the rule search to examine all rules before starting again at the beginning of the list of rules
some_rc set_restart 2
Change the rules search to examine each rule exactly once.
some_rc set_restart 1
Reinstate the default behaviour of starting the rule search at the beginning of the rule list anew after a successful match.