comparison lispref/strings.texi @ 51154:1cb98e67d9b2

Fix mismatched @def/@end pairs (inadvertently nested?).
author Miles Bader <miles@gnu.org>
date Fri, 23 May 2003 01:22:32 +0000
parents 337c29aec7ce
children 88e4ead2513f
comparison
equal deleted inserted replaced
51153:13c3a6c789ba 51154:1cb98e67d9b2
1 @c -*-texinfo-*- 1 @c -*-texinfo-*-
2 @c This is part of the GNU Emacs Lisp Reference Manual. 2 @c This is part of the GNU Emacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003
4 @c Free Software Foundation, Inc. 4 @c Free Software Foundation, Inc.
5 @c See the file elisp.texi for copying conditions. 5 @c See the file elisp.texi for copying conditions.
6 @setfilename ../info/strings 6 @setfilename ../info/strings
7 @node Strings and Characters, Lists, Numbers, Top 7 @node Strings and Characters, Lists, Numbers, Top
8 @comment node-name, next, previous, up 8 @comment node-name, next, previous, up
267 @var{omit-nulls} is @code{t}, null strings will be removed from the 267 @var{omit-nulls} is @code{t}, null strings will be removed from the
268 result list. Otherwise, null strings are left in the result. 268 result list. Otherwise, null strings are left in the result.
269 If @var{separators} is @code{nil} (or omitted), 269 If @var{separators} is @code{nil} (or omitted),
270 the default is the value of @code{split-string-default-separators}. 270 the default is the value of @code{split-string-default-separators}.
271 271
272 @defvar split-string-default-separators
273 The default value of @var{separators} for @code{split-string}, initially
274 @samp{"[ \f\t\n\r\v]+"}.
275
276 As a special case, when @var{separators} is @code{nil} (or omitted), 272 As a special case, when @var{separators} is @code{nil} (or omitted),
277 null strings are always omitted from the result. Thus: 273 null strings are always omitted from the result. Thus:
278 274
279 @example 275 @example
280 (split-string " two words ") 276 (split-string " two words ")
308 @result{}("S" "u" "p" " " "i" "s" " " "g" "d" " " "f" "d") 304 @result{}("S" "u" "p" " " "i" "s" " " "g" "d" " " "f" "d")
309 (split-string "Nice doggy!" "") 305 (split-string "Nice doggy!" "")
310 @result{}("N" "i" "c" "e" " " "d" "o" "g" "g" "y" "!") 306 @result{}("N" "i" "c" "e" " " "d" "o" "g" "g" "y" "!")
311 @end example 307 @end example
312 @end defun 308 @end defun
309
310 @defvar split-string-default-separators
311 The default value of @var{separators} for @code{split-string}, initially
312 @samp{"[ \f\t\n\r\v]+"}.
313 @end defvar
313 314
314 @node Modifying Strings 315 @node Modifying Strings
315 @section Modifying Strings 316 @section Modifying Strings
316 317
317 The most basic way to alter the contents of an existing string is with 318 The most basic way to alter the contents of an existing string is with