substr & negative start position

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6362 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-04-26 15:00:27 +00:00
parent b48939c516
commit 9a0b0abb9a
2 changed files with 9 additions and 5 deletions
+3 -3
View File
@@ -439,7 +439,7 @@
</arguments>
<return token="S" description="the substring" />
<remarks>
<remark>Character indexes begins at 0.</remark>
<remark>Character indexes begins at 0. If "start position" is negative, the reference is the end of the string.</remark>
</remarks>
<examples>
<example>
@@ -447,8 +447,8 @@
cdefg]]></code>
</example>
<example>
<code><![CDATA[echo (substr abcdefgh 2 3)
cde]]></code>
<code><![CDATA[echo (substr abcdefgh -3 2)
fg]]></code>
</example>
<example>
<code><![CDATA[echo (substr abcdefgh 2)