(delay
(let ((predicate
(lambda (char)
- (and (bitless-char? char)
+ (and (char? char)
(char-in-set? char char-set)))))
- (register-predicate! predicate 'char-set-predicate
- '<= bitless-char?)
+ (register-predicate! predicate 'char-set-predicate '<= char?)
predicate)))))
char-set))
(define (%cpl-element->ranges elt)
(cond ((%range? elt) (list elt))
- ((bitless-char? elt) (list (char->integer elt)))
+ ((char? elt) (list (char-code elt)))
((string? elt) (map char->integer (string->list elt)))
(else #f)))
(define (cpl-element? object)
(or (%range? object)
- (bitless-char? object)
+ (char? object)
(string? object)
(char-set? object)
(name->char-set object)))
(define (char-in-set? char char-set)
(guarantee char? char 'char-in-set?)
- (and (bitless-char? char)
- (%code-point-in-char-set? (char->integer char) char-set)))
+ (%code-point-in-char-set? (char-code char) char-set))
(define (code-point-in-char-set? cp char-set)
(guarantee unicode-code-point? cp 'code-point-in-char-set?)
n))
(define (char-general-category char)
- (guarantee bitless-char? char 'char-general-category)
- (ucd-gc-value char))
+ (guarantee char? char 'char-general-category)
+ (code-point-general-category (char-code char)))
(define (code-point-general-category cp)
(guarantee unicode-code-point? cp 'code-point-general-category)