User Tools

Site Tools


lazynut_scripting_language:reference:conversion:wtregex_side_effect_conversion_impl

wtregex_side_effect_conversion_impl

Similar to wtregex_side_effect_conversion_impl, except both input and output are wtstring_patterns. The weight of the appended side-effect is the average of the weights of the contributing elements in the input.

add

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.

remove

some_rc remove search replace append 

Removes the rule mapping search to replace with side effect append in the rule list of some_rc.

list

some_rc list

Emit the list of rules for some_rc.

lazynut_scripting_language/reference/conversion/wtregex_side_effect_conversion_impl.txt · Last modified: 2016/03/25 15:00 (external edit)