dos_strtokens
(dos_strtokens string splitters
[NoEmptyParts])
This function splits the given
string into a list
of tokens, based on specified splitters string;
if any optional 3rd argument is given, the
result list does not contain empty strings.
string : (string)
the string to be splitted into a list of tokens
splitters : (string) specifies the characters used as
delimiters
[NoEmptyParts] : if a third argument is given, empty strings are not
returned
Examples :
(dos_strtokens "Split this string\nof
\ttokens\nand more strings; end." "\t\n ,;" T)
("Split" "this" "string" "of" "tokens" "and"
"more" "strings" "end.")
(dos_strtokens "Split this string\nof
\ttokens\nand more strings; end." "\t\n ,;" NIL)
("Split" "this" "string" "of" "tokens" "and"
"more" "strings" "end.")
(dos_strtokens "Split this string\nof
\ttokens\nand more strings; end." "\t\n ,;")
("Split" "this" "string" "of" "" "tokens"
"and" "more" "strings" "" "end.")
© Bricsys NV. All rights reserved. |