added is_printable: string -> bool;
authorwenzelm
Mon, 18 Nov 1996 17:28:19 +0100
changeset 2196 1b36ebc70487
parent 2195 e8271379ba4b
child 2197 e895937fcd56
added is_printable: string -> bool;
src/Pure/library.ML
--- a/src/Pure/library.ML	Mon Nov 18 17:27:59 1996 +0100
+++ b/src/Pure/library.ML	Mon Nov 18 17:28:19 1996 +0100
@@ -374,6 +374,9 @@
 
 val is_letdig = is_quasi_letter orf is_digit;
 
+(*printable chars*)
+fun is_printable c = ord c > ord " " andalso ord c <= ord "~";
+
 
 (*lower all chars of string*)
 val to_lower =