Next: , Previous: , Up: Strings and Characters   [Contents][Index]


10.2 The Predicates for Strings

For more information about general sequence and array predicates, see Sequences Arrays Vectors, and Arrays.

Function: stringp object

This function returns t if object is a string, nil otherwise.

Function: char-or-string-p object

This function returns t if object is a string or a character, nil otherwise.

In SXEmacs addition, this function also returns t if object is an integer that can be represented as a character. This is because of compatibility with previous XEmacs and should not be depended on.