User Tools

Site Tools


lazynut_scripting_language:reference:conversion:regex_side_effect_wtout_conversion_impl

regex_side_effect_wtout_conversion_impl

Similar to regex_side_effect_conversion_impl, except the output is a wtstring_pattern. Each side effect has an associated weight which is the strength of that it will have in the output.

add

some_rc add search replace append weight

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 with weight weight 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 weight

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

list

some_rc list

Emit the list of rules for some_rc.

lazynut_scripting_language/reference/conversion/regex_side_effect_wtout_conversion_impl.txt · Last modified: 2016/03/25 14:54 (external edit)