summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2019-05-03 14:21:04 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2019-05-03 19:46:56 +0200
commit0b8a785539ce7823855944aeff33aad3773aad6a (patch)
tree4b461230087794549720f500580cabfdf32afff6 /doc/classes
parent913620a9b804b10a880f6274df1d8ef44c27cb54 (diff)
Make second parameter of substr optional
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/String.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index 526a9427dc..7a30801a22 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -748,10 +748,10 @@
</return>
<argument index="0" name="from" type="int">
</argument>
- <argument index="1" name="len" type="int">
+ <argument index="1" name="len" type="int" default="-1">
</argument>
<description>
- Returns part of the string from the position [code]from[/code] with length [code]len[/code].
+ Returns part of the string from the position [code]from[/code] with length [code]len[/code]. Argument [code]len[/code] is optional and using -1 will return remaining characters from given position.
</description>
</method>
<method name="to_ascii">