equal
deleted
inserted
replaced
148 |
148 |
149 final class Line private(val text: String) |
149 final class Line private(val text: String) |
150 { |
150 { |
151 require(text.forall(c => c != '\r' && c != '\n')) |
151 require(text.forall(c => c != '\r' && c != '\n')) |
152 |
152 |
153 lazy val length_codepoints: Int = Codepoint.iterator(text).length |
|
154 |
|
155 override def equals(that: Any): Boolean = |
153 override def equals(that: Any): Boolean = |
156 that match { |
154 that match { |
157 case other: Line => text == other.text |
155 case other: Line => text == other.text |
158 case _ => false |
156 case _ => false |
159 } |
157 } |