Strip control codes and extended characters from a string: Difference between revisions

added 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}}==
1,808

edits