#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

#671 in Algorithms

Download history 392008/week @ 2024-05-21 429847/week @ 2024-05-28 392912/week @ 2024-06-04 406453/week @ 2024-06-11 382039/week @ 2024-06-18 405726/week @ 2024-06-25 333583/week @ 2024-07-02 383968/week @ 2024-07-09 374075/week @ 2024-07-16 400994/week @ 2024-07-23 370725/week @ 2024-07-30 396563/week @ 2024-08-06 375351/week @ 2024-08-13 385729/week @ 2024-08-20 384685/week @ 2024-08-27 323209/week @ 2024-09-03

1,541,961 downloads per month
Used in 1,743 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