mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
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.
21 lines
746 B
Scheme
21 lines
746 B
Scheme
;; Character sets for Unicode boundaries, TR29.
|
|
|
|
(define-library (chibi char-set boundary)
|
|
(cond-expand
|
|
(chibi
|
|
(import (chibi) (chibi char-set)))
|
|
(else
|
|
(import (scheme base) (srfi 14))
|
|
(begin (define (immutable-char-set cs) cs))))
|
|
(export char-set:regional-indicator
|
|
char-set:extend-or-spacing-mark
|
|
char-set:hangul-l
|
|
char-set:hangul-v
|
|
char-set:hangul-t
|
|
char-set:hangul-lv
|
|
char-set:hangul-lvt)
|
|
;; generated with:
|
|
;; tools/extract-unicode-props.scm --derived GraphemeBreakProperty.txt
|
|
;; Control extend-or-spacing-mark=Extend,SpacingMark Regional_Indicator
|
|
;; hangul-l=:L hangul-v=:V hangul-t=:T hangul-lv=:LV hangul-lvt=:LVT
|
|
(include "boundary.scm"))
|