This is the flexi-streams Reference Manual, version 1.0.19, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 05:11:30 2024 GMT+0.
flexi-streams/flexi-streams.asd
flexi-streams/packages.lisp
flexi-streams/mapping.lisp
flexi-streams/ascii.lisp
flexi-streams/koi8-r.lisp
flexi-streams/mac.lisp
flexi-streams/iso-8859.lisp
flexi-streams/enc-cn-tbl.lisp
flexi-streams/code-pages.lisp
flexi-streams/specials.lisp
flexi-streams/util.lisp
flexi-streams/conditions.lisp
flexi-streams/external-format.lisp
flexi-streams/length.lisp
flexi-streams/encode.lisp
flexi-streams/decode.lisp
flexi-streams/in-memory.lisp
flexi-streams/stream.lisp
flexi-streams/output.lisp
flexi-streams/input.lisp
flexi-streams/io.lisp
flexi-streams/strings.lisp
The main system appears first, followed by any subsystem dependency.
flexi-streams
Flexible bivalent streams for Common Lisp
BSD-2-Clause
1.0.19
trivial-gray-streams
(system).
packages.lisp
(file).
mapping.lisp
(file).
ascii.lisp
(file).
koi8-r.lisp
(file).
mac.lisp
(file).
iso-8859.lisp
(file).
enc-cn-tbl.lisp
(file).
code-pages.lisp
(file).
specials.lisp
(file).
util.lisp
(file).
conditions.lisp
(file).
external-format.lisp
(file).
length.lisp
(file).
encode.lisp
(file).
decode.lisp
(file).
in-memory.lisp
(file).
stream.lisp
(file).
output.lisp
(file).
input.lisp
(file).
io.lisp
(file).
strings.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
flexi-streams/flexi-streams.asd
flexi-streams/packages.lisp
flexi-streams/mapping.lisp
flexi-streams/ascii.lisp
flexi-streams/koi8-r.lisp
flexi-streams/mac.lisp
flexi-streams/iso-8859.lisp
flexi-streams/enc-cn-tbl.lisp
flexi-streams/code-pages.lisp
flexi-streams/specials.lisp
flexi-streams/util.lisp
flexi-streams/conditions.lisp
flexi-streams/external-format.lisp
flexi-streams/length.lisp
flexi-streams/encode.lisp
flexi-streams/decode.lisp
flexi-streams/in-memory.lisp
flexi-streams/stream.lisp
flexi-streams/output.lisp
flexi-streams/input.lisp
flexi-streams/io.lisp
flexi-streams/strings.lisp
flexi-streams/flexi-streams.asd
flexi-streams
(system).
flexi-streams/mapping.lisp
packages.lisp
(file).
flexi-streams
(system).
octet
(type).
char*
(type).
char-code-integer
(type).
code-point
(type).
defconstant
(macro).
invert-table
(function).
make-decoding-table
(function).
string*
(type).
flexi-streams/ascii.lisp
mapping.lisp
(file).
flexi-streams
(system).
+ascii-table+
(constant).
flexi-streams/koi8-r.lisp
ascii.lisp
(file).
flexi-streams
(system).
+koi8-r-table+
(constant).
flexi-streams/mac.lisp
koi8-r.lisp
(file).
flexi-streams
(system).
+mac-roman-table+
(constant).
flexi-streams/iso-8859.lisp
mac.lisp
(file).
flexi-streams
(system).
+iso-8859-tables+
(constant).
flexi-streams/enc-cn-tbl.lisp
iso-8859.lisp
(file).
flexi-streams
(system).
*gbk-to-ucs-special-table*
(special variable).
*gbk-to-ucs-table*
(special variable).
*ucs-to-gbk-special-table*
(special variable).
*ucs-to-gbk-table*
(special variable).
define-multibyte-mapper
(macro).
make-multibyte-mapper
(function).
flexi-streams/code-pages.lisp
enc-cn-tbl.lisp
(file).
flexi-streams
(system).
+code-page-tables+
(constant).
flexi-streams/specials.lisp
code-pages.lisp
(file).
flexi-streams
(system).
*default-eol-style*
(special variable).
*default-little-endian*
(special variable).
*substitution-char*
(special variable).
*current-unreader*
(special variable).
*fixnum-optimize-settings*
(special variable).
*hyperdoc-base-uri*
(special variable).
*standard-optimize-settings*
(special variable).
+ascii-hash+
(constant).
+buffer-size+
(constant).
+code-page-hashes+
(constant).
+cr+
(constant).
+iso-8859-hashes+
(constant).
+koi8-r-hash+
(constant).
+lf+
(constant).
+mac-roman-hash+
(constant).
+name-map+
(special variable).
+shortcut-map+
(special variable).
hyperdoc-lookup
(function).
flexi-streams/util.lisp
specials.lisp
(file).
flexi-streams
(system).
ascii-name-p
(function).
ash*
(macro).
code-page-name-p
(function).
get-multibyte-mapper
(function).
iso-8859-name-p
(function).
known-code-page-id-p
(function).
koi8-r-name-p
(function).
logand*
(macro).
logior*
(macro).
mac-roman-name-p
(function).
make-octet-buffer
(function).
maybe-rewind
(function).
normalize-external-format-name
(function).
sans
(function).
type-equal
(function).
when-let
(macro).
with-rebinding
(macro).
with-unique-names
(macro).
flexi-streams/conditions.lisp
util.lisp
(file).
flexi-streams
(system).
external-format-condition
(condition).
external-format-condition-external-format
(reader method).
external-format-encoding-error
(condition).
external-format-error
(condition).
flexi-stream-element-type-error
(condition).
flexi-stream-element-type-error-element-type
(reader method).
flexi-stream-error
(condition).
flexi-stream-out-of-sync-error
(condition).
in-memory-stream-closed-error
(condition).
in-memory-stream-error
(condition).
in-memory-stream-position-spec-error
(condition).
in-memory-stream-position-spec-error-position-spec
(reader method).
flexi-stream-simple-error
(condition).
in-memory-stream-simple-error
(condition).
signal-encoding-error
(function).
flexi-streams/external-format.lisp
conditions.lisp
(file).
flexi-streams
(system).
external-format-eol-style
(reader method).
external-format-equal
(function).
external-format-id
(reader method).
external-format-little-endian
(reader method).
external-format-name
(reader method).
initialize-instance
(method).
make-external-format
(function).
make-load-form
(method).
print-object
(method).
external-format
(class).
external-format-class-name
(function).
external-format-decoding-table
(reader method).
(setf external-format-decoding-table)
(writer method).
external-format-encoding-hash
(reader method).
(setf external-format-encoding-hash)
(writer method).
flexi-8-bit-format
(class).
flexi-ascii-format
(class).
flexi-cr-8-bit-format
(class).
flexi-cr-ascii-format
(class).
flexi-cr-gbk-format
(class).
flexi-cr-latin-1-format
(class).
flexi-cr-mixin
(class).
flexi-cr-utf-16-be-format
(class).
flexi-cr-utf-16-le-format
(class).
flexi-cr-utf-32-be-format
(class).
flexi-cr-utf-32-le-format
(class).
flexi-cr-utf-8-format
(class).
flexi-crlf-8-bit-format
(class).
flexi-crlf-ascii-format
(class).
flexi-crlf-gbk-format
(class).
flexi-crlf-latin-1-format
(class).
flexi-crlf-mixin
(class).
flexi-crlf-utf-16-be-format
(class).
flexi-crlf-utf-16-le-format
(class).
flexi-crlf-utf-32-be-format
(class).
flexi-crlf-utf-32-le-format
(class).
flexi-crlf-utf-8-format
(class).
flexi-gbk-format
(class).
flexi-latin-1-format
(class).
flexi-utf-16-be-format
(class).
flexi-utf-16-format
(class).
flexi-utf-16-le-format
(class).
flexi-utf-32-be-format
(class).
flexi-utf-32-format
(class).
flexi-utf-32-le-format
(class).
flexi-utf-8-format
(class).
make-external-format%
(function).
maybe-convert-external-format
(function).
normalize-external-format
(function).
flexi-streams/length.lisp
external-format.lisp
(file).
flexi-streams
(system).
character-length
(generic function).
check-end
(generic function).
compute-number-of-chars
(generic function).
compute-number-of-octets
(generic function).
encoding-factor
(generic function).
flexi-streams/encode.lisp
length.lisp
(file).
flexi-streams
(system).
char-to-octets
(generic function).
define-char-encoders
(macro).
define-sequence-writers
(macro).
string-to-octets*
(generic function).
write-sequence*
(generic function).
flexi-streams/decode.lisp
encode.lisp
(file).
flexi-streams
(system).
define-char-decoders
(macro).
define-sequence-readers
(macro).
octets-to-char-code
(generic function).
octets-to-string*
(generic function).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
read-sequence*
(method).
recover-from-encoding-error
(function).
flexi-streams/in-memory.lisp
decode.lisp
(file).
flexi-streams
(system).
get-output-stream-sequence
(method).
in-memory-input-stream
(class).
in-memory-output-stream
(class).
in-memory-stream
(class).
list-stream
(class).
make-in-memory-input-stream
(method).
make-in-memory-input-stream
(method).
make-in-memory-output-stream
(function).
output-stream-sequence-length
(method).
peek-byte
(generic function).
stream-element-type
(method).
(setf stream-file-position)
(method).
stream-file-position
(method).
(setf stream-file-position)
(method).
stream-file-position
(method).
stream-listen
(method).
stream-listen
(method).
stream-read-byte
(method).
stream-read-byte
(method).
stream-read-sequence
(method).
stream-read-sequence
(method).
stream-write-byte
(method).
stream-write-sequence
(method).
vector-stream
(class).
with-input-from-sequence
(macro).
with-output-to-sequence
(macro).
check-if-open
(method).
in-memory-stream-transformer
(reader method).
(setf in-memory-stream-transformer)
(writer method).
list-input-stream
(class).
list-stream-list
(reader method).
(setf list-stream-list)
(writer method).
make-output-vector
(function).
transform-octet
(method).
vector-input-stream
(class).
vector-output-stream
(class).
vector-stream-end
(reader method).
(setf vector-stream-end)
(writer method).
vector-stream-index
(reader method).
(setf vector-stream-index)
(writer method).
vector-stream-vector
(reader method).
(setf vector-stream-vector)
(writer method).
flexi-streams/stream.lisp
in-memory.lisp
(file).
flexi-streams
(system).
close
(method).
flexi-input-stream
(class).
flexi-io-stream
(class).
flexi-output-stream
(class).
flexi-stream
(class).
flexi-stream-bound
(reader method).
(setf flexi-stream-bound)
(writer method).
flexi-stream-column
(reader method).
(setf flexi-stream-column)
(writer method).
flexi-stream-element-type
(reader method).
(setf flexi-stream-element-type)
(writer method).
(setf flexi-stream-element-type)
(method).
flexi-stream-external-format
(reader method).
(setf flexi-stream-external-format)
(writer method).
(setf flexi-stream-external-format)
(method).
flexi-stream-position
(reader method).
(setf flexi-stream-position)
(writer method).
flexi-stream-stream
(reader method).
initialize-instance
(method).
make-flexi-stream
(function).
open-stream-p
(method).
stream-element-type
(method).
(setf stream-file-position)
(method).
stream-file-position
(method).
flexi-stream-last-char-code
(reader method).
(setf flexi-stream-last-char-code)
(writer method).
flexi-stream-last-octet
(reader method).
(setf flexi-stream-last-octet)
(writer method).
flexi-stream-octet-stack
(reader method).
(setf flexi-stream-octet-stack)
(writer method).
flexi-streams/output.lisp
stream.lisp
(file).
flexi-streams
(system).
stream-clear-output
(method).
stream-finish-output
(method).
stream-force-output
(method).
stream-line-column
(method).
stream-write-byte
(method).
stream-write-char
(method).
stream-write-char
(method).
stream-write-sequence
(method).
stream-write-string
(method).
write-byte*
(generic function).
flexi-streams/input.lisp
output.lisp
(file).
flexi-streams
(system).
peek-byte
(method).
stream-clear-input
(method).
stream-listen
(method).
stream-read-byte
(method).
stream-read-char
(method).
stream-read-char-no-hang
(method).
stream-read-sequence
(method).
stream-unread-char
(method).
unread-byte
(method).
read-byte*
(method).
unread-char%
(function).
flexi-streams/io.lisp
input.lisp
(file).
flexi-streams
(system).
stream-clear-input
(method).
stream-clear-output
(method).
stream-read-byte
(method).
stream-read-char
(method).
stream-read-sequence
(method).
stream-unread-char
(method).
stream-write-byte
(method).
stream-write-char
(method).
stream-write-sequence
(method).
unread-byte
(method).
reset-input-state
(method).
reset-output-state
(method).
write-byte*
(method).
flexi-streams/strings.lisp
io.lisp
(file).
flexi-streams
(system).
char-length
(function).
octet-length
(function).
octets-to-string
(function).
string-to-octets
(function).
Packages are listed by definition order.
flexi-streams
flex
common-lisp
.
trivial-gray-streams
.
*default-eol-style*
(special variable).
*default-little-endian*
(special variable).
*substitution-char*
(special variable).
char-length
(function).
external-format-condition
(condition).
external-format-condition-external-format
(generic reader).
external-format-encoding-error
(condition).
external-format-eol-style
(generic reader).
external-format-equal
(function).
external-format-error
(condition).
external-format-id
(generic reader).
external-format-little-endian
(generic reader).
external-format-name
(generic reader).
flexi-input-stream
(class).
flexi-io-stream
(class).
flexi-output-stream
(class).
flexi-stream
(class).
flexi-stream-bound
(generic reader).
(setf flexi-stream-bound)
(generic writer).
flexi-stream-column
(generic reader).
(setf flexi-stream-column)
(generic writer).
flexi-stream-element-type
(generic reader).
(setf flexi-stream-element-type)
(generic function).
flexi-stream-element-type-error
(condition).
flexi-stream-element-type-error-element-type
(generic reader).
flexi-stream-error
(condition).
flexi-stream-external-format
(generic reader).
(setf flexi-stream-external-format)
(generic function).
flexi-stream-out-of-sync-error
(condition).
flexi-stream-position
(generic reader).
(setf flexi-stream-position)
(generic writer).
flexi-stream-stream
(generic reader).
get-output-stream-sequence
(generic function).
in-memory-input-stream
(class).
in-memory-output-stream
(class).
in-memory-stream
(class).
in-memory-stream-closed-error
(condition).
in-memory-stream-error
(condition).
in-memory-stream-position-spec-error
(condition).
in-memory-stream-position-spec-error-position-spec
(generic reader).
list-stream
(class).
make-external-format
(function).
make-flexi-stream
(function).
make-in-memory-input-stream
(generic function).
make-in-memory-output-stream
(function).
octet
(type).
octet-length
(function).
octets-to-string
(function).
output-stream-sequence-length
(generic function).
peek-byte
(generic function).
string-to-octets
(function).
unread-byte
(generic function).
vector-stream
(class).
with-input-from-sequence
(macro).
with-output-to-sequence
(macro).
*current-unreader*
(special variable).
*fixnum-optimize-settings*
(special variable).
*gbk-to-ucs-special-table*
(special variable).
*gbk-to-ucs-table*
(special variable).
*hyperdoc-base-uri*
(special variable).
*standard-optimize-settings*
(special variable).
*ucs-to-gbk-special-table*
(special variable).
*ucs-to-gbk-table*
(special variable).
+ascii-hash+
(constant).
+ascii-table+
(constant).
+buffer-size+
(constant).
+code-page-hashes+
(constant).
+code-page-tables+
(constant).
+cr+
(constant).
+iso-8859-hashes+
(constant).
+iso-8859-tables+
(constant).
+koi8-r-hash+
(constant).
+koi8-r-table+
(constant).
+lf+
(constant).
+mac-roman-hash+
(constant).
+mac-roman-table+
(constant).
+name-map+
(special variable).
+shortcut-map+
(special variable).
ascii-name-p
(function).
ash*
(macro).
char*
(type).
char-code-integer
(type).
char-to-octets
(generic function).
character-length
(generic function).
check-end
(generic function).
check-if-open
(generic function).
code-page-name-p
(function).
code-point
(type).
compute-number-of-chars
(generic function).
compute-number-of-octets
(generic function).
defconstant
(macro).
define-char-decoders
(macro).
define-char-encoders
(macro).
define-multibyte-mapper
(macro).
define-sequence-readers
(macro).
define-sequence-writers
(macro).
encoding-factor
(generic function).
external-format
(class).
external-format-class-name
(function).
external-format-decoding-table
(generic reader).
(setf external-format-decoding-table)
(generic writer).
external-format-encoding-hash
(generic reader).
(setf external-format-encoding-hash)
(generic writer).
flexi-8-bit-format
(class).
flexi-ascii-format
(class).
flexi-cr-8-bit-format
(class).
flexi-cr-ascii-format
(class).
flexi-cr-gbk-format
(class).
flexi-cr-latin-1-format
(class).
flexi-cr-mixin
(class).
flexi-cr-utf-16-be-format
(class).
flexi-cr-utf-16-le-format
(class).
flexi-cr-utf-32-be-format
(class).
flexi-cr-utf-32-le-format
(class).
flexi-cr-utf-8-format
(class).
flexi-crlf-8-bit-format
(class).
flexi-crlf-ascii-format
(class).
flexi-crlf-gbk-format
(class).
flexi-crlf-latin-1-format
(class).
flexi-crlf-mixin
(class).
flexi-crlf-utf-16-be-format
(class).
flexi-crlf-utf-16-le-format
(class).
flexi-crlf-utf-32-be-format
(class).
flexi-crlf-utf-32-le-format
(class).
flexi-crlf-utf-8-format
(class).
flexi-gbk-format
(class).
flexi-latin-1-format
(class).
flexi-stream-last-char-code
(generic reader).
(setf flexi-stream-last-char-code)
(generic writer).
flexi-stream-last-octet
(generic reader).
(setf flexi-stream-last-octet)
(generic writer).
flexi-stream-octet-stack
(generic reader).
(setf flexi-stream-octet-stack)
(generic writer).
flexi-stream-simple-error
(condition).
flexi-utf-16-be-format
(class).
flexi-utf-16-format
(class).
flexi-utf-16-le-format
(class).
flexi-utf-32-be-format
(class).
flexi-utf-32-format
(class).
flexi-utf-32-le-format
(class).
flexi-utf-8-format
(class).
get-multibyte-mapper
(function).
hyperdoc-lookup
(function).
in-memory-stream-simple-error
(condition).
in-memory-stream-transformer
(generic reader).
(setf in-memory-stream-transformer)
(generic writer).
invert-table
(function).
iso-8859-name-p
(function).
known-code-page-id-p
(function).
koi8-r-name-p
(function).
list-input-stream
(class).
list-stream-list
(generic reader).
(setf list-stream-list)
(generic writer).
logand*
(macro).
logior*
(macro).
mac-roman-name-p
(function).
make-decoding-table
(function).
make-external-format%
(function).
make-multibyte-mapper
(function).
make-octet-buffer
(function).
make-output-vector
(function).
maybe-convert-external-format
(function).
maybe-rewind
(function).
normalize-external-format
(function).
normalize-external-format-name
(function).
octets-to-char-code
(generic function).
octets-to-string*
(generic function).
read-byte*
(generic function).
read-sequence*
(generic function).
recover-from-encoding-error
(function).
reset-input-state
(generic function).
reset-output-state
(generic function).
sans
(function).
signal-encoding-error
(function).
string*
(type).
string-to-octets*
(generic function).
transform-octet
(generic function).
type-equal
(function).
unread-char%
(function).
vector-input-stream
(class).
vector-output-stream
(class).
vector-stream-end
(generic reader).
(setf vector-stream-end)
(generic writer).
vector-stream-index
(generic reader).
(setf vector-stream-index)
(generic writer).
vector-stream-vector
(generic reader).
(setf vector-stream-vector)
(generic writer).
when-let
(macro).
with-rebinding
(macro).
with-unique-names
(macro).
write-byte*
(generic function).
write-sequence*
(generic function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
The end-of-line style used by external formats if none is explicitly given. Depends on the OS the code is compiled on.
Whether external formats are little-endian by default (i.e. unless explicitly specified). Depends on the platform the code is compiled on.
If this value is not NIL, it should be a character which is used (as if by a USE-VALUE restart) whenever during reading an error of type FLEXI-STREAM-ENCODING-ERROR would have been signalled otherwise.
Creates an IN-MEMORY input stream from SEQUENCE using the parameters START and END, binds VAR to this stream and then executes the code in BODY. A function TRANSFORMER may optionally be specified to transform the returned octets. The stream is automatically closed on exit from WITH-INPUT-FROM-SEQUENCE, no matter whether the exit is normal or abnormal. The return value of this macro is the return value of BODY.
Creates an IN-MEMORY output stream, binds VAR to this stream and then executes the code in BODY. The stream stores data of type ELEMENT-TYPE (a subtype of OCTET) which is (optionally) transformed by the function TRANSFORMER prior to storage. The stream is automatically closed on exit from WITH-OUTPUT-TO-SEQUENCE, no matter whether the exit is normal or abnormal. The return value of this macro is a vector (or a list if AS-LIST is true) containing the octets that were sent to the stream within BODY.
Kind of the inverse of OCTET-LENGTH. Returns the length of the
subsequence (of octets) of SEQUENCE from START to END in characters
if decoded using the external format EXTERNAL-FORMAT. Note that this
function doesn’t check for the validity of the data in SEQUENCE.
This function is optimized for the case of SEQUENCE being a vector. Don’t use lists if you’re in a hurry.
Checks whether two EXTERNAL-FORMAT objects denote the same encoding.
Creates and returns an external format object as specified. NAME is a keyword like :LATIN1 or :UTF-8, LITTLE-ENDIAN specifies the ‘endianess’ of the external format and is ignored for 8-bit encodings, EOL-STYLE is one of the keywords :CR, :LF, or :CRLF which denote the end-of-line character (sequence), ID is the ID of a Windows code page (and ignored for other encodings).
Creates and returns a new flexi stream. STREAM must be an open binary or ‘bivalent’ stream, i.e. it must be capable of reading/writing octets with READ-SEQUENCE and/or WRITE-SEQUENCE. The resulting flexi stream is an input stream if and only if STREAM is an input stream. Likewise, it’s an output stream if and only if STREAM is an output stream. The default for ELEMENT-TYPE is LW:SIMPLE-CHAR on LispWorks and CHARACTER on other Lisps. EXTERNAL-FORMAT must be an EXTERNAL-FORMAT object or a symbol or a list denoting such an object. COLUMN is the initial column of the stream which is either a non-negative integer or NIL. The COLUMN argument must only be used for output streams. POSITION (only used for input streams) should be an integer and it denotes the position the stream is in - it will be increased by one for each octet read. BOUND (only used for input streams) should be NIL or an integer. If BOUND is not NIL and POSITION has gone beyond BOUND, then the stream will behave as if no more input is available.
Returns a binary output stream which accepts objects of type ELEMENT-TYPE (a subtype of OCTET) and makes available a sequence that contains the octes that were actually output. The octets stored will each be transformed by the optional TRANSFORMER function.
Returns the length of the substring of STRING from START to END in
octets if encoded using the external format EXTERNAL-FORMAT.
In spite of the name, STRING can be any sequence of characters, but the function is optimized for strings.
Converts the Lisp sequence SEQUENCE of octets from START to END to a string using the external format designated by EXTERNAL-FORMAT.
This function is optimized for the case of SEQUENCE being a vector. Don’t use lists if you’re in a hurry.
Converts the Lisp string STRING from START to END to an array of
octets corresponding to the external format designated by
EXTERNAL-FORMAT.
In spite of the name, STRING can be any sequence of characters, but the function is optimized for strings.
external-format-condition
)) ¶external-format
)) ¶The character(s) to or from which
a #Newline will be translated - one of the keywords :CR, :LF,
or :CRLF.
external-format
)) ¶If the external format denotes a Windows
code page this ID specifies which one to use. Otherwise the
value is ignored (and usually NIL).
id
.
external-format
)) ¶Whether multi-octet values are
read and written with the least significant octet first. For
8-bit encodings like :ISO-8859-1 this value is ignored.
external-format
)) ¶The name of the external format - a keyword.
name
.
flexi-input-stream
)) ¶flexi-input-stream
)) ¶When this is not NIL, it must be an integer
and the stream will behave as if no more data is available as soon as
POSITION is greater or equal than this value.
flexi-output-stream
)) ¶flexi-output-stream
)) ¶The current output column. A non-negative integer or NIL.
flexi-stream
)) ¶The element type of this stream.
flexi-stream
)) ¶Checks whether the new value makes sense before it is set.
flexi-stream
)) ¶The element type of this stream.
flexi-stream-element-type-error
)) ¶flexi-stream
)) ¶The encoding currently used
by this stream. Can be changed on the fly.
flexi-stream
)) ¶Converts the new value to an EXTERNAL-FORMAT object if necessary.
flexi-stream
)) ¶The encoding currently used
by this stream. Can be changed on the fly.
flexi-input-stream
)) ¶flexi-input-stream
)) ¶The position within the stream where each octet read counts as one.
flexi-stream
)) ¶The actual stream that’s used for
input and/or output. It must be capable of reading/writing
octets with READ-SEQUENCE and/or WRITE-SEQUENCE.
in-memory-output-stream
) &key as-list) ¶Returns a vector containing, in order, all the octets that have been output to the IN-MEMORY stream STREAM. This operation clears any octets on STREAM, so the vector contains only those octets which have been output since the last call to GET-OUTPUT-STREAM-SEQUENCE or since the creation of the stream, whichever occurred most recently. If AS-LIST is true the return value is coerced to a list.
in-memory-stream-position-spec-error
)) ¶list
) &key start end transformer) ¶Returns a binary input stream which will supply, in order, the octets in the subsequence of LIST bounded by START and END. Each octet returned will be transformed in turn by the optional TRANSFORMER function.
vector
) &key start end transformer) ¶Returns a binary input stream which will supply, in order, the octets in the subsequence of VECTOR bounded by START and END. Each octet returned will be transformed in turn by the optional TRANSFORMER function.
in-memory-output-stream
)) ¶Returns the current length of the underlying vector of the IN-MEMORY output stream STREAM.
PEEK-BYTE is like PEEK-CHAR, i.e. it returns a byte from the stream without actually removing it. If PEEK-TYPE is NIL the next byte is returned, if PEEK-TYPE is T, the next byte which is not 0 is returned, if PEEK-TYPE is an byte, the next byte which equals PEEK-TYPE is returned. EOF-ERROR-P and EOF-VALUE are interpreted as usual.
flexi-input-stream
) &optional peek-type eof-error-p eof-value) ¶Returns an octet from FLEXI-INPUT-STREAM without actually removing it.
list-input-stream
) &optional peek-type eof-error-p eof-value) ¶Returns a byte from VECTOR-INPUT-STREAM without actually removing it.
vector-input-stream
) &optional peek-type eof-error-p eof-value) ¶Returns a byte from VECTOR-INPUT-STREAM without actually removing it.
flexi-io-stream
)) ¶flexi-input-stream
)) ¶Similar to UNREAD-CHAR in that it ‘unreads’ the last octet from STREAM. Note that you can only call UNREAD-BYTE after a corresponding READ-BYTE.
flexi-stream
) &key abort) ¶Closes the flexi stream by closing the underlying ‘real’ stream.
flexi-stream
) &rest initargs) ¶Makes sure the EXTERNAL-FORMAT and ELEMENT-TYPE slots contain reasonable values.
flexi-8-bit-format
) &rest initargs) ¶Sets the fixed encoding/decoding tables for this particular external format.
external-format
) &optional environment) ¶Defines a way to reconstruct external formats. Needed for OpenMCL.
flexi-stream
)) ¶A flexi stream is open if its underlying stream is open.
external-format
) stream) ¶How an EXTERNAL-FORMAT object is rendered. Uses NORMALIZE-EXTERNAL-FORMAT.
flexi-io-stream
)) ¶sb-gray
.
flexi-input-stream
)) ¶Calls the corresponding method for the underlying input stream and also clears the value of the OCTET-STACK slot.
sb-gray
.
flexi-io-stream
)) ¶sb-gray
.
flexi-output-stream
)) ¶Simply calls the corresponding method for the underlying output stream.
sb-gray
.
in-memory-stream
)) ¶The element type is always OCTET by definition.
flexi-stream
)) ¶Returns the element type that was provided by the creator of the stream.
flexi-stream
)) ¶Dispatch to method for underlying stream.
trivial-gray-streams
.
flexi-stream
)) ¶Dispatch to method for underlying stream.
trivial-gray-streams
.
vector-input-stream
)) ¶Sets the index into the underlying vector if POSITION-SPEC is acceptable.
trivial-gray-streams
.
vector-input-stream
)) ¶Simply returns the index into the underlying vector.
trivial-gray-streams
.
vector-output-stream
)) ¶Sets the fill pointer underlying vector if POSITION-SPEC is acceptable. Adjusts the vector if necessary.
trivial-gray-streams
.
vector-output-stream
)) ¶Simply returns the fill pointer of the underlying vector.
trivial-gray-streams
.
flexi-output-stream
)) ¶Simply calls the corresponding method for the underlying output stream.
sb-gray
.
flexi-output-stream
)) ¶Simply calls the corresponding method for the underlying output stream.
sb-gray
.
flexi-output-stream
)) ¶Returns the column stored in the COLUMN slot of the FLEXI-OUTPUT-STREAM object STREAM.
sb-gray
.
flexi-input-stream
)) ¶Calls the corresponding method for the underlying input stream but first checks if (old) input is available in the OCTET-STACK slot.
sb-gray
.
vector-input-stream
)) ¶Checking whether INDEX is beyond END.
sb-gray
.
list-input-stream
)) ¶Checks whether list is not empty.
sb-gray
.
flexi-io-stream
)) ¶sb-gray
.
flexi-input-stream
)) ¶Reads one byte (octet) from the underlying stream.
sb-gray
.
vector-input-stream
)) ¶Reads one byte and increments INDEX pointer unless we’re beyond END pointer.
sb-gray
.
list-input-stream
)) ¶Reads one byte by simply popping it off of the top of the list.
sb-gray
.
flexi-io-stream
)) ¶sb-gray
.
flexi-input-stream
)) ¶sb-gray
.
flexi-input-stream
)) ¶Reads one character if the underlying stream has at least one octet available.
sb-gray
.
flexi-io-stream
) sequence start end &key) ¶trivial-gray-streams
.
flexi-input-stream
) sequence start end &key) ¶An optimized version which uses a buffer underneath. The function can deliver characters as well as octets and it decides what to do based on the element type of the sequence (which takes precedence) and the element type of the stream. What you’ll really get might also depend on your Lisp. Some of the implementations are more picky than others - see for example FLEXI-STREAMS-TEST::SEQUENCE-TEST.
trivial-gray-streams
.
vector-input-stream
) sequence start end &key) ¶Traverses both sequences in parallel until the end of one of them is reached.
trivial-gray-streams
.
list-input-stream
) sequence start end &key) ¶Repeatedly pops elements from the list until it’s empty.
trivial-gray-streams
.
flexi-io-stream
) char) ¶sb-gray
.
flexi-input-stream
) char) ¶Implements UNREAD-CHAR for streams of type FLEXI-INPUT-STREAM. Makes sure CHAR will only be unread if it was the last character read and if it was read with the same encoding that’s currently being used by the stream.
sb-gray
.
flexi-io-stream
) byte) ¶sb-gray
.
flexi-output-stream
) byte) ¶Writes a byte (octet) to the underlying stream.
sb-gray
.
vector-output-stream
) byte) ¶Writes a byte (octet) by extending the underlying vector.
sb-gray
.
flexi-io-stream
) char) ¶sb-gray
.
flexi-output-stream
) char) ¶sb-gray
.
flexi-output-stream
) char) ¶sb-gray
.
flexi-io-stream
) sequence start end &key) ¶trivial-gray-streams
.
flexi-output-stream
) sequence start end &key) ¶An optimized version which uses a buffer underneath. The function can accepts characters as well as octets and it decides what to do based on the element type of the sequence (if possible) or on the individual elements, i.e. you can mix characters and octets in SEQUENCE if you want. Whether that really works might also depend on your Lisp, some of the implementations are more picky than others.
trivial-gray-streams
.
vector-output-stream
) sequence start end &key) ¶Just calls VECTOR-PUSH-EXTEND repeatedly.
trivial-gray-streams
.
flexi-output-stream
) string &optional start end) ¶Simply hands over to the optimized method for STREAM-WRITE-SEQUENCE.
sb-gray
.
Superclass for all conditions related to external formats.
simple-condition
.
(quote nil)
:external-format
This slot is read-only.
Errors of this type are signalled if there is an encoding problem.
Superclass for all errors related to external formats.
error
.
external-format-condition
.
Errors of this type are signalled if the flexi stream has a wrong element type.
:element-type
This slot is read-only.
Superclass for all errors related to flexi streams.
stream-error
.
This can happen if you’re trying to write to an IO
stream which had prior to that ‘looked ahead’ while reading and now
can’t ‘rewind’ to the octet where you /should/ be.
An error that is signalled when someone is trying to read from or write to a closed IN-MEMORY stream.
Superclass for all errors related to IN-MEMORY streams.
stream-error
.
Errors of this type are signalled if an erroneous position spec is used in conjunction with FILE-POSITION.
:position-spec
This slot is read-only.
A FLEXI-INPUT-STREAM is a FLEXI-STREAM that
can actually be instatiated and used for input. Don’t use
MAKE-INSTANCE to create a new FLEXI-INPUT-STREAM but use
MAKE-FLEXI-STREAM instead.
flexi-stream
.
fundamental-binary-input-stream
.
fundamental-character-input-stream
.
(setf flexi-stream-bound)
.
flexi-stream-bound
.
(setf flexi-stream-last-char-code)
.
flexi-stream-last-char-code
.
(setf flexi-stream-last-octet)
.
flexi-stream-last-octet
.
(setf flexi-stream-octet-stack)
.
flexi-stream-octet-stack
.
(setf flexi-stream-position)
.
flexi-stream-position
.
peek-byte
.
read-byte*
.
stream-clear-input
.
stream-listen
.
stream-read-byte
.
stream-read-char
.
stream-read-char-no-hang
.
stream-read-sequence
.
stream-unread-char
.
unread-byte
.
This slot either holds NIL or the
last character (code) read successfully. This is mainly used for
UNREAD-CHAR sanity checks.
This slot either holds NIL or the last
octet read successfully from the stream using a ‘binary’ operation
such as READ-BYTE. This is mainly used for UNREAD-BYTE sanity
checks.
A small buffer which holds octets
that were already read from the underlying stream but not yet
used to produce characters. This is mainly used if we have to
look ahead for a CR/LF line ending.
The position within the stream where each octet read counts as one.
common-lisp
.
integer
0
:position
When this is not NIL, it must be an integer
and the stream will behave as if no more data is available as soon as
POSITION is greater or equal than this value.
(or null integer)
:bound
A FLEXI-IO-STREAM is a FLEXI-STREAM that can
actually be instatiated and used for input and output. Don’t use
MAKE-INSTANCE to create a new FLEXI-IO-STREAM but use
MAKE-FLEXI-STREAM instead.
A FLEXI-OUTPUT-STREAM is a FLEXI-STREAM that
can actually be instatiated and used for output. Don’t use
MAKE-INSTANCE to create a new FLEXI-OUTPUT-STREAM but use
MAKE-FLEXI-STREAM instead.
flexi-stream
.
fundamental-binary-output-stream
.
fundamental-character-output-stream
.
The current output column. A non-negative integer or NIL.
0
A FLEXI-STREAM object is a stream that’s
‘layered’ atop an existing binary/bivalent stream in order to
allow for multi-octet external formats. FLEXI-STREAM itself is a
mixin and should not be instantiated.
trivial-gray-stream-mixin
.
close
.
(setf flexi-stream-element-type)
.
(setf flexi-stream-element-type)
.
flexi-stream-element-type
.
(setf flexi-stream-external-format)
.
(setf flexi-stream-external-format)
.
flexi-stream-external-format
.
flexi-stream-stream
.
initialize-instance
.
open-stream-p
.
stream-element-type
.
(setf stream-file-position)
.
stream-file-position
.
The actual stream that’s used for
input and/or output. It must be capable of reading/writing
octets with READ-SEQUENCE and/or WRITE-SEQUENCE.
common-lisp
.
:stream
This slot is read-only.
The encoding currently used
by this stream. Can be changed on the fly.
(flexi-streams:make-external-format :iso-8859-1)
:flexi-stream-external-format
The element type of this stream.
(quote flexi-streams::char*)
:element-type
An IN-MEMORY-INPUT-STREAM is a binary stream that reads octets from a sequence in RAM.
fundamental-binary-input-stream
.
in-memory-stream
.
An IN-MEMORY-OUTPUT-STREAM is a binary stream that writes octets to a sequence in RAM.
fundamental-binary-output-stream
.
in-memory-stream
.
An IN-MEMORY-STREAM is a binary stream that reads octets from or writes octets to a sequence in RAM.
trivial-gray-stream-mixin
.
A function used to transform the
written/read octet to the value stored/retrieved in/from the
underlying vector.
:transformer
A LIST-STREAM is a mixin for IN-MEMORY streams where the underlying sequence is a list.
The underlying list of the stream.
common-lisp
.
:list
A VECTOR-STREAM is a mixin for IN-MEMORY streams where the underlying sequence is a vector.
The underlying vector of the stream which
(for output) must always be adjustable and have a fill pointer.
common-lisp
.
:vector
A hash table which maps US-ASCII character codes to the corresponding octets.
An array enumerating the character codes for the US-ASCII encoding.
Default size for buffers used for internal purposes.
An alist which maps IDs of Windows code pages to hash tables which map character codes to the corresponding octets.
A list of 8-bit Windows code pages where each element is a cons with the car being the ID of the code page and the cdr being a vector enumerating the corresponding character codes.
An alist which maps names for ISO-8859 encodings to hash tables which map character codes to the corresponding octets.
A list of the ISO-8859 encodings where each element is a cons with the car being a keyword denoting the encoding and the cdr being a vector enumerating the corresponding character codes.
A hash table which maps KOI8-R character codes to the corresponding octets.
An array enumerating the character codes for the KOI8-R encoding.
A hash table which maps MAC-ROMAN character codes to the corresponding octets.
An array enumerating the character codes for the MAC-ROMAN encoding.
A unary function which might be called to ‘unread’ a character
(i.e. the sequence of octets it represents).
Used by the function OCTETS-TO-CHAR-CODE and must always be bound to a suitable functional object when this function is called.
Like *STANDARD-OPTIMIZE-SETTINGS*, but (on LispWorks) with all arithmetic being fixnum arithmetic.
The standard optimize settings used by most declaration expressions.
An alist which mapes alternative names for external formats to their canonical counterparts.
An alist which maps shortcuts for external formats to their long forms.
Solely for optimization purposes. Some Lisps need it, some don’t.
Make sure VALUE is evaluated only once (to appease SBCL).
Non-hygienic utility macro which defines several decoding-related methods for the classes LF-FORMAT-CLASS, CR-FORMAT-CLASS, and CRLF-FORMAT-CLASS where it is assumed that CR-FORMAT-CLASS is the same encoding as LF-FORMAT-CLASS but with CR instead of LF line endings and similar for CRLF-FORMAT-CLASS, i.e. LF-FORMAT-CLASS is the base class. BODY is a code template for the code to read octets and return one character code. BODY must contain a symbol OCTET-GETTER representing the form which is used to obtain the next octet.
Non-hygienic utility macro which defines several encoding-related methods for the classes LF-FORMAT-CLASS, CR-FORMAT-CLASS, and CRLF-FORMAT-CLASS where it is assumed that CR-FORMAT-CLASS is the same encoding as LF-FORMAT-CLASS but with CR instead of LF line endings and similar for CRLF-FORMAT-CLASS, i.e. LF-FORMAT-CLASS is the base class. BODY is a code template for the code to convert one character to octets. BODY must contain a symbol CHAR-GETTER representing the form which is used to obtain the character and a forms like (OCTET-WRITE <thing>) to write the octet <thing>. The CHAR-GETTER form might be called more than once.
Non-hygienic utility macro which defines methods for READ-SEQUENCE* and OCTETS-TO-STRING* for the class FORMAT-CLASS. BODY is described in the docstring of DEFINE-CHAR-ENCODERS but can additionally contain a form (UNGET <form>) which has to be replaced by the correct code to ‘unread’ the octets for the character designated by <form>.
Non-hygienic utility macro which defines methods for WRITE-SEQUENCE* and STRING-TO-OCTETS* for the class FORMAT-CLASS. For BODY see the docstring of DEFINE-CHAR-ENCODERS.
Solely for optimization purposes. Some Lisps need it, some don’t.
Solely for optimization purposes. Some Lisps need it, some don’t.
Evaluates FORM and binds VAR to the result, then executes BODY if VAR has a true value.
WITH-REBINDING ( { var | (var prefix) }* ) form*
Evaluates a series of forms in the lexical environment that is formed by adding the binding of each VAR to a fresh, uninterned symbol, and the binding of that fresh, uninterned symbol to VAR’s original value, i.e., its value in the current lexical environment.
The uninterned symbol is created as if by a call to GENSYM with the
string denoted by PREFIX - or, if PREFIX is not supplied, the string
denoted by VAR - as argument.
The forms are evaluated in order, and the values of all but the last are discarded (that is, the body is an implicit PROGN).
Syntax: WITH-UNIQUE-NAMES ( { var | (var x) }* ) declaration* form*
Executes a series of forms with each VAR bound to a fresh,
uninterned symbol. The uninterned symbol is as if returned by a call
to GENSYM with the string denoted by X - or, if X is not supplied, the
string denoted by VAR - as argument.
The variable bindings created are lexical unless special declarations
are specified. The scopes of the name bindings and declarations do not
include the Xs.
The forms are evaluated in order, and the values of all but the last are discarded (that is, the body is an implicit PROGN).
Checks whether NAME is the keyword :ASCII.
Checks whether NAME is the keyword :CODE-PAGE.
Given the initargs for a general external format returns the name (a symbol) of the most specific subclass matching these arguments.
this function is borrowed from sbcl’s source file "/src/code/external-formats/mb-util.lisp", it search char code in "table" with specified "code"
‘Inverts’ an array which maps octets to character codes to a hash table which maps character codes to octets.
Checks whether NAME (a keyword) names one of the known ISO-8859 encodings.
Checks whether ID (a number) denotes one of the known Windows code pages.
Checks whether NAME is the keyword :KOI8-R.
Checks whether NAME is the keyword :MAC-ROMAN.
Creates and returns an array which contains the elements in the list LIST and has an element type that’s suitable for character codes.
Used internally by MAKE-EXTERNAL-FORMAT to default some of the keywords arguments and to determine the right subclass of EXTERNAL-FORMAT.
Creates and returns a fresh buffer (a specialized array) of size +BUFFER-SIZE+ to hold octets.
Creates and returns an array which can be used as the underlying vector for a VECTOR-OUTPUT-STREAM.
Given an external format designator (a keyword, a list, or an EXTERNAL-FORMAT object) returns the corresponding EXTERNAL-FORMAT object.
Tries to ‘rewind’ the (binary) stream STREAM by OCTETS octets. Returns T if it succeeds, otherwise NIL.
Returns a list which is a ‘normalized’ representation of the external format EXTERNAL-FORMAT. Used internally by PRINT-OBJECT, for example. Basically, the result is an argument list that can be fed back to MAKE-EXTERNAL-FORMAT to create an equivalent object.
Converts NAME (a symbol) to a ‘canonical’ name for an external format, e.g. :LATIN1 will be converted to :ISO-8859-1. Also checks if there is an external format with that name and signals an error otherwise.
Helper function used by OCTETS-TO-CHAR-CODE below to deal with encoding errors. Checks if *SUBSTITUTION-CHAR* is not NIL and returns its character code in this case. Otherwise signals an EXTERNAL-FORMAT-ENCODING-ERROR as determined by the arguments to this function and provides a corresponding USE-VALUE restart.
Returns PLIST with keyword arguments from KEYS removed.
Convenience function similar to ERROR to signal conditions of type EXTERNAL-FORMAT-ENCODING-ERROR.
Whether TYPE1 and TYPE2 denote the same type.
Used internally to put a character CHAR which was already read back on the stream. Uses the OCTET-STACK slot and decrements the POSITION slot accordingly.
Converts the character CHAR to a sequence of octets
using the external format FORMAT. The conversion is performed by
calling the unary function (which must be a functional object) WRITER
repeatedly each octet. The return value of this function is
unspecified.
flexi-crlf-mixin
) char writer) ¶flexi-cr-mixin
) char writer) ¶flexi-utf-32-be-format
) char writer) ¶flexi-utf-32-le-format
) char writer) ¶flexi-gbk-format
) char writer) ¶flexi-utf-16-be-format
) char writer) ¶flexi-utf-16-le-format
) char writer) ¶flexi-utf-8-format
) char writer) ¶flexi-8-bit-format
) char writer) ¶flexi-ascii-format
) char writer) ¶flexi-latin-1-format
) char writer) ¶Returns the number of octets needed to encode the single character CHAR.
flexi-utf-32-format
) char) ¶flexi-8-bit-format
) char) ¶flexi-crlf-mixin
) (char (eql #\newline)
)) ¶Helper function used below to determine if we tried to read past the end of the sequence.
flexi-utf-16-format
) start end i) ¶in-memory-stream
)) ¶Checks if STREAM is open and signals an error otherwise.
Computes the exact number of characters required to
decode the sequence of octets in SEQUENCE from START to END using the
external format FORMAT.
flexi-crlf-utf-32-be-format
) sequence start end) ¶flexi-crlf-utf-32-le-format
) sequence start end) ¶flexi-utf-32-format
) sequence start end) ¶flexi-utf-32-format
) sequence start end) ¶flexi-crlf-gbk-format
) sequence start end) ¶flexi-gbk-format
) sequence start end) ¶flexi-crlf-utf-16-be-format
) sequence start end) ¶flexi-crlf-utf-16-le-format
) sequence start end) ¶flexi-utf-16-be-format
) sequence start end) ¶flexi-utf-16-le-format
) sequence start end) ¶flexi-utf-16-format
) sequence start end) ¶flexi-crlf-utf-8-format
) sequence start end) ¶flexi-utf-8-format
) sequence start end) ¶flexi-crlf-mixin
) sequence start end) ¶flexi-8-bit-format
) sequence start end) ¶list
) start end) ¶Computes the exact number of octets required to
encode the sequence of characters in SEQUENCE from START to END using
the external format FORMAT.
flexi-crlf-mixin
) string start end) ¶flexi-utf-32-format
) string start end) ¶flexi-crlf-utf-16-be-format
) string start end) ¶flexi-crlf-utf-16-le-format
) string start end) ¶flexi-utf-16-format
) string start end) ¶flexi-crlf-utf-8-format
) string start end) ¶flexi-utf-8-format
) string start end) ¶flexi-crlf-gbk-format
) string start end) ¶flexi-gbk-format
) string start end) ¶flexi-8-bit-format
) string start end) ¶list
) start end) ¶Given an external format FORMAT, returns a factor
which denotes the octets to characters ratio to expect when
encoding/decoding. If the returned value is an integer, the factor is
assumed to be exact. If it is a (double) float, the factor is
supposed to be based on heuristics and usually not exact.
This factor is used in string.lisp.
flexi-crlf-mixin
)) ¶flexi-utf-32-format
)) ¶flexi-gbk-format
)) ¶flexi-utf-16-format
)) ¶flexi-utf-8-format
)) ¶flexi-8-bit-format
)) ¶flexi-8-bit-format
)) ¶automatically generated reader method
flexi-8-bit-format
)) ¶automatically generated writer method
flexi-8-bit-format
)) ¶automatically generated reader method
flexi-8-bit-format
)) ¶automatically generated writer method
flexi-input-stream
)) ¶flexi-input-stream
)) ¶This slot either holds NIL or the
last character (code) read successfully. This is mainly used for
UNREAD-CHAR sanity checks.
flexi-input-stream
)) ¶flexi-input-stream
)) ¶This slot either holds NIL or the last
octet read successfully from the stream using a ‘binary’ operation
such as READ-BYTE. This is mainly used for UNREAD-BYTE sanity
checks.
flexi-input-stream
)) ¶flexi-input-stream
)) ¶A small buffer which holds octets
that were already read from the underlying stream but not yet
used to produce characters. This is mainly used if we have to
look ahead for a CR/LF line ending.
in-memory-stream
)) ¶in-memory-stream
)) ¶A function used to transform the
written/read octet to the value stored/retrieved in/from the
underlying vector.
list-stream
)) ¶list-stream
)) ¶The underlying list of the stream.
list
.
Converts a sequence of octets to a character code
(which is returned, or NIL in case of EOF) using the external format
FORMAT. The sequence is obtained by calling the function (which must
be a functional object) READER with no arguments which should return
one octet per call. In the case of EOF, READER should return NIL.
The special variable *CURRENT-UNREADER* must be bound correctly whenever this function is called.
flexi-crlf-mixin
) reader) ¶flexi-cr-mixin
) reader) ¶flexi-utf-32-be-format
) reader) ¶flexi-utf-32-le-format
) reader) ¶flexi-gbk-format
) reader) ¶flexi-utf-16-be-format
) reader) ¶flexi-utf-16-le-format
) reader) ¶flexi-utf-8-format
) reader) ¶flexi-8-bit-format
) reader) ¶flexi-ascii-format
) reader) ¶flexi-latin-1-format
) reader) ¶A generic function which dispatches on the external format and does the real work for OCTETS-TO-STRING.
flexi-crlf-utf-32-be-format
) sequence start end) ¶flexi-cr-utf-32-be-format
) sequence start end) ¶flexi-utf-32-be-format
) sequence start end) ¶flexi-crlf-utf-32-le-format
) sequence start end) ¶flexi-cr-utf-32-le-format
) sequence start end) ¶flexi-utf-32-le-format
) sequence start end) ¶flexi-crlf-gbk-format
) sequence start end) ¶flexi-cr-gbk-format
) sequence start end) ¶flexi-gbk-format
) sequence start end) ¶flexi-crlf-utf-16-be-format
) sequence start end) ¶flexi-cr-utf-16-be-format
) sequence start end) ¶flexi-utf-16-be-format
) sequence start end) ¶flexi-crlf-utf-16-le-format
) sequence start end) ¶flexi-cr-utf-16-le-format
) sequence start end) ¶flexi-utf-16-le-format
) sequence start end) ¶flexi-crlf-utf-8-format
) sequence start end) ¶flexi-cr-utf-8-format
) sequence start end) ¶flexi-utf-8-format
) sequence start end) ¶flexi-crlf-8-bit-format
) sequence start end) ¶flexi-cr-8-bit-format
) sequence start end) ¶flexi-8-bit-format
) sequence start end) ¶flexi-crlf-ascii-format
) sequence start end) ¶flexi-cr-ascii-format
) sequence start end) ¶flexi-ascii-format
) sequence start end) ¶flexi-crlf-latin-1-format
) sequence start end) ¶flexi-cr-latin-1-format
) sequence start end) ¶flexi-latin-1-format
) sequence start end) ¶list
) start end) ¶flexi-input-stream
)) ¶Reads one byte (octet) from the underlying stream of FLEXI-OUTPUT-STREAM (or from the internal stack if it’s not empty).
flexi-crlf-utf-32-be-format
) flexi-input-stream sequence start end) ¶flexi-cr-utf-32-be-format
) flexi-input-stream sequence start end) ¶flexi-utf-32-be-format
) flexi-input-stream sequence start end) ¶flexi-crlf-utf-32-le-format
) flexi-input-stream sequence start end) ¶flexi-cr-utf-32-le-format
) flexi-input-stream sequence start end) ¶flexi-utf-32-le-format
) flexi-input-stream sequence start end) ¶flexi-crlf-gbk-format
) flexi-input-stream sequence start end) ¶flexi-cr-gbk-format
) flexi-input-stream sequence start end) ¶flexi-gbk-format
) flexi-input-stream sequence start end) ¶flexi-crlf-utf-16-be-format
) flexi-input-stream sequence start end) ¶flexi-cr-utf-16-be-format
) flexi-input-stream sequence start end) ¶flexi-utf-16-be-format
) flexi-input-stream sequence start end) ¶flexi-crlf-utf-16-le-format
) flexi-input-stream sequence start end) ¶flexi-cr-utf-16-le-format
) flexi-input-stream sequence start end) ¶flexi-utf-16-le-format
) flexi-input-stream sequence start end) ¶flexi-crlf-utf-8-format
) flexi-input-stream sequence start end) ¶flexi-cr-utf-8-format
) flexi-input-stream sequence start end) ¶flexi-utf-8-format
) flexi-input-stream sequence start end) ¶flexi-crlf-8-bit-format
) flexi-input-stream sequence start end) ¶flexi-cr-8-bit-format
) flexi-input-stream sequence start end) ¶flexi-8-bit-format
) flexi-input-stream sequence start end) ¶flexi-crlf-ascii-format
) flexi-input-stream sequence start end) ¶flexi-cr-ascii-format
) flexi-input-stream sequence start end) ¶flexi-ascii-format
) flexi-input-stream sequence start end) ¶flexi-crlf-latin-1-format
) flexi-input-stream sequence start end) ¶flexi-cr-latin-1-format
) flexi-input-stream sequence start end) ¶flexi-latin-1-format
) flexi-input-stream sequence start end) ¶flexi-io-stream
)) ¶This method is used to clear any state associated with previous input before output is attempted on the stream. It can fail if the octet stack is not empty and the stream can’t be ‘rewound’.
flexi-io-stream
)) ¶This method is used to clear any state associated with previous output before the stream is used for input.
A generic function which dispatches on the external format and does the real work for STRING-TO-OCTETS.
flexi-crlf-utf-32-be-format
) string start end) ¶flexi-cr-utf-32-be-format
) string start end) ¶flexi-utf-32-be-format
) string start end) ¶flexi-crlf-utf-32-le-format
) string start end) ¶flexi-cr-utf-32-le-format
) string start end) ¶flexi-utf-32-le-format
) string start end) ¶flexi-crlf-gbk-format
) string start end) ¶flexi-cr-gbk-format
) string start end) ¶flexi-gbk-format
) string start end) ¶flexi-crlf-utf-16-be-format
) string start end) ¶flexi-cr-utf-16-be-format
) string start end) ¶flexi-utf-16-be-format
) string start end) ¶flexi-crlf-utf-16-le-format
) string start end) ¶flexi-cr-utf-16-le-format
) string start end) ¶flexi-utf-16-le-format
) string start end) ¶flexi-crlf-utf-8-format
) string start end) ¶flexi-cr-utf-8-format
) string start end) ¶flexi-utf-8-format
) string start end) ¶flexi-crlf-8-bit-format
) string start end) ¶flexi-cr-8-bit-format
) string start end) ¶flexi-8-bit-format
) string start end) ¶flexi-crlf-ascii-format
) string start end) ¶flexi-cr-ascii-format
) string start end) ¶flexi-ascii-format
) string start end) ¶flexi-crlf-latin-1-format
) string start end) ¶flexi-cr-latin-1-format
) string start end) ¶flexi-latin-1-format
) string start end) ¶list
) start end) ¶in-memory-stream
) octet) ¶Applies the transformer of STREAM to octet and returns the result.
vector-input-stream
)) ¶vector-input-stream
)) ¶An index into the underlying vector denoting the end of the available data.
end
.
vector-input-stream
)) ¶vector-input-stream
)) ¶An index into the underlying vector denoting the current position.
vector-stream
)) ¶vector-stream
)) ¶The underlying vector of the stream which
(for output) must always be adjustable and have a fill pointer.
Writes one byte (octet) to the underlying stream STREAM.
flexi-io-stream
)) ¶Keep POSITION slot up to date even when performing output.
flexi-output-stream
)) ¶A generic function which dispatches on the external format and does the real work for STREAM-WRITE-SEQUENCE.
flexi-crlf-utf-32-be-format
) stream sequence start end) ¶flexi-cr-utf-32-be-format
) stream sequence start end) ¶flexi-utf-32-be-format
) stream sequence start end) ¶flexi-crlf-utf-32-le-format
) stream sequence start end) ¶flexi-cr-utf-32-le-format
) stream sequence start end) ¶flexi-utf-32-le-format
) stream sequence start end) ¶flexi-crlf-gbk-format
) stream sequence start end) ¶flexi-cr-gbk-format
) stream sequence start end) ¶flexi-gbk-format
) stream sequence start end) ¶flexi-crlf-utf-16-be-format
) stream sequence start end) ¶flexi-cr-utf-16-be-format
) stream sequence start end) ¶flexi-utf-16-be-format
) stream sequence start end) ¶flexi-crlf-utf-16-le-format
) stream sequence start end) ¶flexi-cr-utf-16-le-format
) stream sequence start end) ¶flexi-utf-16-le-format
) stream sequence start end) ¶flexi-crlf-utf-8-format
) stream sequence start end) ¶flexi-cr-utf-8-format
) stream sequence start end) ¶flexi-utf-8-format
) stream sequence start end) ¶flexi-crlf-8-bit-format
) stream sequence start end) ¶flexi-cr-8-bit-format
) stream sequence start end) ¶flexi-8-bit-format
) stream sequence start end) ¶flexi-crlf-ascii-format
) stream sequence start end) ¶flexi-cr-ascii-format
) stream sequence start end) ¶flexi-ascii-format
) stream sequence start end) ¶flexi-crlf-latin-1-format
) stream sequence start end) ¶flexi-cr-latin-1-format
) stream sequence start end) ¶flexi-latin-1-format
) stream sequence start end) ¶Like FLEXI-STREAM-ERROR but with formatting capabilities.
flexi-stream-error
.
simple-condition
.
Like IN-MEMORY-STREAM-ERROR but with formatting capabilities.
in-memory-stream-error
.
simple-condition
.
EXTERNAL-FORMAT objects are used to denote
encodings for flexi streams or for the string functions defined in
strings.lisp.
The name of the external format - a keyword.
:name
This slot is read-only.
If the external format denotes a Windows
code page this ID specifies which one to use. Otherwise the
value is ignored (and usually NIL).
:id
This slot is read-only.
Whether multi-octet values are
read and written with the least significant octet first. For
8-bit encodings like :ISO-8859-1 this value is ignored.
flexi-streams:*default-little-endian*
:little-endian
This slot is read-only.
The character(s) to or from which
a #Newline will be translated - one of the keywords :CR, :LF,
or :CRLF.
:eol-style
This slot is read-only.
The class for all flexi streams which use an 8-bit
encoding and thus need additional slots for the encoding/decoding
tables.
char-to-octets
.
character-length
.
compute-number-of-chars
.
compute-number-of-octets
.
encoding-factor
.
(setf external-format-decoding-table)
.
external-format-decoding-table
.
(setf external-format-encoding-hash)
.
external-format-encoding-hash
.
initialize-instance
.
octets-to-char-code
.
octets-to-string*
.
read-sequence*
.
string-to-octets*
.
write-sequence*
.
Special class for external formats which use the US-ASCII encoding.
Special class for external formats which use an
8-bit encoding /and/ have #Return as the line-end character.
Special class for external formats which use the
US-ASCII encoding /and/ have #Return as the line-end character.
Special class for external formats which use the
gbk encoding /and/ have #Return as the line-end character.
Special class for external formats which use the
ISO-8859-1 encoding /and/ have #Return as the line-end character.
A mixin for external-formats where the end-of-line designator is #Return.
Special class for external formats which use the
UTF-16 encoding with big-endian byte ordering /and/ have #Return as
the line-end character.
Special class for external formats which use the
UTF-16 encoding with little-endian byte ordering /and/ have #Return
as the line-end character.
Special class for external formats which use the
UTF-32 encoding with big-endian byte ordering /and/ have #Return as
the line-end character.
Special class for external formats which use the
UTF-32 encoding with little-endian byte ordering /and/ have #Return
as the line-end character.
Special class for external formats which use the
UTF-8 encoding /and/ have #Return as the line-end character.
Special class for external formats which use an
8-bit encoding /and/ have the sequence #Return #Linefeed as the
line-end character.
Special class for external formats which use the
US-ASCII encoding /and/ have the sequence #Return #Linefeed as the
line-end character.
Special class for external formats which use the
gbk encoding /and/ have the sequence #Return #Linefeed as the
line-end character.
Special class for external formats which use the
ISO-8859-1 encoding /and/ have the sequence #Return #Linefeed as the
line-end character.
A mixin for external-formats where the end-of-line designator is the sequence #Return #Linefeed.
Special class for external formats which use the
UTF-16 encoding with big-endian byte ordering /and/ have the sequence
#Return #Linefeed as the line-end character.
Special class for external formats which use the
UTF-16 encoding with little-endian byte ordering /and/ have the
sequence #Return #Linefeed as the line-end character.
Special class for external formats which use the
the UTF-32 encoding with big-endian byte ordering /and/ have the
sequence #Return #Linefeed as the line-end character.
Special class for external formats which use the
UTF-32 encoding with little-endian byte ordering /and/ have the
sequence #Return #Linefeed as the line-end character.
Special class for external formats which use the
UTF-8 encoding /and/ have the sequence #Return #Linefeed as the
line-end character.
Special class for external formats which use the gbk encoding.
Special class for external formats which use the ISO-8859-1 encoding.
Special class for external formats which use the UTF-16 encoding with big-endian byte ordering.
Abstract class for external formats which use the UTF-16 encoding.
Special class for external formats which use the UTF-16 encoding with little-endian byte ordering.
Special class for external formats which use the UTF-32 encoding with big-endian byte ordering.
Abstract class for external formats which use the UTF-32 encoding.
Special class for external formats which use the UTF-32 encoding with little-endian byte ordering.
Special class for external formats which use the UTF-8 encoding.
A binary input stream that gets its data from an associated list of octets.
A binary input stream that gets its data from an associated vector of octets.
An index into the underlying vector denoting the current position.
(integer 0 17592186044416)
:index
An index into the underlying vector denoting the end of the available data.
(integer 0 17592186044416)
:end
A binary output stream that writes its data to an associated vector.
Convenience shortcut to paper over the difference between LispWorks and the other Lisps.
The subtype of integers which can be returned by the function CHAR-CODE.
The subtype of integers that’s just big enough to hold all Unicode
codepoints.
See for example <http://unicode.org/glossary/#C>.
Convenience shortcut to paper over the difference between LispWorks and the other Lisps.
Jump to: | (
A C D E F G H I K L M N O P R S T U V W |
---|
Jump to: | (
A C D E F G H I K L M N O P R S T U V W |
---|
Jump to: | *
+
B C D E I L N O P S T V |
---|
Jump to: | *
+
B C D E I L N O P S T V |
---|
Jump to: | A C D E F I K L M O P S T U V |
---|
Jump to: | A C D E F I K L M O P S T U V |
---|