1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 13:59:04 +02:00

update doc

This commit is contained in:
Justin Lin
2019-06-23 10:02:08 +08:00
parent 2d9562c8b6
commit b1687bece2

16
docs/lib2-sub_str.md Normal file
View File

@@ -0,0 +1,16 @@
# sub_str
Returns a new string that is a substring of the given string.
## Parameters
- `t` : The original string.
- `begin` : The beginning index, inclusive.
- `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.
## Examples
include <util/sub_str.scad>;
echo(sub_str("helloworld", 0, 5)); // ECHO: "hello"
echo(sub_str("helloworld", 5)); // ECHO: "world"