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:02, 25 June 2020
, 4 years ago→{{header|Common Lisp}}
Line 583:
(let* ((127-operator (if strip-extended #'>= #'=)))
(remove-if (lambda (ch)
(or (< (char-code ch) 32)
(funcall 127-operator (char-code ch) 127)))
string)))
|