Jump to content

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

add Standard ML
(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}}==
559

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.