Function flussab::text::newline

source ·
pub fn newline(input: &mut DeferredReader<'_>, offset: usize) -> usize
Expand description

Passes over a single newline if present.

This increments offset by 1 if it points to "\n" and by 2 if it points to "\r\n", leaving it unchanged otherwise. It returns the resulting value.