Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 19, 2016 11:53
Show Gist options
  • Save zhouqiang-cl/41800cead0f8db719ac079f33aeabee8 to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/41800cead0f8db719ac079f33aeabee8 to your computer and use it in GitHub Desktop.
common lisp 的函数 CHAR-NAME
语法
char-name character => name
参数和值
character --- 一个 character
name --- 一个 string 或 nil
描述
返回 character 的 name, 如果 character 没有 name, 则返回 nil
代码
* (char-name #\ )
"Space"
* (char-name #\Page)
"Page"
* (char-name #\a)
"LATIN_SMALL_LETTER_A"
* (char-name #\A)
"LATIN_CAPITAL_LETTER_A"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment