Function autocorrect::__wasm_bindgen_generated_format[][src]

pub extern "C" fn __wasm_bindgen_generated_format(
    arg0: <str as RefFromWasmAbi>::Abi
) -> <String as ReturnWasmAbi>::Abi
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 を採用し、高速で低リソースのクロスプラットフォームソリューションを実現しています。"