mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Merge pull request #78463 from AThousandShips/string_slice_doc
Clarify `String.get_slice` behavior
This commit is contained in:
commit
dbe8712d4e
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@
|
||||||
<param index="0" name="delimiter" type="String" />
|
<param index="0" name="delimiter" type="String" />
|
||||||
<param index="1" name="slice" type="int" />
|
<param index="1" name="slice" type="int" />
|
||||||
<description>
|
<description>
|
||||||
Splits the string using a [param delimiter] and returns the substring at index [param slice]. Returns an empty string if the [param slice] does not exist.
|
Splits the string using a [param delimiter] and returns the substring at index [param slice]. Returns the original string if [param delimiter] does not occur in the string. Returns an empty string if the [param slice] does not exist.
|
||||||
This is faster than [method split], if you only need one substring.
|
This is faster than [method split], if you only need one substring.
|
||||||
[b]Example:[/b]
|
[b]Example:[/b]
|
||||||
[codeblock]
|
[codeblock]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue