2017-03-29 11:35:41 +08:00
# sub_str
2019-06-29 10:01:43 +08:00
Returns the part of the string from `begin` to `end` , or to the `end` of the string (`end` not included).
2017-03-29 11:35:41 +08:00
## 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
2022-06-06 13:11:46 +08:00
use < util / sub_str . scad >
2017-03-30 14:22:48 +08:00
2021-02-10 15:59:03 +08:00
assert(sub_str("helloworld", 0, 5) == "hello");
assert(sub_str("helloworld", 5) == "world");