Docs.rs
rlsp-yaml-parser-0.3.0
rlsp-yaml-parser 0.3.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
chdalski
Dependencies
memchr ^2
normal
thiserror ^2
normal
criterion ^0.8
dev
rstest ^0.26
dev
Versions
76.88%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
normalize_line_breaks
rlsp_
yaml_
parser
0.3.0
In rlsp_
yaml_
parser::
encoding
rlsp_yaml_parser
::
encoding
Function
normalize_
line_
breaks
Copy item path
Source
pub fn normalize_line_breaks(s:
String
) ->
String
Expand description
Normalize all line breaks to LF (
\n
).
\r\n
(CRLF) →
\n
\r
(lone CR) →
\n
\n
(LF) — unchanged