Create a line splitter using the default newline separator. Convenience method equivalent to `LineSplit::new(content, &Separator::Newline)`.
(content: &'a [u8])
| 195 | /// |
| 196 | /// Convenience method equivalent to `LineSplit::new(content, &Separator::Newline)`. |
| 197 | pub fn lines(content: &'a [u8]) -> Self { |
| 198 | // We need a static reference for the default separator |
| 199 | static DEFAULT_SEP: Separator = Separator::Newline; |
| 200 | Self::new(content, &DEFAULT_SEP) |
| 201 | } |
| 202 | |
| 203 | /// Get the current byte position in the original content. |
| 204 | pub fn position(&self) -> usize { |
no outgoing calls