mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
516 B
516 B
sub_str
Returns the part of the string from begin
to end
, or to the end
of the string (end
not included).
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 specifiedbegin
and extends to the end of the original string.
Examples
use <util/sub_str.scad>
assert(sub_str("helloworld", 0, 5) == "hello");
assert(sub_str("helloworld", 5) == "world");