Next: 创建字符串, Previous: 字符串与字符基础, Up: 字符串与字符 [Contents][Index]
4.2 字符串判断函数 ¶
关于通用序列与数组判断函数的更多信息,参见《序列、数组与向量》和《数组》。
- Function: stringp object ¶
如果 object 是字符串,该函数返回 t,否则返回 nil。
- Function: string-or-null-p object ¶
如果 object 是字符串或 nil,该函数返回 t,否则返回 nil。
- Function: char-or-string-p object ¶
如果 object 是字符串或字符(即整数),该函数返回 t,否则返回 nil。