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:
twanvl
2008-06-19 00:37:48 +00:00
parent 5ece2dbb86
commit 158ecf67ad
19 changed files with 110 additions and 114 deletions
+1 -4
View File
@@ -2,7 +2,6 @@ Function: sort_text
--Usage--
> sort_text(order: order specification, some_text)
> sort_rule(order: order specification)(some_text)
Sort a string or filter it by keeping specific characters.
@@ -45,8 +44,6 @@ behaves the same as
> sort_text(order: "x")
because the first @"x"@ already selects all xs from the input.
This function is available in [[script:rule form]].
--Parameters--
! Parameter Type Description
| @input@ [[type:string]] Text to sort
@@ -67,5 +64,5 @@ This function is available in [[script:rule form]].
> sort_text(order: "pattern(./. cycle(wubrg))", "wgw/g") == "g/w"
> sort_text(order: "[1234567890]cycle(wubrg)", "21wg") == "21gw"
>
> f := sort_rule(order: "[1234567890]cycle(wubrg)")
> f := sort_text@(order: "[1234567890]cycle(wubrg)")
> f("21wg") == "21gw"