diasbruno / utf8-input-stream

A UTF-8 string input stream over a binary stream for Common Lisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

utf8-input-stream

A UTF-8 string input stream over a binary stream for Common Lisp

Example

(with-open-file (f #P"data.txt.zst" :direction :input :element-type '(unsigned-byte 8))
    (with-decompressing-stream (zstd-s f)
       (let ((s (make-utf8-input-stream zstd-s)))
	(print (read-line s))
	(print (read-line s)))))

About

A UTF-8 string input stream over a binary stream for Common Lisp

License:MIT License


Languages

Language:Common Lisp 100.0%