Merge pull request #28648 from KoBeWi/substr-1

Make second parameter of substr optional
This commit is contained in:
Rémi Verschelde 2019-06-19 12:43:46 +02:00 committed by GitHub
commit 2b52cd3e5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View file

@ -757,10 +757,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">