Function autocorrect::format [−][src]
Expand description
Automatically add spaces between Chinese and English words.
This method only work for plain text.
Example
extern crate autocorrect;
println!("{}", autocorrect::format("学习如何用 Rust 构建 Application"));
// => "学习如何用 Rust 构建 Application"
println!("{}", autocorrect::format("于 3 月 10 日开始"));
// => "于 3 月 10 日开始"
println!("{}", autocorrect::format("既に、世界中の数百という企業が Rust を採用し、高速で低リソースのクロスプラットフォームソリューションを実現しています。"));
// => "既に、世界中の数百という企業が Rust を採用し、高速で低リソースのクロスプラットフォームソリューションを実現しています。"