src/Pure/PIDE/xml.scala
changeset 64820 00488a8c042f
parent 64370 865b39487b5d
child 65333 289561ca4fa3
--- a/src/Pure/PIDE/xml.scala	Sat Jan 07 15:25:01 2017 +0100
+++ b/src/Pure/PIDE/xml.scala	Sat Jan 07 16:16:41 2017 +0100
@@ -148,8 +148,6 @@
       x
     }
 
-    private def trim_bytes(s: String): String = new String(s.toCharArray)
-
     private def cache_string(x: String): String =
       if (x == "true") "true"
       else if (x == "false") "false"
@@ -159,7 +157,7 @@
         lookup(x) match {
           case Some(y) => y
           case None =>
-            val z = trim_bytes(x)
+            val z = Library.trim_substring(x)
             if (z.length > max_string) z else store(z)
         }
     private def cache_props(x: Properties.T): Properties.T =
@@ -167,7 +165,7 @@
       else
         lookup(x) match {
           case Some(y) => y
-          case None => store(x.map(p => (trim_bytes(p._1).intern, cache_string(p._2))))
+          case None => store(x.map(p => (Library.trim_substring(p._1).intern, cache_string(p._2))))
         }
     private def cache_markup(x: Markup): Markup =
       lookup(x) match {