1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib-sub_str.md

15 lines
450 B
Markdown
Raw Normal View History

2017-03-29 11:35:41 +08:00
# sub_str
Returns a new string that is a substring of the given string.
## Parameters
- `t` : The original string.
- `begin` : The beginning index, inclusive.
2017-03-29 11:47:36 +08:00
- `end` : The ending index, exclusive. If it's omitted, the substring begins with the character at the specified `begin` and extends to the end of the original string.
2017-03-29 11:35:41 +08:00
## Examples
echo(sub_str("helloworld", 0, 5)); // ECHO: "hello"
echo(sub_str("helloworld", 5)); // ECHO: "world"