1
0
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:
Justin Lin
2017-03-29 13:20:17 +08:00
parent 4d904d9eb0
commit 0b27893c59
3 changed files with 39 additions and 0 deletions

16
docs/lib-split_str.md Normal file
View 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"]