Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 13 utilities.

with-ignored-streams v1.0

Ignore any input or output to any of the streams denoted by the symbols streams in the code body.

Provides
with-ignored-streams
Requires
matching-null-stream
Source Code
 
quietly v1.0

Quietly execute body, suppressing all output.

Provides
quietly
Requires
with-ignored-streams
io
Source Code
 
skip-if v1.0

Given a character predicate char-predicate, read past all of the characters of the character stream stream which satisfy that predicate. Optional arguments eof-error-p, eof-value, and recursive-p are the same as in read-char.

Provides
skip-if
Source Code
 
skip v1.0

Read past all of the characters matching char in the character stream stream. Optional arguments eof-error-p, eof-value, and recursive-p are the same as in read-char.

Provides
skip
Requires
skip-if
Source Code
 
with-open-file* v1.0

Just like with-open-file, but nil values in the keyword arguments mean to use the default value specified for open.

Provides
with-open-file*
Requires
once-only
Source Code
 
with-input-from-file v1.0

Evaluate body with stream-name to an input stream on the file file-name. args is sent as is to the call to open except external-format, which is only sent to with-open-file when it's not nil.

Provides
with-input-from-file
Requires
with-open-file*
Source Code
 
with-output-to-file v1.0

Evaluate body with stream-name to an output stream on the file file-name. args is sent as is to the call to open except external-format, which is only sent to with-open-file when it's not nil.

Provides
with-output-to-file
Requires
with-open-file*
Source Code
 
read-file-into-string v1.0

Return the contents of the file denoted by pathname as a fresh string.

The external-format parameter will be passed directly to with-open-file unless it's nil, which means the system default.

Provides
read-file-into-string
Requires
with-input-from-file
Source Code
 
write-string-into-file v1.0

Write string to pathname.

The external-format parameter will be passed directly to with-open-file unless it's nil, which means the system default.

Provides
write-string-into-file
Requires
with-output-to-file
Source Code
 
read-file-into-byte-vector v1.0

Read pathname into a freshly allocated (unsigned-byte 8) vector.

Provides
read-file-into-byte-vector
Requires
with-input-from-file
Source Code
 
write-byte-vector-into-file v1.0

Write bytes to pathname.

Provides
write-byte-vector-into-file
Requires
with-output-to-file
Source Code
 
copy-file v1.0

Copy a file from from to to.

Provides
copy-file
Requires
copy-stream, with-output-to-file, with-input-from-file
Source Code
 
copy-stream v1.0

Reads data from input and writes it to output. Both input and output must be streams, they will be passed to read-sequence and write-sequence and must have compatible element-types.

Provides
copy-stream
Requires
sub-interval-numeric-types
Source Code