cl-str icon indicating copy to clipboard operation
cl-str copied to clipboard

Modern, simple and consistent Common Lisp string manipulation library.

Results 23 cl-str issues
Sort by recently updated
recently updated
newest added

; in: DEFUN SUFFIX? ; (STR:ENDS-WITH-P SUFFIX S) ; caught STYLE-WARNING: undefined function: STR:ENDS-WITH-P ; in: DEFUN PREFIX? ; (STR:STARTS-WITH-P PREFIX S) ; caught STYLE-WARNING: undefined function: STR:STARTS-WITH-P - Define...

Example: (is (ensure-starts-with "/" "/abc") "/abc") Feedback welcome (especially for naming).

This pull request is related to the following issues: - https://github.com/vindarel/cl-str/issues/55 - https://github.com/vindarel/cl-str/issues/56 There is probably still work to do, this is more a draft to talk about the changes

From a quick glance, it seems that almost all (or even all) of the operations here can apply to vectors of any type, not just `(vector character)` which is what...

See https://github.com/vindarel/cl-str/blob/507ec6c6ec150f467fbf776f578af5b2d9b67caf/str.lisp#L176 I was recently bit this (see https://github.com/atlas-engineer/nyxt/issues/1217 if you want to get confused :p): `join` used to accept a list of anything and leverage `format` to turn the...

See: ``` CL-USER> (str:split "\\n\\n" (str:join "" '("foo" #\newline #\newline "bar"))) ("foo bar") CL-USER> (ppcre:split "\\n\\n" (str:join "" '("foo" #\newline #\newline "bar"))) ("foo" "bar") CL-USER> (ppcre:split "\\s\\s" (str:join "" '("foo"...

Hi, as an improvement, would you be interested in making indices accept negative numbers, which apparently is something that other languages (e.g. python) offer? Based on the existing code in...

Hi, It could be interesting to have a way to allow operation on strings share the same storage as an input string. For example, `substring` could make a displaced string...

This proposal adds the keyword :grammar to the `split` and `join` functions. Here is its meaning for `join`: - `:infix` means an infix or separator grammar: insert the delimiter between...

Make the [tilde newline format directive](http://www.lispworks.com/documentation/lw71/CLHS/Body/22_cic.htm) transparent, so than we could write text with indentation in our code, with no indentations in the final string: ``` (format nil "---~ +++")...