Function str_indices::lines_crlf::count_breaks
source · pub fn count_breaks(text: &str) -> usize
Expand description
Counts the line breaks in a string slice.
Runs in O(N) time.
pub fn count_breaks(text: &str) -> usize
Counts the line breaks in a string slice.
Runs in O(N) time.