List of same elements would get from a split but trimmed as well.
StringVariable | String value to be split and trimmed. Can be either a value or @VarName (will upvar and read/write). |
SplitValue | What to split on. |
TrimValue | What to trim. |
Note that any empty strings produced by the split are not added to the return list.
Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See About Using @ for details.
For information regarding exceptions / errors, see
here.
% SplitAndTrim "one ,two, three" ","
one two three
% SplitAndTrim "one two three"
one two three
% set MyString "one two three"
one two three
% SplitAndTrim @MyString
one two three
% puts $MyString
one two three