ExLisp. CLFormat
(exlisp v0.1.2)
Copy Markdown
ANSI Common Lisp format control string engine for ExLisp.
Supports:
- ~A, ~S, ~C, ~W (Aesthetic, Standard, Character, Write)
- ~D, ~B, ~O, ~X, ~R (Decimal, Binary, Octal, Hex, Radix/English/Roman)
- ~P (Pluralization: s, ies, with modifiers)
- ~F, ~E, ~G, ~$ (Floating point, Exponential, Monetary)
- ~%, ~&, ~|, ~~ (Newlines, Fresh-line, Page, Tilde)
- ~* (Argument navigation: forward, backward, absolute)
- ~? (Indirection / nested format)
- ~[ ... ~] (Conditional selection: index, boolean, truthy)
- ~{ ... ~} (Iteration: list, sublists, remaining args, max iterations)
- ~^ (Escape / termination check)
- ~( ... ~) (Case conversion: downcase, capitalize, upcase)
Summary
Functions
Formats arguments according to Common Lisp control string.