Questions tagged «characters»

4
如何确定当前字符是否为字母
如何确定当前字符是否是字母(字母字符)(即属于[:alpha:]regexp概念中的语法类)。我想编写一个简单的函数,如下所示: (defun test-letter () (interactive) (if char-after-is-a-letter (message "This is a letter") (message "This is not a letter") ) ) 更新 不幸的是,我对字母类和语法类等效的假设[:alpha:]似乎是错误的。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.