| ... |
... |
@@ -31,7 +31,6 @@ |
|
31
|
31
|
alphanumericp char= char/= char< char> char<= char>= char-equal
|
|
32
|
32
|
char-not-equal char-lessp char-greaterp char-not-greaterp
|
|
33
|
33
|
char-not-lessp character char-code code-char char-upcase
|
|
34
|
|
- char-titlecase title-case-p
|
|
35
|
34
|
char-downcase digit-char char-int char-name name-char
|
|
36
|
35
|
codepoint-limit codepoint))
|
|
37
|
36
|
|
| ... |
... |
@@ -298,17 +297,6 @@ |
|
298
|
297
|
(and (> m +ascii-limit+)
|
|
299
|
298
|
(not (zerop (ldb +upper-case-entry+ (case-mapping-entry m))))))))
|
|
300
|
299
|
|
|
301
|
|
-(defun title-case-p (char)
|
|
302
|
|
- "The argument must be a character object; title-case-p returns T if the
|
|
303
|
|
- argument is a title-case character, NIL otherwise."
|
|
304
|
|
- (declare (character char))
|
|
305
|
|
- (let ((m (char-code char)))
|
|
306
|
|
- (or (< 64 m 91)
|
|
307
|
|
- #+(and unicode (not unicode-bootstrap))
|
|
308
|
|
- (and (> m +ascii-limit+)
|
|
309
|
|
- (= (unicode-category m) +unicode-category-title+)))))
|
|
310
|
|
-
|
|
311
|
|
-
|
|
312
|
300
|
(defun both-case-p (char)
|
|
313
|
301
|
"The argument must be a character object. Both-case-p returns T if the
|
|
314
|
302
|
argument is an alphabetic character and if the character exists in
|
| ... |
... |
@@ -504,20 +492,6 @@ |
|
504
|
492
|
(declare (character char))
|
|
505
|
493
|
(char-upcase char))
|
|
506
|
494
|
|
|
507
|
|
-(defun char-titlecase (char)
|
|
508
|
|
- "Returns CHAR converted to title-case if that is possible."
|
|
509
|
|
- (declare (character char))
|
|
510
|
|
- #-(and unicode (not unicode-bootstrap))
|
|
511
|
|
- (if (lower-case-p char)
|
|
512
|
|
- (code-char (- (char-code char) 32))
|
|
513
|
|
- char)
|
|
514
|
|
- #+(and unicode (not unicode-bootstrap))
|
|
515
|
|
- (let ((m (char-code char)))
|
|
516
|
|
- (cond ((> m +ascii-limit+) (code-char (unicode-title m)))
|
|
517
|
|
- ((< (char-code #\`) m (char-code #\{))
|
|
518
|
|
- (code-char (- m 32)))
|
|
519
|
|
- (t char))))
|
|
520
|
|
-
|
|
521
|
495
|
(defun char-downcase (char)
|
|
522
|
496
|
"Returns CHAR converted to lower-case if that is possible."
|
|
523
|
497
|
(declare (character char))
|