《通链参考手册》


Function UPPER-CASE-P, LOWER-CASE-P, BOTH-CASE-P

●语法设定:

upper-case-p character => generalized-boolean

lower-case-p character => generalized-boolean

both-case-p character => generalized-boolean

●参数和值:

character---a character.

generalized-boolean---a generalized boolean.

●详情:

These functions test the case of a given character.

upper-case-p returns true if character is an uppercase character; otherwise, returns false.

lower-case-p returns true if character is a lowercase character; otherwise, returns false.

both-case-p returns true if character is a character with case; otherwise, returns false.

●例子:

 (upper-case-p #\A) =>  true
 (upper-case-p #\a) =>  false
 (both-case-p #\a) =>  true
 (both-case-p #\5) =>  false
 (lower-case-p #\5) =>  false
 (upper-case-p #\5) =>  false
 ;; This next example presupposes an implementation 
 ;; in which #\Bell is an implementation-defined character.
 (lower-case-p #\Bell) =>  false

●副作用: None.

●受制于: 无。

●例外情况:

Should signal an error of type type-error if character is not a character.

●更多信息:

char-upcase, char-downcase, Section 13.1.4.3 (Characters With Case), Section 13.1.10 (Documentation of Implementation-Defined Scripts)

●说明: 无。


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案