mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Now all regex functions use ScriptRule.
The *_rule functions can now be considered deprecated Documented this by removing mentions of the rule functions, except for a mention of backwards compatibility. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@997 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -13,7 +13,7 @@ Functions can be composed using the @+@ operator, evaluating @a + b@ first evalu
|
||||
> example := to_upper + { "result == {input}" }
|
||||
> example("xyz") == "result == XYZ"
|
||||
|
||||
Multiple functions can be changed together like this, especially using [[script:rule form]].
|
||||
Multiple functions can be changed together like this, this is especially convenient in combination with [[script:default arguments]].
|
||||
|
||||
--Example--
|
||||
> example := { a + b }
|
||||
|
||||
@@ -48,7 +48,7 @@ This is written as the character with code 1 in files.
|
||||
|
||||
--Related functions--
|
||||
The following script functions deal with tags:
|
||||
| [[fun:tag_contents|tag_contents / tag_contents_rule]]
|
||||
Change the contents of a specific tag.
|
||||
| [[fun:remove_tag|remove_tag / tag_remove_rule]]
|
||||
Remove a tag, keep the contents.
|
||||
| [[fun:tag_contents]] Change the contents of a specific tag.
|
||||
| [[fun:remove_tag]] Remove a tag, keep the contents.
|
||||
| [[fun:remove_tags]] Remove all tags from tagged text.
|
||||
| [[fun:to_text]] Remove all tags from tagged text, and convert it to a [[type:string]].
|
||||
|
||||
Reference in New Issue
Block a user