aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lispref/strings.texi18
1 files changed, 12 insertions, 6 deletions
diff --git a/lispref/strings.texi b/lispref/strings.texi
index 635aca08fe7..681e76daea9 100644
--- a/lispref/strings.texi
+++ b/lispref/strings.texi
@@ -260,12 +260,18 @@ Lists}.
260@end defun 260@end defun
261 261
262@defun split-string string separators omit-nulls 262@defun split-string string separators omit-nulls
263This function splits @var{string} into substrings at matches for the regular 263This function splits @var{string} into substrings at matches for the
264expression @var{separators}. Each match for @var{separators} defines a 264regular expression @var{separators}. Each match for @var{separators}
265splitting point; the substrings between the splitting points are made 265defines a splitting point; the substrings between the splitting points
266into a list, which is the value returned by @code{split-string}. If 266are made into a list, which is the value returned by
267@var{omit-nulls} is @code{t}, null strings will be removed from the 267@code{split-string}.
268result list. Otherwise, null strings are left in the result. 268
269If @var{omit-nulls} is @code{nil}, the result contains null strings
270whenever there are two consecutive matches for @var{separators}, or a
271match is adjacent to the beginning or end of @var{string}. If
272@var{omit-nulls} is @code{t}, these null strings are omitted from the
273result list.
274
269If @var{separators} is @code{nil} (or omitted), 275If @var{separators} is @code{nil} (or omitted),
270the default is the value of @code{split-string-default-separators}. 276the default is the value of @code{split-string-default-separators}.
271 277