normalized-line-endings
Line endings normalizer
Overview
This crate provides an iterator over characters with normalized line endings,
meaning all valid line endings in the input are converted to a single newline
character: \n (U+000A), like this:
\n→\n\r→\n\r\n→\n
The normalized iterator can be created using standalone function normalized
or by calling the method normalized on any iterator over characters.
Examples
Using standalone function
use normalized;
Using trait extension
use Normalized;
License
Licensed under either of
- MIT license (see LICENSE-MIT) or
- Apache License, Version 2.0 (see LICENSE and NOTICE)
at your option.
Contribution
Any contributions to normalized-line-endings are greatly appreciated. All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.
⎯⎯⎯