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 18:15, 1 March 2021
, 3 years agoadd Standard ML
Drkameleon (talk | contribs) (Undo revision 324775 by Drkameleon (talk)) |
(add Standard ML) |
||
Line 2,047:
"abcdfoo"
</pre>
=={{header|Standard ML}}==
<lang sml>(* string -> string *)
val stripCntrl = concat o String.tokens Char.isCntrl
(* string -> string *)
val stripCntrlAndExt = concat o String.tokens (not o Char.isPrint)</lang>
=={{header|Tcl}}==
|