#line-ending #ending #line #normalize #chars

normalize-line-endings

Takes an iterator over chars and returns a new iterator with all line endings (\r, \n, or \r\n) as \n

5 unstable releases

Uses old Rust 2015

0.3.0 Dec 16, 2018
0.2.2 May 15, 2016
0.2.1 May 14, 2016
0.2.0 May 14, 2016
0.1.0 May 14, 2016

#713 in Algorithms

Download history 381777/week @ 2024-07-26 377802/week @ 2024-08-02 394809/week @ 2024-08-09 380027/week @ 2024-08-16 400538/week @ 2024-08-23 364526/week @ 2024-08-30 384347/week @ 2024-09-06 333071/week @ 2024-09-13 373741/week @ 2024-09-20 370332/week @ 2024-09-27 380353/week @ 2024-10-04 382305/week @ 2024-10-11 401416/week @ 2024-10-18 382363/week @ 2024-10-25 360682/week @ 2024-11-01 372193/week @ 2024-11-08

1,594,253 downloads per month
Used in 1,837 crates (9 directly)

Apache-2.0

6KB
55 lines

Normalize-line-endings

Consume an Iterator<Item=char> and return another with normalized line endings.

documentation


lib.rs:

Normalize line endings

This crate provides a normalize method that takes a char iterator and returns a new one with \n for all line endings

No runtime deps