src/Pure/Thy/thy_parse.ML
changeset 6043 3eecc7fbfad8
parent 6022 259e4f2114e1
child 6090 78c068b838ff
--- a/src/Pure/Thy/thy_parse.ML	Mon Dec 28 16:50:11 1998 +0100
+++ b/src/Pure/Thy/thy_parse.ML	Mon Dec 28 16:50:37 1998 +0100
@@ -177,8 +177,9 @@
 
 fun split_decls l = flat (map (fn (xs, y) => map (rpair y) xs) l);
 
-fun strip_quotes str =
-  implode (tl (take (size str - 1, explode str)));
+(*Remove the leading and trailing chararacters.  Actually called to
+  remove quotation marks.*)
+fun strip_quotes s = String.substring (s, 1, size s - 2);
 
 
 (* names *)