Releases: vindarel/cl-str
Releases · vindarel/cl-str
0.22 · match macro, optimizations, correctness
- 0.22, September, 2025:
- optimized
repeatfurther and fixed for LispWorks (no more usingapplyand its call argument limit), thanks to @Yehouda. - small backward uncompatible correctness changes, thanks to @swapneils:
joinnow treats anilseparator as the empty string, rather than the string"nil", conforming to the semantics in the README of not convertingnilto"nil".containspnow automatically returnsnilif either string input isnil.alphanumpand similar now use the correct regex checks for multi-line strings, rather than accepting an input if it has any line matching their specification.
- optimization changes, thanks to @swapneils:
- multiple non-recursive functions have been inlined.
- multiple functions have
ftypedeclarations.
- optimized
- April, 2025:
- optimized
repeatfor large workloads. When the workload is
sufficiently large,str:repeatallocates all chunks of the
expected output onto the stack to call concat, causing an
overflow. For workloads larger than 10,000 characters in the
expected output, it now chunks the work to minimize the chance of
overflowing the stack or heap, while retaining decent performance.
- optimized
- Feb, 2024:
- added the
matchmacro. It is EXPERIMENTAL and might change in future versions. We welcome your bug reports and feedback.
- added the
0.21 · `regex`, `ensure`, `fit`…
from our changelog:
- 0.21, November, 2023:
- added the
regexkey argument tosplit,rsplit,split-omit-nulls.
- added the
- August, 2023:
- added the
regexkey argument to thereplace-*functions.
- added the
- March, 2023:
- added
str:ensure,str:ensure-prefix,str:ensure-suffix,str:ensure-wrapped-inandstr:wrapped-in-p.
- added
- January, 2023: added the
:char-bargparameter totrim,trim-left,trim-right.- minor:
ends-with-pnow works with a character.
- minor:
- June, 2022: small breaking change: fixed
prefixpwhen used with a smaller prefix: "f" was not recognized as a prefix of "foobar" and "foobuz", only "foo" was. Now it is fixed. Same forsuffixp. - Feb, 2022: added
fit: fit the string to the given length: either shorten it, either padd padding. - 0.20, May, 2021: added
ascii-p.
0.19
0.17 - april, 2020
-
added the
s-assoc-valuefunction -
support characters for
join(as doessplit) -
added
collapse-whitespaces -
added
replace-first -
fixed:
remove-punctuationrespects the case. -
fixed:
from-file"odd number of arguments" error
0.16 - november, 2019
- added
pad,pad-[left, right, center]
0.15 - october, 2019
- added functions to change case (based on cl-change-case) and to remove punctuation.