split_space

This commit is contained in:
Udo 2022-01-30 12:19:20 +00:00
parent 17336fe649
commit 5df52146be
4 changed files with 14 additions and 3 deletions

View File

@ -5,6 +5,7 @@ first
join
nibble
split
split_space
split_utf8
replace
to_lower

View File

View File

@ -1,11 +1,9 @@
:sig
StringList split(String str, String delim)
StringList split(String str)
:params
str : string to be split
delim : optional, delimiter (if omitted, any sequence of whitespace characters will count as a delimiter)
delim : delimiter
return value : a list of strings
:desc

12
doc/pages/split_space.txt Normal file
View File

@ -0,0 +1,12 @@
:sig
StringList split_space(String str)
:params
str : string to be split
return value : a list of strings
:desc
Splits 'str' into multiple strings along any whitespace characters (multiple whitespace characters count as one).
:see
>string