(char-set-union
;; Not char-set:not-graphic
(char-set-invert
- (char-set-intersection char-set:graphic (ascii-range->char-set 0 #x7f)))
+ (char-set-intersection char-set:graphic (ucs-range->char-set 0 #x7f)))
(char-set #\\ #\" #\? (integer->char #xA0))))
(define char-set:C-named-chars
#t))))
(define c:decimal-chars
- (ascii-range->char-set (char->integer #\0)
- (+ (char->integer #\9) 1)))
+ (ucs-range->char-set (char->integer #\0)
+ (+ (char->integer #\9) 1)))
(define (c:type type)
(or (and (symbol? type)
#t))))
(define c:identifier-chars
- (char-set-union (ascii-range->char-set (char->integer #\A)
- (+ (char->integer #\Z) 1))
- (ascii-range->char-set (char->integer #\a)
- (+ (char->integer #\z) 1))
- (ascii-range->char-set (char->integer #\0)
- (+ (char->integer #\9) 1))
+ (char-set-union (ucs-range->char-set (char->integer #\A)
+ (+ (char->integer #\Z) 1))
+ (ucs-range->char-set (char->integer #\a)
+ (+ (char->integer #\z) 1))
+ (ucs-range->char-set (char->integer #\0)
+ (+ (char->integer #\9) 1))
(char-set #\_)))
(define (c:%parenthesized? e)
(define directory-listing-before-filename-regexp
(let* ((l
(char-set-union char-set:alphabetic
- (ascii-range->char-set #x80 #x100)))
+ (ucs-range->char-set #x80 #x100)))
(l? (rexp-optional l))
(l-or-quote (char-set-union l (char-set #\')))
(digit (string->char-set "0123456789"))
(char-set-union (string->char-set "\"/:<>\\|")
(string->char-set "*?"))))
(set! char-set:valid-hpfs
- (char-set-difference (ascii-range->char-set #x21 #x7F)
+ (char-set-difference (ucs-range->char-set #x21 #x7F)
reserved-chars))
(set! char-set:valid-windows-long
- (char-set-difference (ascii-range->char-set #x20 #x100)
+ (char-set-difference (ucs-range->char-set #x20 #x100)
reserved-chars)))
(define char-set:valid-fat
;; The extra range allows international keyboards to insert 8-bit characters
(define char-set:self-insert-keys
- (char-set-union char-set:printing (ascii-range->char-set 128 255)))
+ (char-set-union char-set:printing (ucs-range->char-set 128 255)))
(define-key 'fundamental char-set:self-insert-keys 'self-insert-command)
(define-key 'fundamental char-set:numeric 'auto-digit-argument)
(define parse-word
(let ((delimiters
(char-set-invert
- (char-set-union (ascii-range->char-set #o010 #o016)
- (ascii-range->char-set #o040 #o041)))))
+ (char-set-union (ucs-range->char-set #o010 #o016)
+ (ucs-range->char-set #o040 #o041)))))
(lambda (port)
(input-port/discard-chars port delimiters)
(let ((char (input-port/peek-char port)))
(let ((delimiters
(char-set-invert
(char-set-difference
- (char-set-union (ascii-range->char-set #o041 #o177)
- (ascii-range->char-set #o240 #o400))
+ (char-set-union (ucs-range->char-set #o041 #o177)
+ (ucs-range->char-set #o240 #o400))
(char-set #\$ #\, #\. #\: #\; #\@)))))
(lambda (port)
(make-rcs-id (input-port/read-string port delimiters)))))
(declare (usual-integrations))
\f
(define rfc822:char-set:header-constituents
- (char-set-difference (ascii-range->char-set 33 127)
+ (char-set-difference (ucs-range->char-set 33 127)
(char-set #\:)))
(define rfc822:char-set:not-header-constituents
(define (rfc822:string-tokenizer special-chars keep-whitespace?)
(let ((atom-chars
- (char-set-difference (ascii-range->char-set #x21 #x7F)
+ (char-set-difference (ucs-range->char-set #x21 #x7F)
special-chars)))
(define (special-char? char) (char-in-set? char special-chars))
(define (atom-char? char) (char-in-set? char atom-chars))
(loop ls)))))))
(define char-set:printable-7bit
- (char-set-union (ascii-range->char-set #x20 #x7F)
+ (char-set-union (ucs-range->char-set #x20 #x7F)
(char-set #\tab #\page #\linefeed)))
(define char-set:non-printable-7bit
(define (modify-syntax-entries! syntax-table cl ch string)
(set-char-syntax! syntax-table
- (ascii-range->char-set (char->integer cl)
- (char->integer ch))
+ (ucs-range->char-set (char->integer cl)
+ (char->integer ch))
string))
(define (group-syntax-table-entries group)
(declare (usual-integrations))
\f
(define imap:char-set:char
- (ascii-range->char-set #x01 #x80))
+ (ucs-range->char-set #x01 #x80))
(define imap:char-set:ctl
- (char-set-union (ascii-range->char-set #x00 #x20)
+ (char-set-union (ucs-range->char-set #x00 #x20)
(char-set #\rubout)))
(define imap:char-set:list-wildcards
(char-set-difference char-set:http-text (char-set #\")))
(define-deferred char-set:alpha
- (char-set-union (ascii-range->char-set #x41 #x5B)
- (ascii-range->char-set #x61 #x7B)))
+ (char-set-union (ucs-range->char-set #x41 #x5B)
+ (ucs-range->char-set #x61 #x7B)))
\f
(define-tokenizer-state tokenize
(eof done)
(define char-set:qp-encoded
(char-set-invert
- (char-set-union (char-set-difference (ascii-range->char-set #x21 #x7F)
+ (char-set-union (char-set-difference (ucs-range->char-set #x21 #x7F)
(char-set #\=))
(char-set #\space #\tab))))
top-level-mime-types))
(set! unusual-interned-mime-types (make-equal-hash-table))
(set! char-set:mime-token
- (char-set-difference (ascii-range->char-set #x21 #x7F)
+ (char-set-difference (ucs-range->char-set #x21 #x7F)
(string->char-set "()<>@,;:\\\"/[]?=")))
(set! local-type-map (make-string-hash-table))
(associate-pathname-type-with-mime-type "scm"
(define match-bnode-name
(let* ((name-head
- (char-set-union (ascii-range->char-set #x41 #x5B)
- (ascii-range->char-set #x61 #x7B)))
+ (char-set-union (ucs-range->char-set #x41 #x5B)
+ (ucs-range->char-set #x61 #x7B)))
(name-tail
(char-set-union name-head
- (ascii-range->char-set #x30 #x3A))))
+ (ucs-range->char-set #x30 #x3A))))
(*matcher
(seq (char-set name-head)
(* (char-set name-tail))))))
(char-set #\space #\tab))
(define char-set:character
- (ascii-range->char-set #x20 #x7F))
+ (ucs-range->char-set #x20 #x7F))
(define char-set:hex
- (char-set-union (ascii-range->char-set #x30 #x3A)
- (ascii-range->char-set #x41 #x47)))
+ (char-set-union (ucs-range->char-set #x30 #x3A)
+ (ucs-range->char-set #x41 #x47)))
(define char-set:unescaped
(char-set-difference char-set:character (char-set #\" #\\)))
(unhash-object (vector-ref v 0)))))
(define parse-bnode
- (let ((digits (ascii-range->char-set #x30 #x3A)))
+ (let ((digits (ucs-range->char-set #x30 #x3A)))
(*parser
(seq (noise "_:B")
(map (lambda (s) (string->number s 10 #t))
(*match-symbol match-language object)))
(define match-language
- (let* ((language-head (ascii-range->char-set #x61 #x7B))
+ (let* ((language-head (ucs-range->char-set #x61 #x7B))
(language-tail
(char-set-union language-head
- (ascii-range->char-set #x30 #x3A))))
+ (ucs-range->char-set #x30 #x3A))))
(*matcher
(seq (+ (char-set language-head))
(* (seq #\- (+ (char-set language-tail))))))))
(string-every (char-set-predicate char-set:method-name) string)))
(define char-set:method-name
- (char-set-union (ascii-range->char-set (char->integer #\a)
- (fix:+ (char->integer #\z) 1))
- (ascii-range->char-set (char->integer #\A)
- (fix:+ (char->integer #\Z) 1))
- (ascii-range->char-set (char->integer #\0)
- (fix:+ (char->integer #\9) 1))
+ (char-set-union (ucs-range->char-set (char->integer #\a)
+ (fix:+ (char->integer #\z) 1))
+ (ucs-range->char-set (char->integer #\A)
+ (fix:+ (char->integer #\Z) 1))
+ (ucs-range->char-set (char->integer #\0)
+ (fix:+ (char->integer #\9) 1))
(char-set #\_ #\. #\: #\/)))
(define (xml-rpc:parse-response document)