src/Pure/library.ML
changeset 62529 8b7bdfc09f3b
parent 62491 7187cb7a77c5
child 62551 df62e1ab7d88
equal deleted inserted replaced
62528:c8c532b22947 62529:8b7bdfc09f3b
   691 fun unenclose str = String.substring (str, 1, size str - 2);
   691 fun unenclose str = String.substring (str, 1, size str - 2);
   692 
   692 
   693 (*simple quoting (does not escape special chars)*)
   693 (*simple quoting (does not escape special chars)*)
   694 val quote = enclose "\"" "\"";
   694 val quote = enclose "\"" "\"";
   695 
   695 
   696 val cartouche = enclose "\\<open>" "\\<close>";
   696 val cartouche = enclose "\<open>" "\<close>";
   697 
   697 
   698 val space_implode = String.concatWith;
   698 val space_implode = String.concatWith;
   699 
   699 
   700 val commas = space_implode ", ";
   700 val commas = space_implode ", ";
   701 val commas_quote = commas o map quote;
   701 val commas_quote = commas o map quote;