Modern, simple and consistent Common Lisp string manipulation library.
from our changelog:
regex
key argument to split
, rsplit
, split-omit-nulls
.regex
key argument to the replace-*
functions.str:ensure
, str:ensure-prefix
, str:ensure-suffix
, str:ensure-wrapped-in
and str:wrapped-in-p
.:char-barg
parameter to trim
, trim-left
, trim-right
.
ends-with-p
now works with a character.prefixp
when used with a smaller prefix: "f" was not recognized as a prefix of "foobar" and "foobuz", only "foo" was. Now it is fixed. Same for suffixp
.fit
: fit the string to the given length: either shorten it, either padd padding.ascii-p
.pad
, pad-[left, right, center]
added the s-assoc-value
function
support characters for join
(as does split
)
added collapse-whitespaces
added replace-first
fixed: remove-punctuation
respects the case.
fixed: from-file
"odd number of arguments" error
added the string-case
macro.
contains?
and containsp
.released in september's quicklisp dist.