src/Pure/library.scala
changeset 64063 2c5039363ea3
parent 64002 08f89f0e8a62
child 64207 ad15c2f478b5
equal deleted inserted replaced
64062:a7352cbde7d7 64063:2c5039363ea3
   128   def trim_line(s: String): String =
   128   def trim_line(s: String): String =
   129     if (s.endsWith("\r\n")) s.substring(0, s.length - 2)
   129     if (s.endsWith("\r\n")) s.substring(0, s.length - 2)
   130     else if (s.endsWith("\r") || s.endsWith("\n")) s.substring(0, s.length - 1)
   130     else if (s.endsWith("\r") || s.endsWith("\n")) s.substring(0, s.length - 1)
   131     else s
   131     else s
   132 
   132 
       
   133   def trim_split_lines(s: String): List[String] =
       
   134     split_lines(trim_line(s)).map(trim_line(_))
       
   135 
   133 
   136 
   134   /* quote */
   137   /* quote */
   135 
   138 
   136   def quote(s: String): String = "\"" + s + "\""
   139   def quote(s: String): String = "\"" + s + "\""
   137 
   140