Docs.rs
textprep-0.1.4
textprep 0.1.4
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
arclabs561
Dependencies
aho-corasick ^1.1
normal
serde ^1.0
normal
optional
unicode-casefold ^0.2
normal
optional
unicode-normalization ^0.1
normal
unicode-segmentation ^1.10
normal
criterion ^0.7
dev
gramdex ^0.1
dev
proptest ^1.9
dev
serde_json ^1.0
dev
Versions
62.92%
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_newlines
textprep
0.1.4
In textprep::
unicode
textprep
::
unicode
Function
normalize_
newlines
Copy item path
Source
pub fn normalize_newlines(text: &
str
) ->
String
Expand description
Normalize newlines to LF (
\n
).
Converts:
Windows CRLF (
\r\n
) →
\n
Old Mac CR (
\r
) →
\n