This is the bobbin Reference Manual, version 1.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 04:25:37 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
bobbin
Simple (word) wrapping utilities for strings.
Steve Losh <steve@stevelosh.com>
MIT
1.0.1
split-sequence
(system).
package.lisp
(file).
src
(module).
Modules are listed depth-first from the system components tree.
bobbin/src
package.lisp
(file).
bobbin
(system).
main.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
bobbin/src/main.lisp
src
(module).
wrap
(function).
wrap-line
(function).
wrap-lines
(function).
wrap-string
(function).
Packages are listed by definition order.
bobbin
common-lisp
.
wrap
(function).
wrap-line
(function).
wrap-lines
(function).
wrap-string
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Wrap ‘string-or-strings‘ to ‘width‘.
‘string-or-strings‘ can be a string or a list of strings. A list of strings
is treated as multiple lines. In either case the string(s) may also contain
newlines. All of these linebreaks will be included in the output — wrapping
will only add linebreaks, never remove them.
The result with be of the same type as the argument: either a single string
(containing newlines) or a list of strings (not containing newlines).
Examples:
(print (wrap (format nil "foo bar baz") 3))
foo
bar
baz
(print (wrap (format nil "foo bar baz") 7))
foo bar
baz
(print (wrap (format nil "foo~%bar baz") 7))
foo
bar baz
(print (wrap ’("foo" "bar baz") 7))
("foo" "bar baz")
(print (wrap ’("foo" "bar baz") 3))
("foo" "bar" "baz")
Wrap the single-line string ‘line‘ to ‘width‘, returning a multi-line string.
Wrap a list of ‘strings‘ to ‘width‘, returning a list of strings.
Wrap a multi-line string, returning a multi-line string.
Jump to: | F W |
---|
Jump to: | F W |
---|
Jump to: | B F M P S |
---|
Jump to: | B F M P S |
---|