diff options
author | Dave Love <[email protected]> | 2003-10-06 16:52:24 +0000 |
---|---|---|
committer | Dave Love <[email protected]> | 2003-10-06 16:52:24 +0000 |
commit | d7f29ece72eca0e84a87ae8f5961fb90ae151878 (patch) | |
tree | 103b55ce722c1f8aff81dd1cc42620b6f2508987 | |
parent | cf4ccadb2cf76538e319dcb294324f48d80cb40e (diff) |
Char-tables are sequences.
Add string-bytes.
-rw-r--r-- | lispref/sequences.texi | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lispref/sequences.texi b/lispref/sequences.texi index e4503dd821..75b4b31beb 100644 --- a/lispref/sequences.texi +++ b/lispref/sequences.texi @@ -69,8 +69,8 @@ elements. This section describes functions that accept any kind of sequence. @defun sequencep object -Returns @code{t} if @var{object} is a list, vector, or -string, @code{nil} otherwise. +Returns @code{t} if @var{object} is a list, vector, +string, or char-table, @code{nil} otherwise. @end defun @defun length sequence @@ -78,10 +78,12 @@ string, @code{nil} otherwise. @cindex list length @cindex vector length @cindex sequence length +@cindex char-table length This function returns the number of elements in @var{sequence}. If @var{sequence} is a cons cell that is not a list (because the final @sc{cdr} is not @code{nil}), a @code{wrong-type-argument} error is -signaled. +signaled. For a char-table, the value returned is always one more +than the maximum Emacs character code. @xref{List Elements}, for the related function @code{safe-length}. @@ -109,6 +111,13 @@ signaled. @end example @end defun +@defun string-bytes string +@cindex string, number of bytes +This function returns the number of bytes in @var{string}. +If @var{string} is a multibyte string, this is greater than +@code{(length @var{string})}. +@end defun + @defun elt sequence index @cindex elements of sequences This function returns the element of @var{sequence} indexed by |