Split string at newline characters
newStr = splitlines(str)
splits newStr
= splitlines(str
)str
at
newline characters and returns the result in newStr
.
If str
is a string array, then each element of str
must
contain the same number of newlines.
splitlines
splits at actual newline characters,
not at the literal \n
. To split a string that contains \n
,
first use compose
and then use splitlines
.