mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-02 03:02:34 +02:00
added split_str
This commit is contained in:
16
docs/lib-split_str.md
Normal file
16
docs/lib-split_str.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# split_str
|
||||
|
||||
Splits the given string around matches of the given delimiting character. It depeneds on the `sub_str` function so remember to `include <sub_str.scad>`.
|
||||
|
||||
## Parameters
|
||||
|
||||
- `t` : The source string.
|
||||
- `delimiter` : The delimiting character.
|
||||
|
||||
## Examples
|
||||
|
||||
include <sub_str.scad>;
|
||||
include <split_str.scad>;
|
||||
|
||||
echo(split_str("hello,world", ",")); // ECHO: ["hello", "world"]
|
||||
|
Reference in New Issue
Block a user