equal
deleted
inserted
replaced
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 |