Split a string into lines. Convenience wrapper around [`from_bytes`](Self::from_bytes) for string input. # Example ```rust use atomic_core::diff::Line; let lines = Line::from_text("hello\nworld\n"); assert_eq!(lines.len(), 2); ```
(text: &'a str)
| 200 | /// assert_eq!(lines.len(), 2); |
| 201 | /// ``` |
| 202 | pub fn from_text(text: &'a str) -> Vec<Self> { |
| 203 | Self::from_bytes(text.as_bytes()) |
| 204 | } |
| 205 | |
| 206 | /// Get the raw content of this line. |
| 207 | /// |