Next: strings prefix, Previous: strings select, Up: strings [Index]
Build a string of length requested-len comprised of str padded on the left or right by as many occurrences of the character fill-char as needed. Always return a newly allocated string.
If str has more than requested-len chars, it is truncated on
the left or right to length requested-len. For the macros:
fill-char defaults to #\space
.
Examples:
(string-pad "325" 5) ⇒ " 325" (string-pad "71325" 5) ⇒ "71325" (string-pad "8871325" 5) ⇒ "71325"
Trim str by skipping over all characters on the left/on the right/on both sides that satisfy the second parameter char/char-set/pred:
Always return a newly allocated string.