chibi-scheme/lib/scheme/char.sld
Alex Shinn 8b5eb68238 File descriptors maintain a reference count of ports open on them
They can be close()d explicitly with close-file-descriptor, and
will close() on gc, but only explicitly closing the last port on
them will close the fileno.  Notably needed for network sockets
where we open separate input and output ports on the same socket.
2014-02-20 22:32:50 +09:00

28 lines
1 KiB
Scheme

(define-library (scheme char)
(import (scheme base))
(cond-expand
(full-unicode
(import (scheme write)
(chibi char-set full)
(chibi char-set base)
(chibi iset base))
(include "char/full.scm")
(include "char/special-casing.scm")
(include "char/case-offsets.scm"))
(else
(include "char/ascii.scm")
(import
(only (chibi)
string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>?
char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>?
char-alphabetic? char-lower-case? char-numeric?
char-upper-case? char-whitespace? digit-value
char-upcase char-downcase))))
(include "digit-value.scm")
(export
char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>?
char-downcase char-foldcase char-lower-case? char-numeric?
char-upcase char-upper-case? char-whitespace? digit-value
string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>?
string-downcase string-foldcase string-upcase))