fix substr command

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6358 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-04-26 12:12:33 +00:00
parent d8f93a4bf3
commit ad9826cac8
2 changed files with 16 additions and 9 deletions
+4 -4
View File
@@ -435,20 +435,20 @@
<arguments>
<argument token="S" description="the original string"/>
<argument token="A" description="start position"/>
<argument token="B" description="end position"/>
<argument token="L" description="substring length (optionnal)"/>
</arguments>
<return token="S" description="the substring" />
<remarks>
<remark>Character indexes begins at 0. The end position is the char that is not included anymore.</remark>
<remark>Character indexes begins at 0.</remark>
</remarks>
<examples>
<example>
<code><![CDATA[echo (substr abcdefgh 2 5)
cde]]></code>
cdefg]]></code>
</example>
<example>
<code><![CDATA[echo (substr abcdefgh 2 3)
c]]></code>
cde]]></code>
</example>
<example>
<code><![CDATA[echo (substr abcdefgh 2)