(else (error "Unsupported metadata:" metadata)))))
(define (code-generator:boolean prop-name metadata prop-alist proc-name)
- (let ((char-set-name (symbol "char-set:" (metadata-full-name metadata))))
- `((define (,proc-name char)
+ (declare (ignore proc-name))
+ (let* ((full-name (metadata-full-name metadata))
+ (char-set-name (symbol "char-set:" full-name)))
+ `((define (,(symbol "char-" full-name "?") char)
(char-in-set? char ,char-set-name))
(define-deferred ,char-set-name
(char-set*
"ucd-table-wspace")
(parent (runtime))
(export ()
+ char-alphabetic?
+ char-lower-case?
+ char-upper-case?
+ char-whitespace?
char-set:alphabetic
char-set:lower-case
char-set:upper-case
(files "ucd-glue")
(parent (runtime))
(export ()
- char-alphabetic?
char-alphanumeric?
- char-lower-case?
char-numeric?
char-set:alphanumeric
char-set:not-alphabetic
char-set:not-whitespace
char-set:numeric
char-set:symbol-constituent
- char-set:symbol-initial
- char-upper-case?
- char-whitespace?))
+ char-set:symbol-initial))
(define-package (runtime character-set)
(files "chrset")
(lambda (sv)
(eq? 'decimal (ucd-nt-value (integer->char sv))))))
+(define-deferred char-numeric?
+ (char-set-predicate char-set:numeric))
+
(define-deferred char-set:alphanumeric
(char-set-union char-set:alphabetic char-set:numeric))
-(define-deferred char-alphabetic?
- (char-set-predicate char-set:alphabetic))
-
(define-deferred char-alphanumeric?
(char-set-predicate char-set:alphanumeric))
-(define-deferred char-lower-case?
- (char-set-predicate char-set:lower-case))
-
-(define-deferred char-numeric?
- (char-set-predicate char-set:numeric))
-
-(define-deferred char-upper-case?
- (char-set-predicate char-set:upper-case))
-
-(define-deferred char-whitespace?
- (char-set-predicate char-set:whitespace))
-
(define-deferred char-set:not-alphabetic
(char-set-invert char-set:alphabetic))
(declare (usual-integrations))
\f
-(define (ucd-alpha-value char)
+(define (char-alphabetic? char)
(char-in-set? char char-set:alphabetic))
(define-deferred char-set:alphabetic
(declare (usual-integrations))
\f
-(define (ucd-lower-value char)
+(define (char-lower-case? char)
(char-in-set? char char-set:lower-case))
(define-deferred char-set:lower-case
(declare (usual-integrations))
\f
-(define (ucd-upper-value char)
+(define (char-upper-case? char)
(char-in-set? char char-set:upper-case))
(define-deferred char-set:upper-case
(declare (usual-integrations))
\f
-(define (ucd-wspace-value char)
+(define (char-whitespace? char)
(char-in-set? char char-set:whitespace))
(define-deferred char-set:whitespace