std-strlist->string | ![]() |
STD-STRLIST->STRING
is almost the same as STD-STRJOIN
, which combines a list of strings to a string seperated by a delimiter string. The only difference is that the strlst argument must be a list of strings.
It is the complement to STD-STRING->STRLIST
, but a roundtrip (std-strlist->string (std-string->strlist str d) d)
may not return the same result because multiple whitespace and null tokens are deleted.
This function is also widely used in handling DCL list_box
controls with multiple selections.
(std-strlist->string '("" "1" "2") ",") => ",1,2" (std-strlist->string (mapcar 'std-string-capitalize
(std-string->strlist input ",;\t ")) " ") =>
capitalizes all words
strlst: a list of strings.
delim: a string.
A string.
None.
(std-require 'STDSTR)
Defined in STDSTR