Primitive routines for printing objects.
Our printer is intended to support both text and html output.
Printing HTML is subtle because one may wish to write:
- HTML markup (e.g., <b>, <code>, ...), wherein the
special characters like < are not to be changed, are going to be invisible
to the user, and should not affect the column number,
- Parts of URLs (e.g., filenames), which must be "percent encoded"
per RFC 3986, e.g., spaces become %20. These, too, do not affect the column
number because they take part only in tags such as <a href="...">,
- Encoded HTML text, where special characters like & and <
become & and <, and where tabs become a litany of
characters, and where the column should be advanced as the text is
- (vl-println? x &key (ps 'ps)) prints text with automatic encoding, and may also
inserts a newline if we have gone past the autowrap-col.
- (vl-printable-p x) recognizes strings, character lists, numbers,
and ordinary characters.
- (vl-print x) prints text with automatic encoding.
- Figure out where we'll be after printing some characters.
- (vl-print-strings-with-commas x indent &key (ps 'ps)) prints the elements of x, a
string list, separated by commas.
- Figure out where we'll be after printing a string.
- (vl-println-markup x &key (ps 'ps)) prints verbatim text with no encoding, then
prints a newline.
- (vl-print-strings-as-lines x &key (ps 'ps)) prints the elements of x, a
string list, on separate lines.
- (vl-print-url x &key (ps 'ps)) prints text with automatic URL encoding.
- (vl-print-nat x) is an optimized version of vl-print for
- (vl-indent n &key (ps 'ps)) indents to column n.
- (vl-println x) prints text with automatic encoding, and always
adds a newline.
- (vl-print-markup x) prints verbatim text with no encoding.
- Macro for issuing a sequence of printer commands.
- Print to standard-out using ps
- Like vl-ps-seq, but the commands are only executed when
HTML mode is enabled.
- Like vl-ps-seq, except that in HTML mode the contents are also
wrapped in a <span> tag of the given class.