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 11:15, 9 March 2018
, 6 years agoadded Factor
(added Factor) |
|||
Line 536:
Stripped of extended: string of , may include control characters and other ilk.
</pre>
=={{header|Factor}}==
<lang>USING: ascii kernel sequences ;
: strip-control-codes ( str -- str' ) [ control? not ] filter ;
: strip-control-codes-and-extended ( str -- str' )
strip-control-codes [ ascii? ] filter ;</lang>
=={{header|Forth}}==
|