Anonymous user
Strip control codes and extended characters from a string: Difference between revisions
Strip control codes and extended characters from a string (view source)
Revision as of 17:01, 25 June 2020
, 3 years ago→{{header|Common Lisp}}
(→{{header|Common Lisp}}: Optimize the implementation) |
|||
Line 581:
<pre>
(defun strip-special-chars (string &key strip-extended)
(let* ((127-operator (if strip-extended #'>= #'=)))
(remove-if (lambda (ch)
(or (< char-code ch 32)
|