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,12 +2,9 @@ Function: format
--Usage--
> format(some_number, format: format_specification)
> format_rule(format: format_specification)(some_number)
Format a number or other string as a string, [[http://www.cplusplus.com/reference/clibrary/cstdio/printf.html|printf]] style.
This function is available in [[script:rule form]].
--Parameters--
! Parameter Type Description
| @input@ [[type:int]] or [[type:double]] or [[type:string]]
@@ -19,5 +16,5 @@ This function is available in [[script:rule form]].
> format(format: "%03d", 13) == "013"
> format(format: "%3s", "xy") == " xy"
>
> f := format_rule(format: "%03d")
> f := format@(format: "%03d")
> f(1) == "001"