#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

#889 in Algorithms

Download history 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 372217/week @ 2024-11-08 385558/week @ 2024-11-15 314225/week @ 2024-11-22 344837/week @ 2024-11-29 369533/week @ 2024-12-06 350412/week @ 2024-12-13 171537/week @ 2024-12-20 147907/week @ 2024-12-27 253296/week @ 2025-01-03

991,043 downloads per month
Used in 1,891 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